@charset "UTF-8";
.container-gm-CMS {
  min-height: 100vh;
  margin: 0 auto;
  max-width: 98%;
}

code {
  color: #1e293b !important;
  background-color: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.btn-gm-primary {
  background-color: #1e293b;
  border-color: #1e293b;
  color: #fff;
}
.btn-gm-primary:hover {
  background-color: rgb(12.808988764, 17.5056179775, 25.191011236);
  border-color: rgb(12.808988764, 17.5056179775, 25.191011236);
  color: #fff;
}

.btn-primary {
  background-color: #1e293b;
  border-color: #1e293b;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: rgb(12.808988764, 17.5056179775, 25.191011236);
  border-color: rgb(12.808988764, 17.5056179775, 25.191011236);
  color: #fff;
}
.btn-primary:focus {
  box-shadow: 0 0 0 0.25rem rgba(30, 41, 59, 0.25);
}

.text-primary-gm {
  color: #1e293b !important;
}

.colors-gm-primary {
  background-color: #1e293b !important;
  color: #fff !important;
}

.colors-gm-dark {
  background-color: #1e293b !important;
  color: #fff !important;
}

.text-light-mg {
  color: #F1F5F9;
}

.sidebar-gm {
  width: 270px;
  min-width: 270px;
  max-width: 270px;
  background: #1e293b;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.sidebar-gm.collapsed {
  width: 70px;
  min-width: 70px;
  max-width: 70px;
}
.sidebar-gm.collapsed .sidebar-logo {
  padding: 1rem 0;
}
.sidebar-gm.collapsed .sidebar-logo .logo-full {
  display: none;
}
.sidebar-gm.collapsed .sidebar-logo .logo-icon {
  display: block !important;
  width: 40px;
  margin: 0 auto;
}
.sidebar-gm.collapsed .nav-link {
  justify-content: center;
  padding: 0.7rem;
}
.sidebar-gm.collapsed .nav-link span {
  display: none;
}
.sidebar-gm.collapsed .nav-link i {
  margin: 0;
  width: auto;
  font-size: 1.2rem;
}
.sidebar-gm.collapsed .nav-link .fa-chevron-down {
  display: none;
}
.sidebar-gm.collapsed .sidebar-footer a {
  justify-content: center;
}
.sidebar-gm.collapsed .sidebar-footer a span {
  display: none;
}
.sidebar-gm.collapsed hr {
  margin: 0.75rem 0.5rem;
}
.sidebar-gm.collapsed .collapse {
  display: none !important;
}
.sidebar-gm .sidebar-logo {
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sidebar-gm .sidebar-logo img.logo-full {
  max-width: 120px;
  filter: brightness(1.1);
}
.sidebar-gm .sidebar-logo img.logo-icon {
  display: none;
}
.sidebar-gm .sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}
.sidebar-gm .sidebar-nav::-webkit-scrollbar {
  width: 4px;
}
.sidebar-gm .sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.sidebar-gm .nav-item {
  margin: 0;
}
.sidebar-gm .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.sidebar-gm .nav-item .nav-link i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.9;
}
.sidebar-gm .nav-item .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border-left-color: #1e293b;
}
.sidebar-gm .nav-item .nav-link:hover i {
  opacity: 1;
}
.sidebar-gm .nav-item .nav-link.active {
  background: rgba(30, 41, 59, 0.15);
  color: white;
  border-left-color: #1e293b;
  font-weight: 600;
}
.sidebar-gm .nav-item .nav-link.active i {
  opacity: 1;
  color: #1e293b;
}
.sidebar-gm .collapse .nav {
  padding-left: 0;
  background: rgba(0, 0, 0, 0.15);
}
.sidebar-gm .collapse .nav .nav-link {
  padding-left: 3rem;
  font-size: 0.85rem;
  opacity: 0.9;
}
.sidebar-gm .collapse .nav .nav-link:hover {
  opacity: 1;
}
.sidebar-gm hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 0.75rem 1rem;
}
.sidebar-gm .sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-gm .sidebar-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}
.sidebar-gm .sidebar-footer a i {
  width: 20px;
  text-align: center;
}
.sidebar-gm .sidebar-footer a:hover {
  color: #e74c3c;
}

@media (max-width: 991.98px) {
  .sidebar-gm {
    position: fixed;
    left: -260px;
    z-index: 1050;
    transition: left 0.3s ease;
  }
  .sidebar-gm.show {
    left: 0;
  }
}
.modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.modal-header.colors-gm-primary {
  background-color: #1e293b !important;
}
.modal-header .modal-title {
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-body {
  padding: 2rem;
}

.modal-footer {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.form-floating {
  margin-bottom: 1.5rem;
}
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid #e9ecef;
  transition: all 0.2s ease;
}
.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
  border-color: #1e293b;
  box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.1);
}
.form-floating label {
  padding: 1rem 0.75rem;
  color: #adb5bd;
  font-weight: 500;
}

.input-group-modern {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group-modern .input-group-text {
  background: transparent;
  border: none;
  position: absolute;
  left: 10px;
  z-index: 10;
  color: #1e293b;
  font-size: 1.1rem;
}
.input-group-modern .form-control,
.input-group-modern .form-select {
  padding-left: 45px !important;
}

.btn-gm-primary {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}
.btn-gm-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(30, 41, 59, 0.3);
}
.btn-gm-primary i {
  margin-right: 8px;
}

.btn-gm-secondary {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.table-gm-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}
.table-gm-container .table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.table-gm-container .table thead tr th {
  background-color: #1e293b !important;
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 1.25rem 1rem;
  border: none;
  vertical-align: middle;
}
.table-gm-container .table thead tr th:first-child {
  border-top-left-radius: 0;
}
.table-gm-container .table tbody tr {
  transition: background-color 0.2s ease;
}
.table-gm-container .table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.02);
}
.table-gm-container .table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
  color: #495057;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.9rem;
}
.table-gm-container .table tbody tr td .text-id {
  font-weight: 600;
  color: #adb5bd;
}
.table-gm-container .table tbody tr td .table-thumb {
  width: 100px;
  height: 60px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.table-gm-container .table tbody tr td .btn-action {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: #f8f9fa;
  text-decoration: none;
}
.table-gm-container .table tbody tr td .btn-action i {
  font-size: 0.9rem;
}
.table-gm-container .table tbody tr td .btn-action.btn-view {
  color: #1e293b;
  background: rgba(30, 41, 59, 0.05);
}
.table-gm-container .table tbody tr td .btn-action.btn-view:hover {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}
.table-gm-container .table tbody tr td .btn-action.btn-edit {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}
.table-gm-container .table tbody tr td .btn-action.btn-edit:hover {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}
.table-gm-container .table tbody tr td .btn-action.btn-delete, .table-gm-container .table tbody tr td .btn-action.btn-danger {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.05);
}
.table-gm-container .table tbody tr td .btn-action.btn-delete:hover, .table-gm-container .table tbody tr td .btn-action.btn-danger:hover {
  background: #dc3545;
  color: white;
  border-color: #dc3545;
}
.table-gm-container .table tbody tr td .btn-action.btn-success {
  color: #198754;
  background: rgba(25, 135, 84, 0.1);
}
.table-gm-container .table tbody tr td .btn-action.btn-success:hover {
  background: #198754;
  color: white;
  border-color: #198754;
}
.table-gm-container .table tbody tr td .btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.table-gm-container .table tbody tr td .badge-gm {
  padding: 0.4rem 0.75rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 0.75rem;
}
.table-gm-container .table tbody tr td .badge-gm.badge-published {
  background: rgba(25, 135, 84, 0.1);
  color: #198754;
}
.table-gm-container .table tbody tr td .badge-gm.badge-draft {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}
.table-gm-container .table tbody tr:last-child td {
  border-bottom: none;
}

.table-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.table-header-actions .table-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2a38;
  margin: 0;
}
.table-header-actions .btn-gm-add {
  background-color: #1e293b;
  color: white;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(30, 41, 59, 0.2);
  transition: all 0.2s ease;
  border: none;
}
.table-header-actions .btn-gm-add:hover {
  background-color: rgb(12.808988764, 17.5056179775, 25.191011236);
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(30, 41, 59, 0.3);
  color: white;
}
.table-header-actions .btn-gm-add i {
  font-size: 1rem;
}

.flatpickr-calendar {
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(30, 41, 59, 0.1);
  border-radius: 12px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}
.flatpickr-calendar::before, .flatpickr-calendar::after {
  display: none;
}
.flatpickr-calendar .flatpickr-months {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 12px 12px 0 0;
  padding: 5px 0;
}
.flatpickr-calendar .flatpickr-months .flatpickr-month {
  color: white;
  fill: white;
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month {
  color: white;
  fill: white;
  padding: 10px;
}
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.flatpickr-calendar .flatpickr-current-month {
  font-weight: 600;
  color: white;
}
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
  font-weight: 600;
  color: white;
  background: transparent;
}
.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months:hover {
  background: rgba(255, 255, 255, 0.1);
}
.flatpickr-calendar .flatpickr-current-month .numInputWrapper {
  width: 7ch;
}
.flatpickr-calendar .flatpickr-current-month .numInputWrapper input {
  color: white !important;
  background: transparent !important;
  font-weight: 600 !important;
}
.flatpickr-calendar .flatpickr-current-month .numInputWrapper span {
  display: none !important;
}
.flatpickr-calendar .flatpickr-current-month .numInputWrapper:hover {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
.flatpickr-calendar .flatpickr-weekdays {
  background: transparent;
  padding: 10px 0;
}
.flatpickr-calendar span.flatpickr-weekday {
  color: #94a3b8;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
}
.flatpickr-calendar .flatpickr-day {
  border-radius: 8px;
  color: #334155;
  font-weight: 500;
}
.flatpickr-calendar .flatpickr-day.today {
  border-color: #cbd5e1;
}
.flatpickr-calendar .flatpickr-day.today:hover {
  background: #f1f5f9;
}
.flatpickr-calendar .flatpickr-day.selected, .flatpickr-calendar .flatpickr-day.startRange, .flatpickr-calendar .flatpickr-day.endRange {
  background: #1e293b;
  border-color: #1e293b;
  color: white;
}
.flatpickr-calendar .flatpickr-day.selected:hover, .flatpickr-calendar .flatpickr-day.startRange:hover, .flatpickr-calendar .flatpickr-day.endRange:hover {
  background: #0f172a;
  border-color: #0f172a;
}
.flatpickr-calendar .flatpickr-day:hover {
  background: #f1f5f9;
  border-color: transparent;
}
.flatpickr-calendar .flatpickr-day.flatpickr-disabled {
  color: #cbd5e1;
}
.flatpickr-calendar .flatpickr-time {
  border-top: 1px solid #f1f5f9;
}
.flatpickr-calendar .flatpickr-time input:hover {
  background: #f1f5f9;
}

.filter-card .form-control[readonly] {
  background-color: white;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='Ref:8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
}

.login-page {
  height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: #0f172a;
  position: relative;
}
.login-page .login-sidebar {
  flex: 1.2;
  background: linear-gradient(135deg, #0064A5 0%, #003554 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 991px) {
  .login-page .login-sidebar {
    display: none;
  }
}
.login-page .login-sidebar .decoration-circle {
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  animation: move-pulse 10s infinite alternate;
}
.login-page .login-sidebar .decoration-circle-2 {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  bottom: -50px;
  right: -50px;
  animation: move-pulse 15s infinite alternate-reverse;
}
.login-page .login-sidebar::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: rotate-slow 40s linear infinite;
}
.login-page .login-sidebar .logo-container {
  position: relative;
  z-index: 10;
  text-align: center;
  animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.login-page .login-sidebar .logo-container img {
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  margin-bottom: 2rem;
}
.login-page .login-sidebar .logo-container h4 {
  color: #fff;
  font-weight: 200;
  font-size: 2.5rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.login-page .login-sidebar .logo-container p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  font-weight: 400;
  max-width: 300px;
  margin: 0 auto;
}
.login-page .login-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  z-index: 5;
  background: radial-gradient(circle at top right, #1e293b, #0f172a);
}
@media (max-width: 991px) {
  .login-page .login-content {
    width: 100%;
  }
}
.login-page .login-content .login-card {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border-radius: 2.5rem;
  padding: 4rem 3.5rem;
  box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 576px) {
  .login-page .login-content .login-card {
    padding: 2.5rem 1.5rem;
    border-radius: 2rem;
  }
}
.login-page .login-content .login-card .login-header {
  text-align: center;
  margin-bottom: 3rem;
}
.login-page .login-content .login-card .login-header img.brand-logo-mobile {
  display: none;
}
@media (max-width: 991px) {
  .login-page .login-content .login-card .login-header img.brand-logo-mobile {
    display: block;
    width: 140px;
    margin: 0 auto 2rem;
  }
}
.login-page .login-content .login-card .login-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}
.login-page .login-content .login-card .login-header p {
  color: #94a3b8;
  font-weight: 500;
  font-size: 1.05rem;
}
.login-page .login-content .login-card .alert-custom {
  border-radius: 1.25rem;
  border: none;
  padding: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.login-page .login-content .login-card .alert-custom.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.login-page .login-content .login-card .alert-custom.alert-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.login-page .login-content .login-card .form-floating {
  margin-bottom: 1.25rem;
}
.login-page .login-content .login-card .form-floating .form-control {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  height: 64px;
  padding-left: 1.25rem;
  font-size: 1rem;
  color: #fff;
  transition: all 0.3s ease;
}
.login-page .login-content .login-card .form-floating .form-control:focus {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #0064A5;
  box-shadow: 0 0 0 4px rgba(0, 100, 165, 0.2);
}
.login-page .login-content .login-card .form-floating .form-control::-moz-placeholder {
  color: transparent;
}
.login-page .login-content .login-card .form-floating .form-control::placeholder {
  color: transparent;
}
.login-page .login-content .login-card .form-floating label {
  padding-left: 1.25rem;
  color: #64748b;
  font-weight: 500;
}
.login-page .login-content .login-card .btn-auth {
  height: 60px;
  border-radius: 1.25rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  margin-top: 1rem;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}
.login-page .login-content .login-card .btn-auth.btn-primary {
  background: linear-gradient(135deg, #0064A5 0%, #004b7c 100%);
  box-shadow: 0 12px 24px -6px rgba(0, 100, 165, 0.5);
}
.login-page .login-content .login-card .btn-auth.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px -8px rgba(0, 100, 165, 0.6);
}
.login-page .login-content .login-card .btn-auth.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
  box-shadow: 0 12px 24px -6px rgba(34, 197, 94, 0.5);
}
.login-page .login-content .login-card .btn-auth.btn-success:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 32px -8px rgba(34, 197, 94, 0.6);
}
.login-page .login-content .login-card .btn-auth:active {
  transform: translateY(0);
}
.login-page .login-content .login-card .link-muted {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.login-page .login-content .login-card .link-muted:hover {
  color: #fff;
}
.login-page .login-content .login-card .link-primary {
  color: #0064A5;
  text-decoration: none;
  transition: all 0.2s;
}
.login-page .login-content .login-card .link-primary:hover {
  color: #60a5fa;
  text-decoration: underline;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes move-pulse {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(20px, 20px) scale(1.1);
  }
}
.dashboard-container {
  padding: 1rem;
  max-width: 1400px;
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.card-welcome-modern {
  background: linear-gradient(135deg, #1e293b 0%, rgb(12.808988764, 17.5056179775, 25.191011236) 100%);
  border-radius: 16px;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 123, 154, 0.15);
}
.card-welcome-modern .welcome-time-badge {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
}
.card-welcome-modern .welcome-stats-mini {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.card-welcome-modern .welcome-stats-mini .stat-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.card-welcome-modern .welcome-stats-mini .stat-mini i {
  font-size: 1.5rem;
  opacity: 1;
  filter: brightness(1.2);
}
.card-welcome-modern .welcome-stats-mini .stat-mini .fw-bold {
  font-size: 1.25rem;
  line-height: 1;
  color: white;
}
.card-welcome-modern .welcome-stats-mini .stat-mini small {
  font-size: 0.75rem;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
}

.card-profile-modern {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.card-profile-modern .profile-avatar-modern {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #1e293b;
  margin: 0 auto;
}
.card-profile-modern .btn-primary {
  background-color: #1e293b;
  border-color: #1e293b;
}
.card-profile-modern .btn-primary:hover {
  background-color: rgb(16.2471910112, 22.204494382, 31.9528089888);
  border-color: rgb(16.2471910112, 22.204494382, 31.9528089888);
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  color: #495057;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.quick-action-card .icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.15rem;
}
.quick-action-card .icon-wrapper.bg-primary {
  background: #1e293b;
}
.quick-action-card .icon-wrapper.bg-info {
  background: #3b82f6;
}
.quick-action-card .icon-wrapper.bg-success {
  background: #10b981;
}
.quick-action-card .icon-wrapper.bg-purple {
  background: #8b5cf6;
}
.quick-action-card .icon-wrapper.bg-warning {
  background: #f59e0b;
}
.quick-action-card .icon-wrapper.bg-danger {
  background: #ef4444;
}
.quick-action-card .icon-wrapper i {
  color: white !important;
}
.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  color: #1e293b;
}

.stat-card-modern {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.stat-card-modern .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card-modern .stat-icon.bg-primary-light {
  background: rgba(30, 41, 59, 0.1);
}
.stat-card-modern .stat-icon.bg-success-light {
  background: rgba(16, 185, 129, 0.1);
}
.stat-card-modern .stat-icon.bg-info-light {
  background: rgba(59, 130, 246, 0.1);
}
.stat-card-modern .stat-icon.bg-warning-light {
  background: rgba(245, 158, 11, 0.1);
}
.stat-card-modern .stat-content {
  flex: 1;
}
.stat-card-modern .stat-content .stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
  margin-bottom: 0.2rem;
}
.stat-card-modern .stat-content .stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
}
.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.activity-card {
  background: white;
  border-radius: 12px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.activity-card .card-header {
  background: transparent;
  border-bottom: 1px solid #f1f3f5;
  padding: 1rem 1.25rem;
}
.activity-card .card-header h6 {
  font-weight: 700;
  color: #1a202c;
  margin: 0;
}
.activity-card .activity-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f8f9fa;
  transition: background 0.15s ease;
}
.activity-card .activity-item:last-child {
  border-bottom: none;
}
.activity-card .activity-item:hover {
  background: #f8f9fa;
}
.activity-card .activity-item .activity-title {
  font-weight: 600;
  color: #2d3748;
  font-size: 0.9rem;
}
.activity-card .activity-item .activity-meta {
  font-size: 0.8rem;
  color: #a0aec0;
}

@media (max-width: 991.98px) {
  .welcome-stats-mini {
    flex-direction: column;
    gap: 1rem !important;
  }
}
.col-table-gm-proyectos > td:nth-child(8),
.col-table-gm-proyectos > th:nth-child(8) {
  display: none;
}

.content-row {
  background: transparent;
  /* remove bootstrap 'border' visual for content rows so header looks clean */
  border: none !important;
  box-shadow: none !important;
}

form#formNuevoPost {
  margin: auto;
}

.row-column {
  background: #ffffff;
  padding: 0.5rem;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.row-column .col-blocks-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

.col-block {
  background: #ffffff;
  border: 1px solid #eef0f2;
  padding: 0.9rem 0.9rem 0.9rem 0.9rem;
  /* increase top padding to make room for top controls */
  border-radius: 8px;
  transition: box-shadow 160ms ease, transform 120ms ease, border-color 160ms ease;
  position: relative;
  padding-left: 44px;
  padding-right: 44px;
  overflow: visible;
  padding-bottom: 44px;
}

.col-block:hover {
  box-shadow: 0 6px 18px rgba(29, 31, 33, 0.06);
  border-color: rgba(0, 0, 0, 0.06);
}

.col-block:focus-within {
  box-shadow: 0 10px 30px rgba(29, 31, 33, 0.08);
  transform: translateY(-1px);
  border-color: rgba(0, 115, 185, 0.12);
}

.drag-handle {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9aa0a6;
  cursor: grab;
  border-radius: 6px;
}

.drag-handle svg {
  width: 14px;
  height: 14px;
}

.drag-handle i {
  font-size: 14px;
  color: #9aa0a6;
  line-height: 1;
}

.drag-handle:active {
  cursor: grabbing;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #495057;
  cursor: pointer;
}

.icon-btn:hover {
  background: #f6f8fa;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Compact '+' button near the rows */
.row-plus-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: #ffffff;
  color: #495057;
  cursor: pointer;
}

.row-plus-btn:hover {
  background: #f6f8fa;
}

/* Small grip to the right of the '+' that can be used to drag or open the menu */
.row-add-handle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  color: #9aa0a6;
  border: none;
  cursor: grab;
}

.row-add-handle:hover {
  background: #f6f8fa;
  color: #6c757d;
}

.row-add-handle:active {
  cursor: grabbing;
}

/* Row drag handle (small square at row header) */
.row-drag-handle {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #9aa0a6;
  cursor: grab;
}

.row-drag-handle i {
  font-size: 14px;
  color: #9aa0a6;
  line-height: 1;
}

.row-drag-handle:hover {
  background: #f6f8fa;
  color: #6c757d;
}

.row-drag-handle:active {
  cursor: grabbing;
}

.row-layout-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}

.row-layout-controls .icon-btn {
  width: 28px;
  height: 28px;
}

.row-layout-controls .icon-btn.active {
  background: #eaf4ff;
  color: #1e293b;
}

/* Controls area at bottom of column (add buttons) */
.col-controls {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.col-controls .icon-btn.small {
  width: 28px;
  height: 28px;
}

.gm-toolbar {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(29, 31, 33, 0.06);
  border-radius: 8px;
}

.gm-toolbar .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.slash-menu {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(29, 31, 33, 0.06);
  border-radius: 8px;
  z-index: 2200;
}

.slash-menu-list {
  max-height: 260px;
  overflow: auto;
}

.slash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.slash-item:hover {
  background: #f1f3f5;
}

/* Block menu (alignment actions) */
.block-menu {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(29, 31, 33, 0.06);
  border-radius: 8px;
}

.block-menu .icon-btn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.block-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 150ms ease;
}

.block-action-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #e0e0e0;
  color: #5f6368;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}

.block-action-btn:hover {
  background: #f8f9fa;
  border-color: #d0d0d0;
}

.block-action-btn:active {
  transform: scale(0.95);
}

.block-action-btn.block-action-delete {
  margin-left: 4px;
}

.block-action-btn.block-action-delete:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Show actions on block hover/focus */
.col-block:hover .block-actions,
.col-block:focus-within .block-actions {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {
  .col-block {
    padding-left: 34px;
  }
  .drag-handle {
    left: 6px;
  }
  .gm-toolbar {
    display: none !important;
  }
}
/* Row header styling */
.content-row .d-flex strong {
  font-size: 0.9rem;
  color: #495057;
  font-weight: 500;
}

/* Placeholder text for contenteditables */
.col-block-editable[contenteditable] {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

.col-block-editable:empty:before {
  content: attr(data-placeholder);
  color: #9aa0a6;
}

/* Slash menu visual improvements */
.slash-menu {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(29, 31, 33, 0.06);
  border-radius: 8px;
}

.slash-menu-list {
  max-height: 260px;
  overflow: auto;
}

.slash-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.slash-item .icon {
  width: 20px;
  height: 20px;
  background: #f1f3f5;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Toolbar polish */
.gm-toolbar {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e9ecef;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(29, 31, 33, 0.06);
  border-radius: 8px;
}

.gm-toolbar .btn {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.gm-toolbar .btn-outline-secondary {
  color: #495057;
  border-color: transparent;
  background: transparent;
}

.gm-toolbar .btn-danger {
  background: #eb5757;
  color: #fff;
  border: none;
}

@media (max-width: 767px) {
  .col-block {
    padding-left: 34px;
  }
  .drag-handle {
    left: 6px;
  }
  .gm-toolbar {
    display: none !important;
  }
}
.col-block-image-input {
  width: 100%;
}

.col-blocks-container textarea,
.col-blocks-container input {
  width: 100%;
}

.row-column .d-flex.gap-1 {
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .row-column {
    min-height: 160px;
  }
  .col-block-image-preview {
    height: 120px;
  }
}
.col-block-editable {
  min-height: 38px;
  padding: 0.45rem;
  outline: none;
  cursor: text;
}

/* Block menu button placed at top-right of each block and used as drag handle */
.block-menu-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  left: auto;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #fff;
  /* visually match the trash button */
  color: #495057;
  cursor: grab;
  z-index: 65;
  box-shadow: 0 6px 18px rgba(29, 31, 33, 0.06);
  border-radius: 6px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.block-menu-btn:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #111;
  box-shadow: 0 8px 22px rgba(29, 31, 33, 0.08);
}

.block-menu-btn:active {
  cursor: grabbing;
}

/* Show only when hovering the specific block or when it has focus */
.col-block:hover .block-menu-btn,
.col-block:focus-within .block-menu-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Row drag handle: visible always (not only on hover) */
.row-drag-handle {
  opacity: 1;
  transition: opacity 140ms ease, transform 140ms ease, background 140ms ease;
  background: transparent;
  color: #9aa0a6;
}

.content-row:hover .row-drag-handle,
.row-column:hover .row-drag-handle,
.row-drag-handle:focus {
  /* emphasize on hover/focus */
  background: #f6f8fa;
  color: #495057;
}

/* Remove hover visual for the specific Bootstrap-styled row handle
   used in the header (row-drag-handle btn btn-sm me-2) so it is
   visually static but still interactive for dragging. */
.row-drag-handle.btn.btn-sm.me-2:hover {
  background: transparent !important;
  color: #9aa0a6 !important;
}

/* Ensure delete icon doesn't show a heavy border */
.col-block .icon-btn {
  width: 28px;
  height: 28px;
}

.block-delete-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #fff;
  /* white background to match other control buttons */
  border: none;
  color: #eb5757;
  cursor: pointer;
  z-index: 65;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms;
}

.block-delete-btn i {
  color: #eb5757;
}

.block-delete-btn {
  box-shadow: 0 6px 18px rgba(29, 31, 33, 0.06);
}

.block-delete-btn:hover {
  background: rgba(235, 87, 87, 0.06);
}

/* Show delete only when hovering or focusing the block */
.col-block:hover .block-delete-btn,
.col-block:focus-within .block-delete-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.col-block-editable:empty:before {
  content: attr(data-placeholder);
  color: #9aa0a6;
  pointer-events: none;
}

.col-block-title {
  font-weight: 700;
  font-size: 1.15rem;
}

.col-block-subtitle {
  color: #6c757d;
  font-size: 0.95rem;
}

/* Native UL/LI list inside a list block */
.col-block.block-list {
  position: relative;
}

.col-block-list-ul {
  display: block !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  padding: 8px 8px 8px 30px !important;
  margin: 0 !important;
  min-height: 40px !important;
  outline: none !important;
  pointer-events: auto !important;
  -webkit-user-select: text !important;
     -moz-user-select: text !important;
          user-select: text !important;
}

.col-block-list-ul li {
  display: list-item !important;
  list-style-type: disc !important;
  list-style-position: outside !important;
  margin: 0 0 8px 0 !important;
  padding: 2px 0 2px 4px !important;
  line-height: 1.6 !important;
  outline: none !important;
  min-height: 1.6em !important;
  cursor: text !important;
  pointer-events: auto !important;
  -webkit-user-select: text !important;
     -moz-user-select: text !important;
          user-select: text !important;
  word-wrap: break-word !important;
}

.col-block-list-ul li:empty::before {
  content: attr(data-placeholder);
  color: #9aa0a6;
  font-style: italic;
  pointer-events: none;
}

.col-block-list-ul li:focus:empty::before {
  color: #bdc1c6;
}

/* Page break visual and print behaviour */
.page-break {
  background: transparent;
  border: 0;
}

.page-break-visual {
  font-size: 0.85rem;
  padding: 0.5rem 0;
  color: #6c757d;
  border-top: 1px dashed #e9ecef;
}

@media print {
  .page-break {
    page-break-before: always;
  }
}
.col-block .btn-danger {
  align-self: flex-end;
}

/* Slash menu */
.slash-menu {
  z-index: 2200;
  min-width: 200px;
}

.slash-menu-list .slash-item {
  padding: 8px 10px;
  cursor: pointer;
}

.slash-menu-list .slash-item:hover,
.slash-menu-list .slash-item:focus {
  background: #f1f3f5;
}

/* Toolbar */
.gm-toolbar {
  background: #fff;
  border: 1px solid #e9ecef;
  padding: 6px;
}

.gm-toolbar .btn {
  padding: 0.25rem 0.45rem;
  font-size: 0.85rem;
}

/* Alignment helper classes applied on the block */
.col-block.align-left .col-block-editable,
.col-block.align-left ul {
  text-align: left;
}

.col-block.align-center .col-block-editable,
.col-block.align-center ul {
  text-align: center;
}

.col-block.align-right .col-block-editable,
.col-block.align-right ul {
  text-align: right;
}

.col-block.align-justify .col-block-editable,
.col-block.align-justify ul {
  text-align: justify;
}

/* CMS Post Editor Enhancements */
@media (min-width: 992px) {
  .modal-xl {
    --bs-modal-width: 95% !important;
  }
}
.modal {
  left: 0 !important;
  right: 0 !important;
}

.modal-dialog-centered {
  display: flex !important;
  align-items: center !important;
  min-height: calc(100% - var(--bs-modal-margin) * 2) !important;
}

.blocks-container {
  background-color: #fdfdfd !important;
  background-image: radial-gradient(#e1e1e1 0.5px, transparent 0.5px);
  background-size: 20px 20px;
}

.col-md-4.border-end {
  background: #f8f9fa;
  padding: 1.5rem;
}

.form-label.small {
  color: #555;
  letter-spacing: 0.3px;
}

.modal-header.colors-gm-primary {
  background-color: #1e293b !important;
}

.btn-gm-primary {
  background-color: #1e293b !important;
  border-color: #1e293b !important;
}

.col-block {
  background: #fff !important;
  border: 1px solid #dee2e6 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  margin-bottom: 1rem !important;
}

.col-block:hover {
  border-color: #1e293b !important;
  box-shadow: 0 4px 12px rgba(0, 115, 154, 0.08);
}

.content-row {
  border: 1px dashed #ced4da !important;
  padding: 1rem !important;
  background: rgba(0, 0, 0, 0.01) !important;
}

.row-column {
  min-height: 100px !important;
}

.footer-gm-2 {
  margin-top: auto;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.container-gm-CMS {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 3rem;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

.table-gm {
  background-color: #1e293b !important;
}
.table-gm th {
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 1.25rem 1rem !important;
  border: none !important;
}

.table {
  border-collapse: separate;
  border-spacing: 0;
}
.table tbody tr {
  transition: all 0.2s ease;
}
.table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.02) !important;
}
.table td {
  padding: 1rem !important;
  vertical-align: middle;
  color: #475569;
}

.blocks-editor-container {
  background: #fdfdfd;
  border: 2px dashed #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  min-height: 100px;
  transition: all 0.3s ease;
}
.blocks-editor-container:empty::after {
  content: 'No hay bloques de contenido. Pulsa el botón "+" para empezar por una nueva fila.';
  display: block;
  text-align: center;
  color: #adb5bd;
  font-style: italic;
  padding: 2rem 0;
}
.blocks-editor-container.has-blocks {
  border-style: solid;
  background: white;
}

.row-plus-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1e293b;
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(30, 41, 59, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.row-plus-btn:hover {
  background-color: rgb(21.404494382, 29.2528089888, 42.095505618);
  transform: scale(1.1) rotate(90deg);
  color: white;
  box-shadow: 0 6px 15px rgba(30, 41, 59, 0.4);
}
.row-plus-btn:active {
  transform: scale(0.95);
}

.col-block {
  background: white;
  padding: 1rem;
  border: 1.5px solid #e9ecef !important;
  border-radius: 10px !important;
  margin-bottom: 1rem !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}
.col-block:hover {
  border-color: rgba(30, 41, 59, 0.3) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.block-actions {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin: 0.5rem -1rem -0.5rem -1rem;
  padding: 0.5rem 1rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.btn-gm-primary {
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}
.btn-gm-primary i {
  margin-right: 8px;
}

/* ========================================
   EMAIL BUILDER UX/UI IMPROVEMENTS
   ======================================== */
.email-builder-container {
  display: flex;
  gap: 1.5rem;
  min-height: calc(100vh - 300px);
  margin-top: 1rem;
}

.email-builder-sidebar {
  width: 340px;
  flex-shrink: 0;
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-height: calc(100vh - 320px);
  overflow-y: auto;
}
.email-builder-sidebar .section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #6c757d;
  letter-spacing: 0.5px;
}

.email-builder-canvas {
  flex: 1;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.blocks-palette {
  display: grid;
  gap: 0.75rem;
}
.blocks-palette .category-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #9ca3af;
}
.blocks-palette .block-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 2px dashed #dee2e6;
  border-radius: 6px;
  cursor: grab;
  transition: all 0.2s ease;
  background: white;
}
.blocks-palette .block-item:hover {
  border-color: #1e293b;
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 154, 0.1);
}
.blocks-palette .block-item:active {
  cursor: grabbing;
  transform: scale(0.98);
}
.blocks-palette .block-item .block-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9ecef;
  border-radius: 4px;
  font-size: 1.1rem;
  color: #495057;
  flex-shrink: 0;
}
.blocks-palette .block-item .block-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #495057;
}

.color-picker-group .color-picker-item label {
  display: block;
  margin-bottom: 0.5rem;
}
.color-picker-group .color-picker-item label .color-hint {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #6c757d;
  margin-top: 0.25rem;
}
.color-picker-group .color-picker-item .color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.color-picker-group .color-picker-item .color-input-wrapper input[type=color] {
  width: 50px;
  height: 38px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #dee2e6;
}
.color-picker-group .color-picker-item .color-input-wrapper .color-value {
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #6c757d;
  background: #f8f9fa;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.canvas-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid #e9ecef;
  flex-shrink: 0;
}
.canvas-actions .actions-left,
.canvas-actions .actions-right {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.email-canvas {
  flex: 1;
  padding: 2rem;
  background-color: #fafafa;
  background-image: radial-gradient(#e1e1e1 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  overflow-y: auto;
  position: relative;
}
.email-canvas .empty-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #6c757d;
  pointer-events: none;
}
.email-canvas .empty-state .empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}
.email-canvas .empty-state .empty-text {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #495057;
}
.email-canvas .empty-state .empty-hint {
  font-size: 0.9rem;
  opacity: 0.7;
}
.email-canvas:not(:empty) .empty-state, .email-canvas.has-content .empty-state {
  display: none;
}

.email-row {
  position: relative;
  margin-bottom: 1rem;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  background: white;
  transition: all 0.2s ease;
}
.email-row:hover {
  border-color: #1e293b;
  box-shadow: 0 4px 12px rgba(0, 115, 154, 0.08);
}
.email-row:hover .row-controls {
  opacity: 1;
  visibility: visible;
}
.email-row.has-content {
  border-style: solid;
}
.email-row .row-controls {
  position: absolute;
  top: -14px;
  right: 12px;
  display: flex;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}
.email-row .row-controls button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: white;
  border: 1px solid #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #495057;
}
.email-row .row-controls button:hover {
  background: #f8f9fa;
  border-color: #1e293b;
  color: #1e293b;
}
.email-row .row-controls button.delete-btn:hover {
  background: #fef2f2;
  border-color: #eb5757;
  color: #eb5757;
}

@media (max-width: 1200px) {
  .email-builder-container {
    flex-direction: column;
  }
  .email-builder-sidebar {
    width: 100%;
    max-height: none;
  }
}
.component-modal .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}
.component-modal .modal-header .modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2a38;
}
.component-modal .nav-tabs {
  padding: 0 1.5rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}
.component-modal .nav-tabs .nav-link {
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #6c757d;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.component-modal .nav-tabs .nav-link:hover {
  color: #1e293b;
}
.component-modal .nav-tabs .nav-link.active {
  background: transparent !important;
  color: #1e293b !important;
  border-bottom-color: #1e293b !important;
}
.component-modal .nav-tabs .nav-link i {
  margin-right: 0.5rem;
}
.component-modal .modal-body {
  padding: 1.5rem;
}
.component-modal .modal-body .tab-pane {
  padding-top: 0.5rem;
}
.component-modal .split-view-container {
  display: flex;
  gap: 1.5rem;
  min-height: 450px;
}
.component-modal .split-view-container .editor-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.component-modal .split-view-container .editor-section textarea {
  flex: 1;
  font-family: "Fira Code", "Courier New", monospace;
  font-size: 0.85rem;
  padding: 1rem;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  border: 1px solid #333;
  resize: none;
  line-height: 1.5;
}
.component-modal .split-view-container .editor-section textarea:focus {
  outline: none;
  border-color: #1e293b;
}
.component-modal .split-view-container .preview-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.component-modal .split-view-container .preview-section .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.component-modal .split-view-container .preview-section .preview-window {
  flex: 1;
  background: #f0f2f5;
  background-image: radial-gradient(#d1d5db 0.5px, transparent 0.5px);
  background-size: 15px 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  overflow: auto;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.component-modal .split-view-container .preview-section .preview-window .preview-content {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  width: 100%;
  min-height: 50px;
}
.component-modal .variable-helper {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}
.component-modal .variable-helper .helper-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #495057;
}
.component-modal .variable-helper .variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.component-modal .variable-helper .variable-list .v-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
}
.component-modal .variable-helper .variable-list .v-badge:hover {
  background: #eef2f5;
  border-color: #1e293b;
}
.component-modal .variable-helper .variable-list .v-badge code {
  color: inherit;
  font-weight: 600;
}

@media (max-width: 991px) {
  .component-modal .split-view-container {
    flex-direction: column;
  }
  .component-modal .split-view-container .editor-section,
  .component-modal .split-view-container .preview-section {
    min-height: 350px;
  }
}
/* ========================================
   EMAIL COMPONENTS MODAL IMPROVEMENTS
   ======================================== */
.component-modal .modal-dialog {
  max-width: 900px;
}
.component-modal .modal-body {
  padding: 0;
}

.component-tabs {
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
  padding: 0 1.5rem;
}
.component-tabs .nav-link {
  border: none;
  border-bottom: 3px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 1rem 1.5rem;
  transition: all 0.2s ease;
}
.component-tabs .nav-link:hover {
  color: #1e293b;
  background: rgba(0, 115, 154, 0.05);
}
.component-tabs .nav-link.active {
  color: #1e293b;
  border-bottom-color: #1e293b;
  background: white;
}
.component-tabs .nav-link i {
  margin-right: 0.5rem;
}

.tab-content {
  padding: 1.5rem;
}

.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  min-height: 400px;
}
@media (max-width: 768px) {
  .split-view {
    grid-template-columns: 1fr;
  }
}

.editor-panel,
.preview-panel {
  display: flex;
  flex-direction: column;
}
.editor-panel .panel-header,
.preview-panel .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.editor-panel .panel-header h6,
.preview-panel .panel-header h6 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.editor-panel .panel-header .panel-actions,
.preview-panel .panel-header .panel-actions {
  display: flex;
  gap: 0.5rem;
}
.editor-panel .panel-header .panel-actions button,
.preview-panel .panel-header .panel-actions button {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}
.editor-panel .panel-body,
.preview-panel .panel-body {
  flex: 1;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
}
.editor-panel .panel-body textarea,
.preview-panel .panel-body textarea {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.875rem;
  padding: 1rem;
  resize: none;
}
.editor-panel .panel-body textarea:focus,
.preview-panel .panel-body textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(0, 115, 154, 0.2);
}

.preview-panel .panel-body {
  padding: 1rem;
  background: white;
  background-image: radial-gradient(circle, #e9ecef 1px, transparent 1px);
  background-size: 20px 20px;
  overflow-y: auto;
}
.preview-panel .panel-body .preview-content {
  background: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 100px;
}
.preview-panel .preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #adb5bd;
  font-size: 0.875rem;
}
.preview-panel .preview-empty i {
  margin-right: 0.5rem;
  font-size: 1.5rem;
}

.form-group-enhanced {
  margin-bottom: 1.25rem;
}
.form-group-enhanced label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #495057;
  margin-bottom: 0.5rem;
}
.form-group-enhanced label .label-badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 12px;
}
.form-group-enhanced label .label-badge.required {
  background: #ffc107;
  color: #000;
}
.form-group-enhanced label .label-badge.optional {
  background: #e9ecef;
  color: #6c757d;
}
.form-group-enhanced label .label-tooltip {
  color: #6c757d;
  cursor: help;
}
.form-group-enhanced label .label-tooltip:hover {
  color: #1e293b;
}
.form-group-enhanced .form-hint {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
  display: flex;
  align-items: start;
  gap: 0.5rem;
}
.form-group-enhanced .form-hint i {
  margin-top: 0.125rem;
  flex-shrink: 0;
}

.template-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.template-buttons .template-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}
.template-buttons .template-btn:hover {
  border-color: #1e293b;
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 115, 154, 0.1);
}
.template-buttons .template-btn i {
  font-size: 2rem;
  color: #1e293b;
}
.template-buttons .template-btn span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
  text-align: center;
}

.detected-variables {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}
.detected-variables .variables-header {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}
.detected-variables .variable-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.detected-variables .variable-list .variable-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 16px;
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  color: #495057;
}
.detected-variables .variable-list .variable-tag i {
  font-size: 0.625rem;
  color: #1e293b;
}
.detected-variables .no-variables {
  font-size: 0.75rem;
  color: #adb5bd;
  font-style: italic;
}

.auto-generated-field {
  position: relative;
}
.auto-generated-field input {
  background: #f8f9fa;
  border-color: #dee2e6;
}
.auto-generated-field input:disabled {
  cursor: not-allowed;
}
.auto-generated-field .auto-badge {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  padding: 0.125rem 0.5rem;
  background: #e7f3ff;
  color: #1e293b;
  border-radius: 12px;
  font-weight: 600;
}

.thumbnail-preview {
  margin-top: 0.75rem;
}
.thumbnail-preview img {
  max-width: 200px;
  max-height: 120px;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  -o-object-fit: cover;
     object-fit: cover;
}
.thumbnail-preview .no-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 120px;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  color: #adb5bd;
  font-size: 0.875rem;
}
.thumbnail-preview .no-thumbnail i {
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .component-modal .modal-dialog {
    max-width: 100%;
    margin: 0.5rem;
  }
  .split-view {
    min-height: 300px;
  }
  .template-buttons {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
.badge-gm {
  padding: 0.5em 1em;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-gm.badge-published {
  background-color: #d1e7dd;
  color: #0f5132;
}
.badge-gm.badge-draft {
  background-color: #f8d7da;
  color: #842029;
}

.table-gm-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
}
.table-gm-container .table {
  margin-bottom: 0;
}
.table-gm-container .table thead {
  background-color: #f8f9fa;
}
.table-gm-container .table thead th {
  border-bottom: none;
  padding: 1rem;
  font-size: 0.85rem;
  color: #1e293b;
  font-weight: 700;
}
.table-gm-container .table tbody td {
  padding: 1rem;
  border-bottom: 1px solid #edf2f7;
  font-size: 0.9rem;
}

.btn-gm-add {
  background-color: #1e293b;
  color: white;
  border-radius: 8px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}
.btn-gm-add:hover {
  background-color: rgb(12.808988764, 17.5056179775, 25.191011236);
  color: white;
  transform: translateY(-1px);
}

.btn-status-dropdown {
  border: none;
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-status-dropdown.pendiente {
  background-color: #e0f2fe;
  color: #0369a1;
}
.btn-status-dropdown.entrevista {
  background-color: #dcfce7;
  color: #15803d;
}
.btn-status-dropdown.rechazado {
  background-color: #fee2e2;
  color: #b91c1c;
}
.btn-status-dropdown:hover {
  filter: brightness(0.95);
}

.btn-gm-outline-primary {
  border: 1.5px solid #1e293b;
  color: #1e293b;
  background: transparent;
  border-radius: 6px;
  font-weight: 600;
}
.btn-gm-outline-primary:hover {
  background-color: #1e293b;
  color: white;
}

.estado-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.estado-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.estado-pendiente {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  color: #856404;
  border: 1px solid #ffc107;
}
.estado-pendiente::before {
  background-color: #856404;
}

.estado-aprobada {
  background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
  color: #0f5132;
  border: 1px solid #198754;
}
.estado-aprobada::before {
  background-color: #0f5132;
}

.estado-rechazada {
  background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
  color: #842029;
  border: 1px solid #dc3545;
}
.estado-rechazada::before {
  background-color: #842029;
}

.filter-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 100, 165, 0.1);
}
.filter-card .form-select,
.filter-card .form-control {
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  min-height: 48px;
  padding: 10px 12px;
}
.filter-card .form-select:focus,
.filter-card .form-control:focus {
  border-color: #0064A5;
  box-shadow: 0 0 0 0.2rem rgba(0, 100, 165, 0.15);
}
.filter-card .form-select:hover,
.filter-card .form-control:hover {
  border-color: #1e293b;
  box-shadow: 0 0 0 0.2rem rgba(30, 41, 59, 0.15);
}
.filter-card .form-select:hover,
.filter-card .form-control:hover {
  border-color: #1e293b;
}
.filter-card .form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-buttons .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.table-gm-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table thead {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.table tbody tr {
  transition: all 0.2s ease;
}
.table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.05);
  cursor: pointer;
}

.btn-filter-primary {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(30, 41, 59, 0.2);
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.95rem;
}
.btn-filter-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.3);
  background: linear-gradient(135deg, #0f172a 0%, #000 100%);
}

.btn-clear {
  transition: all 0.2s ease;
}
.btn-clear:hover {
  background-color: #6c757d;
  color: white;
  transform: translateX(-2px);
}

.choices {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.choices__inner {
  background-color: #fff;
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  min-height: 48px;
  height: 48px;
  padding: 10px 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}
.choices__inner:hover {
  border-color: #1e293b;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: #1e293b;
  box-shadow: 0 0 0 0.2rem rgba(30, 41, 59, 0.15);
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border: 1.5px solid #1e293b;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  margin-top: 4px;
  background-color: white;
}
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
  padding: 10px 16px;
  transition: all 0.15s ease;
  font-size: 0.9rem;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #1e293b;
  color: white;
}
.choices__list--dropdown::-webkit-scrollbar,
.choices__list[aria-expanded]::-webkit-scrollbar {
  width: 8px;
}
.choices__list--dropdown::-webkit-scrollbar-track,
.choices__list[aria-expanded]::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.choices__list--dropdown::-webkit-scrollbar-thumb,
.choices__list[aria-expanded]::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
.choices__list--dropdown::-webkit-scrollbar-thumb:hover,
.choices__list[aria-expanded]::-webkit-scrollbar-thumb:hover {
  background: #0f172a;
}

.choices__input {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border: 1px solid #dee2e6;
  font-size: 0.9rem;
}
.choices__input:focus {
  border-color: #1e293b;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.choices[data-type*=select-one] .choices__inner {
  padding-bottom: 10px;
}
.choices[data-type*=select-one]::after {
  border-color: #495057 transparent transparent;
  margin-top: -2px;
}

.choices__placeholder {
  opacity: 0.5;
}

.choices__item--selectable {
  cursor: pointer;
}

.modal-detail-wrapper {
  padding: 1rem;
}
.modal-detail-wrapper .detail-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.modal-detail-wrapper .section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f8f9fa;
}
.modal-detail-wrapper .section-header i {
  color: #1e293b;
  font-size: 1.1rem;
}
.modal-detail-wrapper .section-header h6 {
  margin: 0;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.modal-detail-wrapper .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.modal-detail-wrapper .info-grid .info-item .info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.modal-detail-wrapper .info-grid .info-item .info-value {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
}
.modal-detail-wrapper .receipt-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px dashed #cbd5e1;
}
.modal-detail-wrapper .receipt-card .receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
}
.modal-detail-wrapper .receipt-card .receipt-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.modal-detail-wrapper .receipt-card .receipt-row span {
  font-size: 0.9rem;
  color: #64748b;
}
.modal-detail-wrapper .receipt-card .receipt-row strong {
  color: #1e293b;
  font-family: "Monaco", "Consolas", monospace;
}
.modal-detail-wrapper .receipt-card .receipt-row.receipt-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #1e293b;
}
.modal-detail-wrapper .receipt-card .receipt-row.receipt-total span {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
}
.modal-detail-wrapper .receipt-card .receipt-row.receipt-total strong {
  font-size: 1.4rem;
  color: #1e293b;
}
.modal-detail-wrapper .facturas-premium-table {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef2f7;
}
.modal-detail-wrapper .facturas-premium-table thead {
  background-color: #f8f9fa;
}
.modal-detail-wrapper .facturas-premium-table thead th {
  border: none;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem;
}
.modal-detail-wrapper .facturas-premium-table tbody tr:hover {
  background-color: #fcfdfe;
}
.modal-detail-wrapper .facturas-premium-table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.modal-detail-wrapper .personal-incluido-box {
  background: #fff;
  border-left: 4px solid #1e293b;
  padding: 1.25rem;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}
.modal-detail-wrapper .personal-incluido-box p {
  margin: 0;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.liquidacion-form-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
  background-color: #f8fafc;
}
.liquidacion-form-container .section-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.liquidacion-form-container .section-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.liquidacion-form-container .section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}
.liquidacion-form-container .section-title i {
  font-size: 1.25rem;
  color: #1e293b;
}
.liquidacion-form-container .form-group-premium {
  margin-bottom: 1.5rem;
}
.liquidacion-form-container .form-group-premium label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.liquidacion-form-container .form-group-premium .input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
}
.liquidacion-form-container .form-group-premium .input-group-custom i {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  font-size: 0.9rem;
  z-index: 5;
}
.liquidacion-form-container .form-group-premium .input-group-custom .form-control,
.liquidacion-form-container .form-group-premium .input-group-custom .form-select,
.liquidacion-form-container .form-group-premium .input-group-custom .ts-control {
  padding-left: 2.75rem !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  min-height: 48px !important;
  transition: all 0.2s ease !important;
  font-size: 0.95rem !important;
}
.liquidacion-form-container .form-group-premium .input-group-custom .form-control:focus,
.liquidacion-form-container .form-group-premium .input-group-custom .form-select:focus,
.liquidacion-form-container .form-group-premium .input-group-custom .ts-control:focus {
  border-color: #1e293b !important;
  box-shadow: 0 0 0 4px rgba(30, 41, 59, 0.08) !important;
  background-color: #fff;
}
.liquidacion-form-container .summary-card-premium {
  background: #1e293b;
  border-radius: 20px;
  padding: 2rem;
  color: #fff;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 2rem;
}
.liquidacion-form-container .summary-card-premium .summary-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 1.5rem;
  display: block;
}
.liquidacion-form-container .summary-card-premium .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.liquidacion-form-container .summary-card-premium .summary-item span {
  font-size: 0.9rem;
  opacity: 0.9;
}
.liquidacion-form-container .summary-card-premium .summary-item strong {
  font-family: "Monaco", "Consolas", monospace;
  font-size: 1rem;
}
.liquidacion-form-container .summary-card-premium .summary-item:last-of-type {
  border-bottom: none;
}
.liquidacion-form-container .summary-card-premium .summary-total {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  text-align: right;
}
.liquidacion-form-container .summary-card-premium .summary-total .total-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.liquidacion-form-container .summary-card-premium .summary-total .total-amount {
  font-size: 2rem;
  font-weight: 800;
  font-family: "Monaco", "Consolas", monospace;
}
.liquidacion-form-container .factura-item-premium {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.liquidacion-form-container .factura-item-premium:hover {
  border-color: #1e293b;
  transform: translateX(5px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}
.liquidacion-form-container .factura-item-premium .category-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e293b;
  font-size: 1.25rem;
}
.liquidacion-form-container .factura-item-premium .factura-info {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.liquidacion-form-container .factura-item-premium .factura-info .info-block .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.liquidacion-form-container .factura-item-premium .factura-info .info-block .value {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}
.liquidacion-form-container .factura-item-premium .factura-monto {
  text-align: right;
  min-width: 120px;
}
.liquidacion-form-container .factura-item-premium .factura-monto .label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}
.liquidacion-form-container .factura-item-premium .factura-monto .amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  font-family: "Monaco", "Consolas", monospace;
}
.liquidacion-form-container .factura-item-premium .factura-actions .btn-delete {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff1f2;
  color: #e11d48;
  border: none;
  transition: all 0.2s ease;
}
.liquidacion-form-container .factura-item-premium .factura-actions .btn-delete:hover {
  background: #e11d48;
  color: #fff;
  transform: scale(1.1);
}
.liquidacion-form-container .empty-state-premium {
  padding: 4rem 2rem;
  text-align: center;
  background: #f8fafc;
  border-radius: 16px;
  border: 2px dashed #e2e8f0;
}
.liquidacion-form-container .empty-state-premium i {
  font-size: 3rem;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}
.liquidacion-form-container .empty-state-premium p {
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.chat-container {
  display: flex;
  height: calc(100vh - 85px);
  background: #fff;
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* Sidebar de Contactos */
}
.chat-container .chat-sidebar {
  width: 350px;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
}
.chat-container .chat-sidebar .sidebar-header {
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chat-container .chat-sidebar .sidebar-header h5 {
  margin: 0;
  font-weight: 700;
  font-size: 1.1rem;
}
.chat-container .chat-sidebar .search-box {
  padding: 12px 15px;
}
.chat-container .chat-sidebar .search-box .form-control {
  background: #f0f2f5;
  border: none;
  border-radius: 8px;
  padding: 8px 15px;
  font-size: 0.9rem;
}
.chat-container .chat-sidebar .search-box .form-control:focus {
  box-shadow: none;
  background: #e9ecef;
}
.chat-container .chat-sidebar .contact-list {
  flex-grow: 1;
  overflow-y: auto;
}
.chat-container .chat-sidebar .contact-list::-webkit-scrollbar {
  width: 5px;
}
.chat-container .chat-sidebar .contact-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.chat-container .chat-sidebar .contact-list .contact-item {
  padding: 12px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid #f8f9fa;
}
.chat-container .chat-sidebar .contact-list .contact-item:hover {
  background: #f5f6f7;
}
.chat-container .chat-sidebar .contact-list .contact-item.active {
  background: #ebebeb;
  border-left: 4px solid #0064A5;
}
.chat-container .chat-sidebar .contact-list .contact-item .avatar-chat {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #666;
  font-size: 1.2rem;
}
.chat-container .chat-sidebar .contact-list .contact-item .contact-info {
  flex-grow: 1;
  min-width: 0;
}
.chat-container .chat-sidebar .contact-list .contact-item .contact-info .name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-container .chat-sidebar .contact-list .contact-item .contact-info .last-msg {
  font-size: 0.8rem;
  color: #888;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.chat-container .chat-sidebar .contact-list .contact-item .meta {
  text-align: right;
}
.chat-container .chat-sidebar .contact-list .contact-item .meta .time {
  font-size: 0.7rem;
  color: #aaa;
}
.chat-container .chat-sidebar .contact-list .contact-item .meta .unread {
  background: #25D366;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.65rem;
  font-weight: bold;
}
.chat-container {
  /* Área de Chat */
}
.chat-container .chat-view {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #e5ddd5;
  background-image: url("https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png");
  background-repeat: repeat;
}
.chat-container .chat-view .chat-header {
  padding: 10px 20px;
  background: #f0f2f5;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  gap: 15px;
}
.chat-container .chat-view .chat-header .back-btn {
  display: none;
  margin-right: 10px;
  cursor: pointer;
}
.chat-container .chat-view .chat-header .name {
  font-weight: 600;
  font-size: 1rem;
}
.chat-container .chat-view .chat-header .status {
  font-size: 0.75rem;
  color: #777;
}
.chat-container .chat-view .messages-window {
  flex-grow: 1;
  padding: 25px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-container .chat-view .messages-window::-webkit-scrollbar {
  width: 6px;
}
.chat-container .chat-view .messages-window::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.chat-container .chat-view .messages-window .message {
  max-width: 65%;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  font-size: 0.92rem;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}
.chat-container .chat-view .messages-window .message.incoming {
  align-self: flex-start;
  background: #fff;
  color: #333;
  border-top-left-radius: 0;
}
.chat-container .chat-view .messages-window .message.outgoing {
  align-self: flex-end;
  background: #dcf8c6;
  color: #333;
  border-top-right-radius: 0;
}
.chat-container .chat-view .messages-window .message .time {
  font-size: 0.65rem;
  color: #888;
  float: right;
  margin-top: 5px;
  margin-left: 10px;
}
.chat-container .chat-view .chat-footer {
  padding: 10px 15px;
  background: #f0f2f5;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-container .chat-view .chat-footer .input-group {
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #eee;
}
.chat-container .chat-view .chat-footer .input-group .form-control {
  border: none;
  padding: 10px 20px;
}
.chat-container .chat-view .chat-footer .input-group .form-control:focus {
  box-shadow: none;
}
.chat-container .chat-view .chat-footer .send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #0064A5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: transform 0.2s;
}
.chat-container .chat-view .chat-footer .send-btn:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .chat-container .chat-sidebar {
    width: 100%;
  }
  .chat-container .chat-sidebar.hidden-mobile {
    display: none;
  }
  .chat-container .chat-view {
    width: 100%;
    display: none;
  }
  .chat-container .chat-view.visible-mobile {
    display: flex;
  }
  .chat-container .chat-view .back-btn {
    display: block;
  }
}
.w-10 {
  width: 10% !important;
}

.badge-role-gm {
  padding: 0.35em 0.8em;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.badge-role-gm.admin {
  background-color: #2ecc71;
  color: white;
}
.badge-role-gm.rrhh {
  background-color: #9b59b6;
  color: white;
}
.badge-role-gm.proyecto {
  background-color: #3498db;
  color: white;
}
.badge-role-gm.comercial {
  background-color: #f1c40f;
  color: #2c3e50;
}
.badge-role-gm.usuario {
  background-color: #bdc3c7;
  color: #2c3e50;
}

.estado-badge {
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.estado-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.estado-pendiente {
  background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
  color: #856404;
  border: 1px solid #ffc107;
}
.estado-pendiente::before {
  background-color: #856404;
}

.estado-aprobada {
  background: linear-gradient(135deg, #d1e7dd 0%, #badbcc 100%);
  color: #0f5132;
  border: 1px solid #198754;
}
.estado-aprobada::before {
  background-color: #0f5132;
}

.estado-rechazada {
  background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
  color: #842029;
  border: 1px solid #dc3545;
}
.estado-rechazada::before {
  background-color: #842029;
}

.filter-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 100, 165, 0.1);
}
.filter-card .form-select,
.filter-card .form-control {
  border: 1.5px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  min-height: 48px;
  padding: 10px 12px;
}
.filter-card .form-select:focus,
.filter-card .form-control:focus {
  border-color: #1e293b;
  box-shadow: 0 0 0 0.2rem rgba(0, 100, 165, 0.15);
}
.filter-card .form-select:hover,
.filter-card .form-control:hover {
  border-color: #1e293b;
}
.filter-card .form-label {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.action-buttons .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-weight: 500;
}
.action-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.table-gm-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table thead {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.table tbody tr {
  transition: all 0.2s ease;
}
.table tbody tr:hover {
  background-color: rgba(0, 100, 165, 0.05);
  cursor: pointer;
}

.btn-filter-primary {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 100, 165, 0.3);
  min-height: 48px;
  padding: 10px 16px;
  font-size: 0.95rem;
}
.btn-filter-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 100, 165, 0.4);
  background: linear-gradient(135deg, #005a94 0%, #003d66 100%);
}

.btn-clear {
  transition: all 0.2s ease;
}
.btn-clear:hover {
  background-color: #6c757d;
  color: white;
  transform: translateX(-2px);
}

.filter-card .choices {
  margin-bottom: 0;
  font-size: 0.9rem;
}
.filter-card .choices .choices__inner {
  background-color: #fff !important;
  border: 1.5px solid #dee2e6 !important;
  border-radius: 8px !important;
  min-height: 48px !important;
  height: 48px !important;
  padding: 5px 12px !important;
  font-size: 0.95rem !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.filter-card .choices .choices__inner:hover {
  border-color: #1e293b !important;
}
.filter-card .choices.is-focused .choices__inner, .filter-card .choices.is-open .choices__inner {
  border-color: #1e293b !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 100, 165, 0.15) !important;
}
.filter-card .choices .choices__list--dropdown,
.filter-card .choices .choices__list[aria-expanded] {
  border: 1.5px solid #1e293b !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
  z-index: 1050 !important;
  margin-top: 4px !important;
  background-color: white !important;
  overflow: hidden !important;
}
.filter-card .choices .choices__list--dropdown .choices__item,
.filter-card .choices .choices__list[aria-expanded] .choices__item {
  padding: 10px 16px !important;
  transition: all 0.15s ease !important;
  font-size: 0.9rem !important;
}
.filter-card .choices .choices__list--dropdown .choices__item--selectable.is-highlighted,
.filter-card .choices .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
  background-color: #1e293b !important;
  color: white !important;
}
.filter-card .choices .choices__list--dropdown::-webkit-scrollbar,
.filter-card .choices .choices__list[aria-expanded]::-webkit-scrollbar {
  width: 8px !important;
}
.filter-card .choices .choices__list--dropdown::-webkit-scrollbar-track,
.filter-card .choices .choices__list[aria-expanded]::-webkit-scrollbar-track {
  background: #f1f1f1 !important;
  border-radius: 4px !important;
}
.filter-card .choices .choices__list--dropdown::-webkit-scrollbar-thumb,
.filter-card .choices .choices__list[aria-expanded]::-webkit-scrollbar-thumb {
  background: #1e293b !important;
  border-radius: 4px !important;
}
.filter-card .choices .choices__list--dropdown::-webkit-scrollbar-thumb:hover,
.filter-card .choices .choices__list[aria-expanded]::-webkit-scrollbar-thumb:hover {
  background: #0f172a !important;
}
.filter-card .choices .choices__input {
  background-color: #f8f9fa !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  border: 1px solid #dee2e6 !important;
  font-size: 0.9rem !important;
}
.filter-card .choices .choices__input:focus {
  border-color: #1e293b !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(0, 100, 165, 0.1) !important;
}
.filter-card .choices[data-type*=select-one] .choices__inner {
  padding-bottom: 5px !important;
}
.filter-card .choices[data-type*=select-one]::after {
  border-color: #495057 transparent transparent !important;
  margin-top: -2px !important;
  right: 15px !important;
}
.filter-card .choices .choices__placeholder {
  opacity: 0.5 !important;
}
.filter-card .choices .choices__item--selectable {
  cursor: pointer !important;
}

.modal-detail-wrapper {
  padding: 1rem;
}
.modal-detail-wrapper .detail-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.modal-detail-wrapper .section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f8f9fa;
}
.modal-detail-wrapper .section-header i {
  color: #1e293b;
  font-size: 1.1rem;
}
.modal-detail-wrapper .section-header h6 {
  margin: 0;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.modal-detail-wrapper .info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.modal-detail-wrapper .info-grid .info-item .info-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.modal-detail-wrapper .info-grid .info-item .info-value {
  display: block;
  font-size: 0.95rem;
  color: #1e293b;
  font-weight: 500;
}
.modal-detail-wrapper .receipt-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px dashed #cbd5e1;
}
.modal-detail-wrapper .receipt-card .receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
}
.modal-detail-wrapper .receipt-card .receipt-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.modal-detail-wrapper .receipt-card .receipt-row span {
  font-size: 0.9rem;
  color: #64748b;
}
.modal-detail-wrapper .receipt-card .receipt-row strong {
  color: #1e293b;
  font-family: "Monaco", "Consolas", monospace;
}
.modal-detail-wrapper .receipt-card .receipt-row.receipt-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #1e293b;
}
.modal-detail-wrapper .receipt-card .receipt-row.receipt-total span {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
}
.modal-detail-wrapper .receipt-card .receipt-row.receipt-total strong {
  font-size: 1.4rem;
  color: #1e293b;
}
.modal-detail-wrapper .facturas-premium-table {
  margin-top: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eef2f7;
}
.modal-detail-wrapper .facturas-premium-table thead {
  background-color: #f8f9fa;
}
.modal-detail-wrapper .facturas-premium-table thead th {
  border: none;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1rem;
}
.modal-detail-wrapper .facturas-premium-table tbody tr:hover {
  background-color: #fcfdfe;
}
.modal-detail-wrapper .facturas-premium-table tbody tr td {
  padding: 1rem;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.modal-detail-wrapper .personal-incluido-box {
  background: #fff !important;
  border-left: 4px solid #1e293b !important;
  padding: 1.25rem !important;
  border-radius: 4px 12px 12px 4px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}
.modal-detail-wrapper .personal-incluido-box p {
  margin: 0 !important;
  color: #475569 !important;
  line-height: 1.6 !important;
  font-size: 0.9rem !important;
}/*# sourceMappingURL=mainCMS.css.map */