#pagos-cuenta tbody tr td {
  padding-left: 0 !important;
}

.badge .bg-success,
.bg-success {
  background: #28a745 !important;
}

.text-success {
  color: #28a745 !important;
}

.fa.fa-eye,
.fa.fa-eye-slash {
  color: #152534 !important;
}

.errorlist li,
.messages .error {
  color: firebrick !important;
}

.dlabnav,
.nav-header {
  background-color: #152534;
}

/* ===== NAV-HEADER MEJORADO ===== */
.nav-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 4rem;
  width: 100%;
  max-width: 272px;
  transition: all 0.3s ease;
}

.nav-header .brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.nav-header .brand-logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
}

.nav-header .logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.nav-header .brand-logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid #223047;
  background: #223047;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-header .brand-title {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1400px) {
  .nav-header {
    max-width: 272px;
    padding: 0.5rem 0.75rem;
  }

  .nav-header .brand-title {
    font-size: 1rem;
  }

  .nav-header .logo-wrapper {
    min-width: 45px;
    height: 45px;
  }

  .nav-header .brand-logo-img {
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 1023px) {
  .nav-header {
    max-width: 272px;
    padding: 0.5rem;
  }

  .nav-header .brand-title {
    font-size: 0.9rem;
  }

  .nav-header .logo-wrapper {
    min-width: 40px;
    height: 40px;
  }

  .nav-header .brand-logo-img {
    width: 40px;
    height: 40px;
  }
}

#form-pago>div.form-group>div>label.payment-tab.active>div>div.payment-tab-icon,
#form-pago>div.form-group>div>label.payment-tab.active .payment-tab-text {
  color: #152534 !important;
}

@media (max-width: 767px) {
  .nav-header {
    max-width: 180px;
    padding: 0.25rem 0.5rem;
  }

  .nav-header .brand-title {
    font-size: 0.8rem;
  }

  .nav-header .logo-wrapper {
    min-width: 35px;
    height: 35px;
  }

  .nav-header .brand-logo-img {
    width: 35px;
    height: 35px;
  }
}

/* Compact mode */
.nav-header.compact {
  max-width: 80px;
  justify-content: center;
}

.nav-header.compact .brand-title {
  display: none;
}

.nav-header.compact .brand-logo-container {
  justify-content: center;
  gap: 0;
}

/* Expanded mode */
.nav-header.expanded {
  max-width: 400px;
}

.nav-header.expanded .brand-title {
  font-size: 1.2rem;
}

/* Hover effects */
.nav-header .brand-logo:hover .brand-logo-img {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-header .brand-logo:hover .brand-title {
  color: #f0f0f0;
}

/* ===== NAV-HEADER UTILITY CLASSES ===== */
.nav-header-width-small {
  max-width: 200px !important;
}

.nav-header-width-medium {
  max-width: 300px !important;
}

.nav-header-width-large {
  max-width: 400px !important;
}

.nav-header-width-auto {
  max-width: none !important;
}

.nav-header-padding-small {
  padding: 0.25rem 0.5rem !important;
}

.nav-header-padding-medium {
  padding: 0.5rem 1rem !important;
}

.nav-header-padding-large {
  padding: 0.75rem 1.5rem !important;
}

.nav-header-gap-small {
  gap: 0.5rem !important;
}

.nav-header-gap-medium {
  gap: 0.75rem !important;
}

.nav-header-gap-large {
  gap: 1rem !important;
}

.nav-header-logo-small .brand-logo-img {
  width: 35px !important;
  height: 35px !important;
}

.nav-header-logo-medium .brand-logo-img {
  width: 50px !important;
  height: 50px !important;
}

.nav-header-logo-large .brand-logo-img {
  width: 65px !important;
  height: 65px !important;
}

.nav-header-text-small .brand-title {
  font-size: 0.8rem !important;
}

.nav-header-text-medium .brand-title {
  font-size: 1.1rem !important;
}

.nav-header-text-large .brand-title {
  font-size: 1.4rem !important;
}

.nav-header-justify-start .brand-logo-container {
  justify-content: flex-start !important;
}

.nav-header-justify-center .brand-logo-container {
  justify-content: center !important;
}

.nav-header-justify-end .brand-logo-container {
  justify-content: flex-end !important;
}

.nav-header-align-top {
  align-items: flex-start !important;
}

.nav-header-align-center {
  align-items: center !important;
}

.nav-header-align-bottom {
  align-items: flex-end !important;
}

.nav-header-wrap .brand-logo-container {
  flex-wrap: wrap !important;
}

.nav-header-nowrap .brand-logo-container {
  flex-wrap: nowrap !important;
}

.nav-header-vertical .brand-logo-container {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.nav-header-vertical .brand-title {
  text-align: center !important;
  margin-top: 0.5rem !important;
}

.header-info small {
  font-size: 0.7rem !important;
}

[class^="avatar-placeholder-"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: normal !important;
}

#preloader .waviy span,
.dropdown-item span {
  color: #152534 !important;
}

[data-sidebar-style="full"][data-layout="vertical"] .dlabnav .metismenu .header-profile {
  padding: 0 !important;
  margin: 0 5px 16px 15px !important;
}

#menu li {
  margin-bottom: 5px;
}

#menu li a,
#menu li .fa,
#menu li .fas,
#menu .header-info span,
#menu .header-info small,
.profile-details,
.profile-info h4,
.profile-info .h4 {
  color: #fff !important;
}

#menu li a {
  padding: 8px 20px;
}

.profile {
  background-color: #152534;
}

.invoice-card-row .invoice-card .invoice-num {
  font-size: 1.5rem;
}

.errorlist li {
  padding-left: 10px !important;
  color: firebrick !important;
}

.invoice-card>.card-header {
  padding: 10px;
  text-align: center;
  display: block;
}

.card-header {
  background-color: #152534 !important;
  border-radius: 8px 8px 0 0 !important;
}

.section-header {
  background-color: #152534 !important;
}

.card-header .card-title,
.card-header h5,
.card-header h6,
.section-header .section-title {
  color: white !important;
  font-weight: 700;
}

.section-header h2 {
  color: #FFF !important;
}

.accordion-header {
  padding: 0 !important
}

.accordion-button {
  padding: 20px !important;
}

.invoice-card>.card-body {
  padding: 10px;
  text-align: center;
  justify-content: center;
}

#section-import {
  display: none;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.opciones-tabla a {
  padding: 6px 10px;
}

.fancybox__container {
  z-index: 9999999 !important;
}

.content-body {
  background: transparent !important;
}

.header {
  background: #000 !important;
}

.hamburger .line {
  background: #fff !important;
}

.hamburger.is-active .line {
  background-color: #fff !important;
}

#change-img-damage {
  display: none;
}

.year-selector {
  color: #fff !important;
}

#logo-purple {
  display: block !important;
}

#logo-white {
  display: none !important;
}

textarea {
  resize: none !important;
}

.hide {
  display: none !important;
}

.perfil-avatar {
  border-radius: 50% !important;
}

.list {
  max-height: 300px;
  overflow-y: scroll !important;
}

.dropdown-item a {
  display: block;
  color: var(--primary);
}

.dashboard_bar {
  color: #fff !important;
}

.dropdown-menu.show {
  z-index: 9999;
}

.space-between {
  justify-content: space-between !important;
  align-items: center !important;
}

span.current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

table th,
table td {
  text-align: center !important;
}

.text-right {
  text-align: right;
}

/********INPUTS***********/
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  border: none !important;
}

.select2-selection__clear {
  background: transparent;
  border: none;
  position: absolute !important;
  right: 11px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

input[type="text"],
input[type="number"],
select {
  color: #000 !important;
}

.select2-container--classic .select2-selection--single {
  background-color: #f7f7f7;
  border: 1px solid #aaa;
  border-radius: 1rem;
  overflow: hidden;
  outline: 0;
}

/********MODAL***********/
.modal-title {
  font-size: 2rem;
}

/*********BUTTONS**********/
.btn:focus-visible,
.btn:first-child:active {
  color: #fff;
  background-color: var(--primary-hover) !important;
  border-color: var(--primary) !important;
  outline: 0;
  box-shadow: var(--primary) !important;
}

/********SIDEBAR***********/
.dlabnav .metismenu>li>a {
  font-weight: 600 !important;
  color: #000 !important;
}

.dlabnav .metismenu>li.mm-active>a:after {
  border-top: 5px solid #fff;
  border-left: 5px solid #fff;
}

[data-sidebar-style="full"][data-layout="vertical"] .dlabnav .metismenu>li.mm-active>a i {
  color: #fff !important;
}

/*********CARDS***********/
label {
  color: #000 !important;
  font-weight: 700 !important;
}

.card-title,
.card-header h6 {
  font-weight: bold;
  color: #fff !important;
}

.text-title {
  font-weight: bold;
}

/*******STATUS********/
#img-delivered {
  display: none;
}

/*** DATEPICKER***/
.ui-widget.ui-widget-content {
  font-family: "Cairo", sans-serif;
}

.ui-state-highlight,
.ui-widget-content .ui-state-highlight,
.ui-widget-header .ui-state-highlight {
  border: 1px solid var(--primary) !important;
  background: var(--primary) !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.ui-datepicker .ui-datepicker-header {
  background: var(--primary) !important;
  color: #fff !important;
}

#fechaEmision:hover {
  cursor: pointer;
}

.alert-danger {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ui-widget-header .ui-icon {
  background-image: url("images/ui-icons_ffffff_256x240.png") !important;
}

/*****LOADER*******/
.loader {
  width: 100%;
  text-align: center;
  position: absolute;
  top: 50%;

}

.lds-ripple {
  display: inline-block;
  margin: 0 auto;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid #5bcfc5;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

.dlab-scroll {
  overflow-y: scroll;
  overflow-x: hidden;
}

.description {
  font-size: 0.76562rem;
  color: #6e6e6e;
}

.dataTables_processing {
  margin-top: 44px !important;
  background-color: #fff;
}

/*****SELECT"****/
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  height: 2.5rem !important;
  border-radius: 1rem !important;
  padding: 5px !important;
  border: 0.0625rem solid #e6e6e6 !important;
  position: relative !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  margin-top: 4px !important;
}

.select2-container--default .select2-selection--multiple {
  overflow-x: auto !important;
  display: flex !important;
}

.select2-dropdown {
  border: 1px solid gainsboro !important;
  border-top: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid gainsboro !important;
}

/*****DATATABLE*****/
#suitcase-events_paginate,
.paginate_button.previous,
.paginate_button.next {
  width: auto !important;
}

table td {
  color: #000 !important;
}

tbody>tr td dl dt {
  background: var(--primary);
  padding: 5px 2px 1px 4px;
}

.dt-control {
  cursor: pointer;
}

dt h5 {
  font-weight: 600;
  color: #fff;
}

.dtrg-level-0 th {
  text-align: right !important;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}

.dtrg-level-1 tr {
  margin: 0 20px !important;
}

.dtrg-level-1 th {
  color: var(--primary);
  text-align: left !important;
  background: var(--rgba-primary-1);
  border-radius: 8px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
  padding: 0 10px !important;
  margin-top: 5px !important;
}

#end-os,
.end-details {
  display: none;
}

.btn-check:checked+.btn,
:not(.btn-check)+.btn:active,
.btn:first-child:active,
.btn.active,
.btn.show {
  color: #fff;
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

@media screen and (max-width: 678px) {
  #line-events .event-description {
    margin-top: -11px !important;
  }

  .text-no-movil {
    display: none;
  }

  .modal-body .dataTables_wrapper {
    overflow-x: auto;
  }

  .hamburger .line {
    background: #fff !important;
  }

  .card-body {
    overflow-x: auto;
  }

  #logo-purple {
    display: none !important;
  }

  #logo-white {
    display: block !important;
  }

  .modal-title {
    font-size: 1.5rem;
  }

  .table-responsive table {
    min-width: 600px;
  }

  .card {
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .btn {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .btn+.btn {
    margin-left: 0;
  }
}

/* Reglas adicionales para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
  .table-responsive table {
    min-width: 500px;
    font-size: 0.875rem;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 0.5rem 0.25rem;
  }

  .card-body {
    padding: 1rem;
  }

  .form-control {
    font-size: 0.875rem;
  }
}

/* Estilos para la sección de Cuentas y Pagos */
.card-body {
  background-color: #ffffff !important;
}

.reportes-cuentas-section .card-body {
  background-color: #ffffff !important;
  padding: 1.5rem;
}

.reportes-cuentas-section .cuenta-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

}

.reportes-cuentas-section .cuenta-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);

}

.reportes-cuentas-section .cuenta-header {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  margin: -1.5rem -1.5rem 1rem -1.5rem;
}

.reportes-cuentas-section .cuenta-info {
  padding: 0 1.5rem;
}

.reportes-cuentas-section .cuenta-stats {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin: 1rem 0;
}

.reportes-cuentas-section .cuenta-stats .stat-item {
  text-align: center;
  padding: 0.5rem;
}

.reportes-cuentas-section .cuenta-stats .stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.reportes-cuentas-section .cuenta-stats .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.reportes-cuentas-section .cuenta-stats .stat-value.saldo-inicial {
  color: #28a745;
}

.reportes-cuentas-section .cuenta-stats .stat-value.saldo-actual {
  color: #007bff;
}

.reportes-cuentas-section .cuenta-stats .stat-value.cuotas-faltantes {
  color: #ffc107;
}

.reportes-cuentas-section .pagos-table {
  margin-top: 1.5rem;
}

.reportes-cuentas-section .pagos-table .table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reportes-cuentas-section .pagos-table .table thead th {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
  border: none;
  padding: 1rem 0.75rem;
}


.reportes-cuentas-section .pagos-table .table tbody tr:hover {
  background-color: #f8f9fa;
}

.reportes-cuentas-section .pagos-table .table tbody td {
  padding: 0.875rem 0.75rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

.reportes-cuentas-section .pagos-table .table tbody td:first-child {
  font-weight: 600;
  color: #495057;
}

.reportes-cuentas-section .pagos-table .estado-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.reportes-cuentas-section .pagos-table .estado-badge.estado-pagado {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.reportes-cuentas-section .pagos-table .estado-badge.estado-pendiente {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.reportes-cuentas-section .pagos-table .estado-badge.estado-otro {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.reportes-cuentas-section .pagos-table .monto-cell {
  font-weight: 600;
  color: #495057;
}

.reportes-cuentas-section .pagos-table .fecha-cell {
  color: #6c757d;
  font-size: 0.875rem;
}

.reportes-cuentas-section .sin-pagos {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.reportes-cuentas-section .sin-pagos i {
  font-size: 2rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Botones de acción específicos para tablas */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-download-circle {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
}

.btn-download-circle:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-generate-circle {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
}

.btn-generate-circle:hover {
  background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.recibo-container {
  text-align: center;
}

.recibo-container small {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Breadcrumb Styling - Project Style */
.breadcrumb-nav {
  background: white;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  border: 2px solid #e9ecef;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}


.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 4px 8px;
  border-radius: 6px;
}

.breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
  background: rgba(0, 123, 255, 0.1);
}

.breadcrumb-item.active {
  color: #495057;
  font-weight: 700;
  background: rgba(108, 117, 125, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

/* Responsive Breadcrumb */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .breadcrumb-nav {
    padding: 0.75rem 1rem;
  }
}

/* Preloader Animation */
#preloader {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 99999;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  background-color: #fff;
  transition: opacity 0.3s ease-out;
}

.waviy {
  position: relative;
  -webkit-box-reflect: below -20px linear-gradient(transparent, rgba(0, 0, 0, .2));
  font-size: 60px;
}

.waviy span {
  font-family: 'Alfa Slab One', cursive;
  position: relative;
  display: inline-block;
  color: #152534;
  text-transform: uppercase;
  animation: waviy 1s infinite;
  animation-delay: calc(.1s * var(--i));
}

@keyframes waviy {

  0%,
  40%,
  100% {
    transform: translateY(0)
  }

  20% {
    transform: translateY(-20px)
  }
}

/* Dark theme support for preloader */
[data-theme="dark"] #preloader {
  background-color: #152534;
}

[data-theme="dark"] .waviy span {
  color: #fff;
}

/* Estilos para reemplazar estilos en línea - Agregados para mejor organización */

/* ===== TABLAS ===== */
.table-min-width-845 {
  min-width: 845px !important;
}

.table-min-width-800 {
  min-width: 800px !important;
}

.table-width-100 {
  width: 100% !important;
}

/* ===== AVATARES Y PLACEHOLDERS ===== */
.avatar-placeholder {
  width: 150px;
  height: 150px;
  background: #2c3e50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  font-weight: bold;
}

.avatar-placeholder-lista {
  width: 32px;
  height: 32px;
  background: #2c3e50;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  font-weight: bold;
}

.avatar-placeholder-profile {
  width: 50px;
  height: 50px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
}

.avatar-placeholder-header {
  width: 56px;
  height: 56px;
  background: #2c3e50;
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  text-align: center;
}

.avatar-placeholder-header-small {
  width: 50px;
  height: 50px;
  background: #223047;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  font-weight: bold;
  text-align: center;
  vertical-align: middle;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ===== IMÁGENES ===== */
.img-rounded-8 {
  border-radius: 8px !important;
}

.img-rounded-12 {
  border-radius: 12px !important;
}

.img-max-height-400 {
  max-height: 400px !important;
}

.img-max-width-100 {
  max-width: 100% !important;
}

.img-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ===== DISPLAY UTILITIES ===== */
.display-none {
  display: none !important;
}

.display-inline {
  display: inline !important;
}

.display-flex {
  display: flex !important;
}

.display-inline-flex {
  display: inline-flex !important;
}

.display-block {
  display: block !important;
}

/* ===== FLEX UTILITIES ===== */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.flex-center-full {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.flex-align-center {
  display: flex;
  align-items: center;
}

/* ===== POSITIONING ===== */
.position-relative {
  position: relative !important;
}

.position-relative-inline {
  position: relative;
  display: inline-block;
}

/* ===== CURSOR ===== */
.cursor-pointer {
  cursor: pointer !important;
}

/* ===== WIDTHS ===== */
.width-30px {
  width: 30px !important;
}

.width-40px {
  width: 40px !important;
}

.width-50px {
  width: 50px !important;
}

.width-56px {
  width: 56px !important;
}

.width-60px {
  width: 60px !important;
}

.width-100px {
  width: 100px !important;
}

.width-120px {
  width: 120px !important;
}

.width-150px {
  width: 150px !important;
}

.width-8-percent {
  width: 8% !important;
}

.width-12-percent {
  width: 12% !important;
}

.width-15-percent {
  width: 15% !important;
}

.width-20-percent {
  width: 20% !important;
}

.width-45-percent {
  width: 45% !important;
}

/* ===== HEIGHTS ===== */
.height-32px {
  height: 32px !important;
}

.height-50px {
  height: 50px !important;
}

.height-56px {
  height: 56px !important;
}

.height-150px {
  height: 150px !important;
}

/* ===== MARGINS ===== */
.margin-top-50 {
  margin-top: 50px !important;
}

.margin-bottom-12 {
  margin-bottom: 12px !important;
}

.margin-bottom-50 {
  margin-bottom: 50px !important;
}

.margin-top-10 {
  margin-top: 10px !important;
}

.margin-top-5 {
  margin-top: 5px !important;
}

.margin-top-0 {
  margin-top: 0 !important;
}

.margin-bottom-15 {
  margin-bottom: -15px !important;
}

/* ===== PADDING ===== */
.padding-top-38 {
  top: 38px !important;
}

/* ===== TEXT ALIGN ===== */
.text-center {
  text-align: center !important;
}

.text-center-block {
  text-align: center;
  display: block;
}

/* ===== FONT SIZES ===== */
.font-size-06 {
  font-size: 0.6rem !important;
}

.font-size-07 {
  font-size: 0.7rem !important;
}

.font-size-09 {
  font-size: 0.9rem !important;
}

.font-size-11 {
  font-size: 1.10rem !important;
}

.font-size-15 {
  font-size: 1.5rem !important;
}

.font-size-2rem {
  font-size: 2rem !important;
}

.font-size-4em {
  font-size: 4em !important;
}

/* ===== FONT WEIGHTS ===== */
.font-weight-600 {
  font-weight: 600 !important;
}

.font-weight-700 {
  font-weight: 700 !important;
}

.font-weight-bold {
  font-weight: bold !important;
}

/* ===== COLORS ===== */
.color-white {
  color: #fff !important;
}

.color-white-important {
  color: #FFFFFF !important;
}

.color-black {
  color: black !important;
}

.color-2c3e50 {
  color: #2c3e50 !important;
}

.color-e1c99b {
  color: #e1c99b !important;
}

/* ===== BACKGROUNDS ===== */
.bg-2c3e50 {
  background: #2c3e50 !important;
}

.bg-223047 {
  background: #223047 !important;
}

.bg-transparent-white {
  background: rgba(255, 255, 255, .7) !important;
}

.bg-transparent-white-01 {
  background: rgba(255, 255, 255, 0.1) !important;
}

.bg-transparent-white-02 {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.border-transparent-white-02 {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* ===== BORDERS ===== */
.border-radius-0 {
  border-radius: 0 !important;
}

.border-radius-8 {
  border-radius: 8px !important;
}

.border-radius-12 {
  border-radius: 12px !important;
}

.border-radius-50 {
  border-radius: 50% !important;
}

.border-bottom-light {
  border-bottom: 1px solid #e3e6f0 !important;
}

/* ===== OBJECT FIT ===== */
.object-fit-cover {
  object-fit: cover !important;
}

/* ===== VERTICAL ALIGN ===== */
.vertical-align-middle {
  vertical-align: middle !important;
}

/* ===== LINE HEIGHT ===== */
.line-height-10 {
  line-height: 10px !important;
}

/* ===== TEXT DECORATION ===== */
.text-decoration-none {
  text-decoration: none !important;
}

/* ===== LETTER SPACING ===== */
.letter-spacing-05 {
  letter-spacing: 0.5px !important;
}

/* ===== GRADIENTS ===== */
.gradient-blue {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.gradient-green {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.gradient-yellow {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
}

.gradient-cyan {
  background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
}

.gradient-purple {
  background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%) !important;
}

.gradient-orange {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%) !important;
}

.gradient-teal {
  background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%) !important;
}

.gradient-red {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
}

/* ===== GAPS ===== */
.gap-10 {
  gap: 10px !important;
}

/* ===== HEIGHT AUTO ===== */
.height-auto {
  height: auto !important;
}

/* ===== PROGRESS BARS ===== */
.progresso-fill {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: inherit;
  transition: width 0.3s ease;
}

/* ===== ANIMATION DELAYS ===== */
.animation-delay-1 {
  --i: 1;
}

.animation-delay-2 {
  --i: 2;
}

.animation-delay-3 {
  --i: 3;
}

.animation-delay-4 {
  --i: 4;
}

.animation-delay-5 {
  --i: 5;
}

.animation-delay-6 {
  --i: 6;
}

.animation-delay-7 {
  --i: 7;
}

.animation-delay-8 {
  --i: 8;
}

.animation-delay-9 {
  --i: 9;
}

.animation-delay-10 {
  --i: 10;
}

.animation-delay-11 {
  --i: 11;
}

/* ===== RESPONSIVE UTILITIES ===== */
@media screen and (max-width: 678px) {
  .font-size-2rem {
    font-size: 1.5rem !important;
  }

  .display-none-mobile {
    display: none !important;
  }

  .display-block-mobile {
    display: block !important;
  }
}

/* ===== HOVER EFFECTS ===== */
.hover-shadow:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
}

/* ===== TRANSITIONS ===== */
.transition-all {
  transition: all 0.3s ease !important;
}

/* ===== Z-INDEX ===== */
.z-index-9999 {
  z-index: 9999 !important;
}

/* ===== OVERFLOW ===== */
.overflow-x-auto {
  overflow-x: auto !important;
}

/* ===== MIN-WIDTH RESPONSIVE ===== */
@media screen and (max-width: 480px) {

  .table-min-width-845,
  .table-min-width-800 {
    min-width: 500px !important;
  }
}

/* ===================================
   BREADCRUMB NAVIGATION
   =================================== */

/* Breadcrumb Container */
.breadcrumb-nav {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb List */
.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

/* Breadcrumb Items */
.breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 400;
  transition: all 0.2s ease;
}

.breadcrumb-item:not(:last-child)::after {
  content: '›';
  margin: 0 0.75rem;
  color: #adb5bd;
  font-weight: 300;
  font-size: 1.1rem;
  line-height: 1;
}

/* Breadcrumb Links */
.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: #0056b3;
  background: rgba(0, 123, 255, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
}

.breadcrumb-item a:active {
  transform: translateY(0);
}

/* Active Breadcrumb Item */
.breadcrumb-item.active {
  color: #495057;
  font-weight: 600;
  background: rgba(73, 80, 87, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
}

/* Breadcrumb Icons */
.breadcrumb-item i {
  font-size: 0.875rem;
  opacity: 0.8;
}

.breadcrumb-item.active i {
  opacity: 1;
}

/* Breadcrumb Text */
.breadcrumb-text {
  font-weight: inherit;
}

/* Breadcrumb with Background */
.breadcrumb-nav.bg-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-bottom: 1px solid #0056b3;
}

.breadcrumb-nav.bg-primary .breadcrumb-item {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav.bg-primary .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-nav.bg-primary .breadcrumb-item a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.breadcrumb-nav.bg-primary .breadcrumb-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.breadcrumb-nav.bg-primary .breadcrumb-item:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.6);
}

/* Breadcrumb with Dark Theme */
.breadcrumb-nav.bg-dark {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
  border-bottom: 1px solid #495057;
}

.breadcrumb-nav.bg-dark .breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-nav.bg-dark .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-nav.bg-dark .breadcrumb-item a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-nav.bg-dark .breadcrumb-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.breadcrumb-nav.bg-dark .breadcrumb-item:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.5);
}

/* Breadcrumb Animations */
.breadcrumb-item {
  animation: fadeInUp 0.3s ease-out;
}

.breadcrumb-item:nth-child(1) {
  animation-delay: 0.1s;
}

.breadcrumb-item:nth-child(2) {
  animation-delay: 0.2s;
}

.breadcrumb-item:nth-child(3) {
  animation-delay: 0.3s;
}

.breadcrumb-item:nth-child(4) {
  animation-delay: 0.4s;
}

.breadcrumb-item:nth-child(5) {
  animation-delay: 0.5s;
}

/* Breadcrumb Responsive */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
  }

  .breadcrumb {
    font-size: 0.8rem;
    gap: 0.125rem;
  }

  .breadcrumb-item {
    font-size: 0.8rem;
  }

  .breadcrumb-item:not(:last-child)::after {
    margin: 0 0.5rem;
    font-size: 1rem;
  }

  .breadcrumb-item a {
    padding: 0.125rem 0.375rem;
  }

  .breadcrumb-item.active {
    padding: 0.125rem 0.5rem;
  }

  /* Hide text on very small screens, show only icons */
  .breadcrumb-text {
    display: none;
  }

  .breadcrumb-item i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .breadcrumb-nav {
    padding: 0.5rem 0;
  }

  .breadcrumb {
    justify-content: center;
  }

  .breadcrumb-item {
    font-size: 0.75rem;
  }
}

/* Breadcrumb Utilities */
.breadcrumb-compact {
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.breadcrumb-compact .breadcrumb-item {
  font-size: 0.8rem;
}

.breadcrumb-large {
  padding: 1.5rem 0;
  margin-bottom: 2rem;
}

.breadcrumb-large .breadcrumb-item {
  font-size: 1rem;
}

.breadcrumb-large .breadcrumb-item:not(:last-child)::after {
  margin: 0 1rem;
  font-size: 1.2rem;
}

/* Breadcrumb with Badges */
.breadcrumb-item .badge {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
}

/* Breadcrumb with Dropdown */
.breadcrumb-dropdown {
  position: relative;
  display: inline-block;
}

.breadcrumb-dropdown-content {
  display: none;
  position: absolute;
  background: white;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
}

.breadcrumb-dropdown:hover .breadcrumb-dropdown-content {
  display: block;
}

.breadcrumb-dropdown-content a {
  color: #333;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  transition: background 0.2s ease;
}

.breadcrumb-dropdown-content a:hover {
  background: #f8f9fa;
  color: #007bff;
}

/* ===================================
   UNIFIED BUTTON SYSTEM
   =================================== */

/* Base Button Styles - Unified for all buttons */
.btn {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.5;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Secondary Button */
.btn-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
  border-color: #6c757d;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #545b62 0%, #4a4f54 100%);
  border-color: #545b62;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border-color: #28a745;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.btn-success:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  border-color: #1e7e34;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

/* Danger Button */
.btn-danger {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-color: #dc3545;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
  border-color: #c82333;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Warning Button */
.btn-warning {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  border-color: #ffc107;
  color: #212529;
  box-shadow: 0 2px 4px rgba(255, 193, 7, 0.2);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #e0a800 0%, #c69500 100%);
  border-color: #e0a800;
  color: #212529;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

/* Info Button */
.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border-color: #17a2b8;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

.btn-info:hover {
  background: linear-gradient(135deg, #138496 0%, #0f6674 100%);
  border-color: #138496;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

/* Light Button */
.btn-light {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #f8f9fa;
  color: #212529;
  box-shadow: 0 2px 4px rgba(248, 249, 250, 0.2);
}

.btn-light:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dae0e5 100%);
  border-color: #e9ecef;
  color: #212529;
  box-shadow: 0 4px 8px rgba(248, 249, 250, 0.3);
}

/* Dark Button */
.btn-dark {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
  border-color: #343a40;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(52, 58, 64, 0.2);
}

.btn-dark:hover {
  background: linear-gradient(135deg, #212529 0%, #1a1d20 100%);
  border-color: #212529;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(52, 58, 64, 0.3);
}

/* Outline Buttons */
.btn-outline-primary {
  background: transparent;
  border-color: #007bff;
  color: #007bff;
  box-shadow: none;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border-color: #007bff;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-outline-secondary {
  background: transparent;
  border-color: #6c757d;
  color: #6c757d;
  box-shadow: none;
}

.btn-outline-secondary:hover {
  background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
  border-color: #6c757d;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-outline-success {
  background: transparent;
  border-color: #28a745;
  color: #28a745;
  box-shadow: none;
}

.btn-outline-success:hover {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  border-color: #28a745;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-outline-danger {
  background: transparent;
  border-color: #dc3545;
  color: #dc3545;
  box-shadow: none;
}

.btn-outline-danger:hover {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border-color: #dc3545;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-outline-warning {
  background: transparent;
  border-color: #ffc107;
  color: #ffc107;
  box-shadow: none;
}

.btn-outline-warning:hover {
  background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
  border-color: #ffc107;
  color: #212529;
  box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-outline-info {
  background: transparent;
  border-color: #17a2b8;
  color: #17a2b8;
  box-shadow: none;
}

.btn-outline-info:hover {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  border-color: #17a2b8;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(23, 162, 184, 0.3);
}

.btn-outline-light {
  background: transparent;
  border-color: #f8f9fa;
  color: #f8f9fa;
  box-shadow: none;
}

.btn-outline-light:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-color: #f8f9fa;
  color: #212529;
  box-shadow: 0 4px 8px rgba(248, 249, 250, 0.3);
}

.btn-outline-dark {
  background: transparent;
  border-color: #343a40;
  color: #343a40;
  box-shadow: none;
}

.btn-outline-dark:hover {
  background: linear-gradient(135deg, #343a40 0%, #212529 100%);
  border-color: #343a40;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(52, 58, 64, 0.3);
}

/* Button Sizes */
.btn-sm {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* Button Groups */
.btn-group {
  display: inline-flex;
  border-radius: 0.375rem;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-group .btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-group .btn:first-child {
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.btn-group .btn:last-child {
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

/* Button with Icons */
.btn i {
  font-size: 0.875rem;
  line-height: 1;
}

.btn-sm i {
  font-size: 0.8rem;
}

.btn-lg i {
  font-size: 1rem;
}

/* Loading Buttons */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Card Header/Footer Layout */
.card-header,
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.card-footer {
  border-bottom: none;
  border-top: 1px solid #dee2e6;
}

.card-header .card-title,
.card-footer .card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
}

.card-header .btn-group,
.card-footer .btn-group {
  margin-left: auto;
}

/* Responsive Buttons */
@media (max-width: 768px) {
  .btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  .btn i {
    font-size: 0.8rem;
  }

  .card-header,
  .card-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  .card-header .btn-group,
  .card-footer .btn-group {
    margin-left: 0;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.375rem;
  }

  .btn .btn-text {
    display: none;
  }

  .btn i {
    font-size: 0.875rem;
  }
}

/* Button Utilities */
.btn-icon-only {
  padding: 0.375rem;
  min-width: 2.5rem;
  justify-content: center;
}

.btn-rounded {
  border-radius: 50px;
}

.btn-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-shadow:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Card Button Themes */
.card-header.bg-primary .btn,
.card-footer.bg-primary .btn {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.card-header.bg-primary .btn:hover,
.card-footer.bg-primary .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.card-header.bg-dark .btn,
.card-footer.bg-dark .btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.card-header.bg-dark .btn:hover,
.card-footer.bg-dark .btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* ===================================
   MENÚ DESPLEGABLE FIX - METISMENU
   =================================== */

/* Asegurar que los submenús estén ocultos por defecto */
.dlabnav .metismenu li ul {
  display: none !important;
  transition: all 0.3s ease;
  overflow: hidden;
}

/* Mostrar submenús cuando están activos en metisMenu */
.dlabnav .metismenu li.mm-active>ul,
.dlabnav .metismenu li ul.mm-show,
.dlabnav .metismenu li ul:not(.mm-collapse) {
  display: block !important;
}

/* Estilos específicos para metisMenu */
.dlabnav .metismenu li a.has-arrow[aria-expanded="true"]+ul,
.dlabnav .metismenu li a.has-arrow[aria-expanded="true"]~ul {
  display: block !important;
}

.dlabnav .metismenu li a.has-arrow[aria-expanded="false"]+ul,
.dlabnav .metismenu li a.has-arrow[aria-expanded="false"]~ul {
  display: none !important;
}

/* Asegurar que los enlaces del menú sean clickeables */
.dlabnav .metismenu li a.has-arrow {
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
}

/* Estilos para el indicador de flecha */
.dlabnav .metismenu .has-arrow:after {
  transition: transform 0.3s ease;
  content: "";
  position: absolute;
  width: 0.5em;
  height: 0.5em;
  border-width: 1px 0 0 1px;
  border-style: solid;
  border-color: inherit;
  right: 1em;
  transform-origin: top;
}

.dlabnav .metismenu .has-arrow[aria-expanded="true"]:after {
  transform: rotate(45deg);
}

.dlabnav .metismenu .has-arrow[aria-expanded="false"]:after {
  transform: rotate(0deg);
}

/* Animaciones suaves para metisMenu */
.dlabnav .metismenu li ul {
  transition: height 0.3s ease, opacity 0.3s ease;
}

/* Asegurar que metisMenu funcione correctamente */
.dlabnav .metismenu .mm-collapse {
  display: none !important;
}

.dlabnav .metismenu .mm-show {
  display: block !important;
}

/* Fix para el menú de configuración específicamente */
.dlabnav .metismenu li:has(a[href="javascript:void()"] .nav-text:contains("Configuración")) ul {
  display: none !important;
}

.dlabnav .metismenu li:has(a[href="javascript:void()"] .nav-text:contains("Configuración")) a[aria-expanded="true"]+ul {
  display: block !important;
}

/* ===================================
   BREADCRUMB SYSTEM
   =================================== */

/* Estilos para breadcrumb unificado */
.breadcrumb-nav {
  background: white;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.breadcrumb {
  background: transparent;
  margin: 0;
  padding: 0;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 600;
}

/* Responsive Breadcrumb */
@media (max-width: 768px) {
  .breadcrumb-nav {
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 576px) {
  .breadcrumb-nav {
    padding: 0.75rem 1rem;
  }
}

/* ===================================
   SECTION CARD SYSTEM
   =================================== */

/* Estilos para secciones tipo card (usado en pagos) */
.section-card {
  margin-bottom: 2rem;
  border: 1px solid #d3d3d3;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-header {
  border-radius: 8px 8px 0 0;
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  border: none;
  background: #152534;
  color: white;
}

.section-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.section-title i {
  margin-right: 0.75rem;
  font-size: 1.1em;
}

.section-body {
  padding: 1.5rem;
  background: white;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* Responsive para section-card */
@media (max-width: 768px) {
  .section-header {
    font-size: 1.2rem;
    padding: 15px;
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .section-body {
    padding: 15px;
  }
}

/* ===================================
   HEADER BUTTONS UNIFIED SYSTEM
   =================================== */

/* Estilo unificado para botones en card-header basado en proyectos */
.card-header .btn-group {
  display: flex;
  align-items: center;
}

.card-header .btn {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  cursor: pointer;
}

.card-header .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-header .btn:active {
  transform: translateY(0);
}

.card-header .btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.card-header .btn:disabled,
.card-header .btn.disabled {
  opacity: 0.65;
  pointer-events: none;
}

.card-header .btn-secondary {
  background: linear-gradient(135deg, #6c757d, #545b62);
  color: white;
  border-color: #6c757d;
}

.card-header .btn-secondary:hover {
  background: linear-gradient(135deg, #545b62, #495057);
  border-color: #545b62;
  color: white;
}

.card-header .btn-success {
  background: linear-gradient(135deg, #28a745, #1e7e34);
  color: white;
  border-color: #28a745;
}

.card-header .btn-success:hover {
  background: linear-gradient(135deg, #1e7e34, #155724);
  border-color: #1e7e34;
  color: white;
}

.card-header .btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border-color: #dc3545;
}

.card-header .btn-danger:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  border-color: #c82333;
  color: white;
}

.card-header .btn-warning {
  background: linear-gradient(135deg, #ffc107, #e0a800);
  color: #212529;
  border-color: #ffc107;
}

.card-header .btn-warning:hover {
  background: linear-gradient(135deg, #e0a800, #d39e00);
  border-color: #e0a800;
  color: #212529;
}

.card-header .btn-info {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  border-color: #17a2b8;
}

.card-header .btn-info:hover {
  background: linear-gradient(135deg, #138496, #117a8b);
  border-color: #138496;
  color: white;
}

.card-header .btn-light {
  background: linear-gradient(135deg, #f8f9fa, #e2e6ea);
  color: #212529;
  border-color: #f8f9fa;
}

.card-header .btn-light:hover {
  background: linear-gradient(135deg, #e2e6ea, #dae0e5);
  border-color: #e2e6ea;
  color: #212529;
}

.card-header .btn-dark {
  background: linear-gradient(135deg, #343a40, #23272b);
  color: white;
  border-color: #343a40;
}

.card-header .btn-dark:hover {
  background: linear-gradient(135deg, #23272b, #1d2124);
  border-color: #23272b;
  color: white;
}

/* Variantes outline para card-header */
.card-header .btn-outline-primary {
  background: transparent;
  color: #007bff;
  border-color: #007bff;
}

.card-header .btn-outline-primary:hover {
  background: #007bff;
  color: white;
}

.card-header .btn-outline-secondary {
  background: transparent;
  color: #6c757d;
  border-color: #6c757d;
}

.card-header .btn-outline-secondary:hover {
  background: #6c757d;
  color: white;
}

.card-header .btn-outline-success {
  background: transparent;
  color: #28a745;
  border-color: #28a745;
}

.card-header .btn-outline-success:hover {
  background: #28a745;
  color: white;
}

.card-header .btn-outline-danger {
  background: transparent;
  color: #dc3545;
  border-color: #dc3545;
}

.card-header .btn-outline-danger:hover {
  background: #dc3545;
  color: white;
}

.card-header .btn-outline-warning {
  background: transparent;
  color: #ffc107;
  border-color: #ffc107;
}

.card-header .btn-outline-warning:hover {
  background: #ffc107;
  color: #212529;
}

.card-header .btn-outline-info {
  background: transparent;
  color: #17a2b8;
  border-color: #17a2b8;
}

.card-header .btn-outline-info:hover {
  background: #17a2b8;
  color: white;
}

.card-header .btn-outline-light {
  background: transparent;
  color: #f8f9fa;
  border-color: #f8f9fa;
}

.card-header .btn-outline-light:hover {
  background: #f8f9fa;
  color: #212529;
}

.card-header .btn-outline-dark {
  background: transparent;
  color: #343a40;
  border-color: #343a40;
}

.card-header .btn-outline-dark:hover {
  background: #343a40;
  color: white;
}

/* Tamaños para card-header */
.card-header .btn-xs {
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.card-header .btn-sm {
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
}

.card-header .btn-lg {
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
}

/* Estados especiales para card-header */
.card-header .btn.loading {
  position: relative;
  color: transparent;
}

.card-header .btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive para card-header */
@media (max-width: 768px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .card-header .btn-group {
    width: 100%;
    justify-content: flex-start;
  }

  .card-header .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .card-header .btn {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
  }

  .card-header .btn i {
    font-size: 0.7rem;
  }
}

/* MENU ARROW FIX */
/* Corregir la posición de las flechas en los menús desplegables */
.metismenu .has-arrow {
  position: relative;
}

.metismenu .has-arrow:after {
  position: absolute;
  content: "";
  width: 0.5em;
  height: 0.5em;
  border-width: 1px 0 0 1px;
  border-style: solid;
  border-color: inherit;
  right: 1em;
  top: 50%;
  transform: rotate(225deg) translateY(-50%);
  transition: transform 0.3s ease;
}

.metismenu .mm-active>a.has-arrow:after {
  transform: rotate(45deg) translateY(-50%);
}

/* Asegurar que la flecha sea visible */
.metismenu .has-arrow:after {
  border-color: currentColor;
  opacity: 0.7;
}

/* Responsive para las flechas */
@media (max-width: 768px) {
  .metismenu .has-arrow:after {
    right: 0.5em;
  }
}

/* HAMBURGER TO ARROW TRANSFORMATION */
/* Estilos para los iconos de FontAwesome */
.nav-control .hamburger {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav-control .hamburger .hamburger-icon,
.nav-control .hamburger .arrow-icon {
  font-size: 1.4rem;
  color: #fff;
  transition: all 0.3s ease;
}

/* Alineación vertical con dashboard_bar cuando sidebar está minimizado */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nav-control {
  top: 50% !important;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  height: auto;
}

/* Cuando el sidebar está minimizado, mostrar flecha en lugar de hamburger */
[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nav-control .hamburger .hamburger-icon {
  display: none !important;
}

[data-sidebar-style="full"][data-layout="vertical"] .menu-toggle .nav-control .hamburger .arrow-icon {
  display: block !important;
}

/* Estado normal - mostrar hamburger */
.nav-control .hamburger .hamburger-icon {
  display: block;
}

.nav-control .hamburger .arrow-icon {
  display: none;
}

/* CONFIGURACIÓN MENU ARROW */
/* Estilos para la flecha del menú de configuración */
.metismenu .ai-icon {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.metismenu .ai-icon .config-arrow {
  font-size: 0.8rem;
  color: #C8C8C8 !important;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 10;
}

/* Asegurar que la flecha sea visible en todos los estados */
.metismenu .ai-icon .config-arrow,
.metismenu .ai-icon[aria-expanded="true"] .config-arrow,
.metismenu .ai-icon[aria-expanded="false"] .config-arrow {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Override cualquier estilo que pueda ocultar la flecha */
.metismenu li .ai-icon .config-arrow,
.metismenu .mm-active .ai-icon .config-arrow,
.metismenu .mm-collapse .ai-icon .config-arrow {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Estilos específicos para el icono FontAwesome */
.metismenu .ai-icon .fas.fa-chevron-down,
.metismenu .ai-icon .fa.fa-chevron-down {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #C8C8C8 !important;
}

/* Estilos específicos para las clases de rotación de FontAwesome */
.metismenu .ai-icon .config-arrow.fa-rotate-0,
.metismenu .ai-icon .config-arrow.fa-rotate-180 {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  color: #C8C8C8 !important;
}

/* Ocultar flechas CSS originales para el menú de configuración */
.metismenu .ai-icon:after {
  display: none !important;
}

/* Debug: hacer la flecha más visible temporalmente */
.metismenu .ai-icon .config-arrow {
  background: rgba(255, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 0, 0, 0.3) !important;
  padding: 2px !important;
}

/* ===== ANIMACIONES DEL SPINNER PARA MODAL DE BACKUP ===== */

/* Asegurar que las animaciones del spinner funcionen correctamente */
.spinner-border {
  animation: spinner-border 0.75s linear infinite !important;
  -webkit-animation: spinner-border 0.75s linear infinite !important;
}

/* Definir la animación del spinner si no está disponible */
@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes spinner-border {
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* Asegurar que el spinner en la modal de backup tenga la animación */
#spinner-backup {
  animation: spinner-border 0.75s linear infinite !important;
  -webkit-animation: spinner-border 0.75s linear infinite !important;
  display: inline-block !important;
  width: 2rem !important;
  height: 2rem !important;
  border: 0.25em solid currentColor !important;
  border-right-color: transparent !important;
  border-radius: 50% !important;
  vertical-align: text-bottom !important;
}

/* Asegurar que las animaciones no se desactiven por preferencias de movimiento reducido */
@media (prefers-reduced-motion: reduce) {

  .spinner-border,
  #spinner-backup {
    animation: spinner-border 0.75s linear infinite !important;
    -webkit-animation: spinner-border 0.75s linear infinite !important;
  }
}

/* Estilos adicionales para la modal de backup */
#backup-modal .modal-content {
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

#backup-modal .card-body {
  padding: 2rem;
  text-align: center;
}

.modal-title {
  color: #FFF;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

#backup-modal .d-flex {
  justify-content: center;
  align-items: center;
  min-height: 80px;
}

#backup-modal .spinner-border {
  color: #007bff;
}

#backup-modal .text-green {
  color: #28a745 !important;
}

#backup-modal .text-red {
  color: #dc3545 !important;
}

#backup-modal #backup-modal-text {
  margin-top: 1rem;
  color: #666;
  font-size: 0.95rem;
}

/* Standardized Badge Styles */
.badge {
  font-size: 0.6rem !important;
  padding: 3px !important;
  border-radius: 8px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== RESPONSIVE MEJORAS ===== */

/* Sidebar overlay en tablets */
@media (max-width: 991.98px) {
  .dlabnav {
    position: fixed !important;
    left: -300px !important;
    top: 0;
    bottom: 0;
    width: 280px !important;
    z-index: 1050 !important;
    transition: left 0.3s ease !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }

  .menu-toggle .dlabnav {
    left: 0 !important;
  }

  .content-body {
    margin-left: 0 !important;
  }

  .header {
    left: 0 !important;
    padding-left: 0 !important;
  }
}

/* Móvil: nav-header compacto y sin espaciado */
@media (max-width: 767px) {
  [data-header-position="fixed"] .nav-header,
  .nav-header {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 3.5rem !important;
    position: fixed !important;
    z-index: 999 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .nav-header .brand-logo {
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    width: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .nav-header .brand-logo-container {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
  }

  .nav-header .brand-logo-img {
    border-radius: 0 !important;
    width: 32px !important;
    height: 32px !important;
  }

  .nav-header .avatar-placeholder-header-small {
    width: 32px !important;
    height: 32px !important;
    border-radius: 0 !important;
  }

  .nav-header .logo-wrapper {
    display: flex !important;
    align-items: center !important;
  }

  .nav-header .brand-title {
    display: inline-block !important;
    margin: 0 !important;
    max-width: none !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .nav-control {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.75rem !important;
  }

  .nav-header .mobile-notif {
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.25rem !important;
  }

  .nav-header .mobile-notif a {
    padding: 0 !important;
    line-height: 1 !important;
  }

  .nav-header .mobile-notif svg {
    width: 22px !important;
    height: 22px !important;
  }

  .nav-header .mobile-notif svg path {
    fill: #000 !important;
  }

  .nav-header .mobile-notif #notifications-counter {
    position: absolute !important;
    top: -2px !important;
    right: -2px !important;
    font-size: 0.55rem !important;
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    padding: 0 4px !important;
  }

  .nav-header .mobile-notif .nav-link {
    position: relative !important;
  }

  .header {
    height: 3.5rem !important;
    padding-left: 0 !important;
    padding-top: 0 !important;
  }

  .header .header-content {
    padding-left: 3.5rem !important;
    padding-right: 0.5rem !important;
  }

  .header-left .dashboard_bar {
    display: block !important;
  }

  .header-left .dashboard_bar span {
    font-size: 0.75rem !important;
  }

  .header-right > li:not(:first-child) {
    padding-left: 0.5rem !important;
  }
}

@media (max-width: 575.98px) {
  .table-responsive table {
    font-size: 0.8rem;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 0.4rem 0.2rem;
    white-space: nowrap;
  }

  .card-body {
    padding: 0.75rem;
  }

  .content-body .container-fluid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 400px) {
  .header .header-content {
    padding: 0 0.5rem;
  }
  .dashboard_bar span {
    font-size: 0.65em !important;
  }
  .brand-title {
    font-size: 0.85rem !important;
  }
}

/* ===== Notificaciones Top Bar ===== */
.notif-dropdown {
  min-width: 360px;
  max-width: 400px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}
@media (max-width: 575px) {
  .notif-dropdown {
    position: fixed !important;
    top: 56px !important;
    right: 8px !important;
    left: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Header */
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1565c0, #1976d2);
  color: #fff;
}
.notif-header h6 {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}
.notif-header .badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 10px;
}

/* Scroll container */
.notif-scroll-container {
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}
.notif-scroll-container::-webkit-scrollbar {
  width: 5px;
}
.notif-scroll-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.notif-scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

/* List */
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Item */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s ease, border-left 0.15s ease;
  position: relative;
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item:hover {
  background: #f8f9fa;
}
.notif-item.unread {
  background: #f4f8ff;
  border-left: 3px solid #1565c0;
  padding-left: 15px;
}
.notif-item.unread:hover {
  background: #eaf1fb;
}

/* Icon circle */
.notif-item-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: 2px;
}

/* Body */
.notif-item-body {
  flex: 1;
  min-width: 0;
}
.notif-item-title {
  font-weight: 600;
  font-size: 0.82rem;
  color: #333;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notif-item-msg {
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.notif-item-time {
  font-size: 0.7rem;
  color: #999;
  margin-top: 4px;
}

/* Empty state */
.notif-empty {
  text-align: center;
  padding: 36px 20px;
}
.notif-empty-icon {
  font-size: 36px;
  color: #4caf50;
  margin-bottom: 10px;
  display: block;
}
.notif-empty-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 2px;
}
.notif-empty-sub {
  color: #999;
  font-size: 0.78rem;
}

/* Footer link */
.notif-dropdown .all-notification {
  display: block;
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s;
}
.notif-dropdown .all-notification:hover {
  background: #f4f8ff;
}