/* Professional CMS Theme Overrides */
:root {
  --primary-gradient: linear-gradient(135deg, #171A1C 0%, #455454 100%);
  --primary: #171A1C;
  --primary-dark: #171A1C;
  --secondary: #455454;
  --accent: #455454;
  --primary-color: #171A1C;
  --primary-green: #171A1C;
  --secondary-green: #455454;
  --accent-green: #F1F2F3;
  --surface-light: #F1F2F3;
  --hover-color: #455454;

}

body {
  background-color: #F1F2F3;
  color: #171A1C;
}

/* Modal Jumping/Shifting Fixes */
body.modal-open {
  padding-right: 0 !important;
}

.modal {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}


.sidebar .nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar .nav-link:hover {
  color: var(--accent-green) !important;
  background: rgba(255, 255, 255, 0.05);
}

.sidebar .nav-item.active > .nav-link {
  background: var(--primary-gradient) !important;
  border-radius: 8px;
  margin: 0 8px;
}

.sidebar .multi-level .nav-item.active > .nav-link {
  background: var(--primary-gradient) !important;
  border-radius: 8px;
  margin: 0 8px;
}

/* Premium Sidebar Icon & Link Styling */
.sidebar .sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: #F1F2F3 !important;
}

.sidebar .nav-link:hover .sidebar-icon {
  transform: scale(1.15) translateY(-1px);
  color: #F1F2F3 !important;
}

.sidebar .nav-link i {
  color: #F1F2F3 !important;
}

.sidebar .nav-item.active > .nav-link .sidebar-icon {
  color: #fff !important;
}

.sidebar .link-arrow {
  transition: transform 0.3s ease;
}

/* Submenu Enhancements */
.sidebar .multi-level .nav-item .nav-link {
  padding-left: 3rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7) !important;
  transition: all 0.2s ease;
  background: transparent !important;
  display: flex;
  align-items: center;
}

.sidebar .multi-level .nav-item .nav-link i {
  width: 16px;
  font-size: 0.8rem;
  margin-right: 12px;
  opacity: 0.6;
  transition: all 0.2s ease;
}

.sidebar .multi-level .nav-item .nav-link:hover {
  color: #fff !important;
  padding-left: 3.25rem;
  background: transparent !important;
}

.sidebar .multi-level .nav-item .nav-link:hover i {
  opacity: 1;
  color: var(--accent-green);
  transform: scale(1.1);
}

.sidebar .multi-level .nav-item.active > .nav-link {
  color: var(--accent-green) !important;
  font-weight: 600;
  box-shadow: none !important;
}

.sidebar .multi-level .nav-item.active > .nav-link i {
  opacity: 1;
  color: var(--accent-green);
}

.card {
  border-radius: 12px;
  border: none;
  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;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.card-header.bg-black {
  background: var(--secondary-green) !important;
}

.icon-shape-tertiary {
  color: var(--primary-green) !important;
  background-color: rgba(0, 153, 117, 0.1) !important;
}

.btn-primary {
  background: var(--primary-gradient);
}

.btn-outline-primary {
  color: var(--primary-green);
  border-color: var(--primary-green);
}


.text-primary {
  color: var(--primary-green) !important;
}

.border-primary {
  border-color: rgba(0, 153, 117, 0.2) !important;
}

.bg-theme-premium {
  background: var(--primary-gradient) !important;
}

/* Module Header & Actions Styling */
.module-header-container {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.module-header-title {
  font-weight: 800 !important;
  color: #1f2937;
  letter-spacing: -0.02em;
  position: relative;
  padding-left: 1.25rem;
}

.module-header-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 1.5rem;
  background: var(--primary-gradient);
  border-radius: 10px;
}

.btn-theme-actions {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0, 153, 117, 0.15) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: inline-flex;
  align-items: center;
}

.btn-theme-actions:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 153, 117, 0.25) !important;
}

.btn-theme-actions::after {
  margin-left: 0.75rem !important;
}

/* Original Custom Styles */
.card .grid-view .table {
  margin-bottom: 2rem;
}

.grid-view-label {
  margin: 0;
}

.btn-group-sm > .btn.btn-icon,
.btn.btn-icon.btn-sm {
  height: calc(1.35em + 1.1rem + 2px);
  width: calc(1.35em + 1.1rem + 2px);
}

.table td,
.table th {
  vertical-align: middle;
}

.card .table {
  margin-bottom: 1rem;
}

.table.table-separate tbody tr:last-child td {
  border-bottom: 0;
}

.form-group {
  margin-bottom: 1rem !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
  box-sizing: border-box;
  list-style: none;
  margin: 0;
  padding: 0 5px;
  width: 100%;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
  display: flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 1rem;
  margin: 0.1rem 0.4rem 0.1rem 0;
  position: relative;
  float: left;
}

.select2.select2-container {
  width: 100% !important;
}

.select2-search--dropdown .select2-search__field {
  width: 98%;
}

.select2-selection__choice__remove {
  cursor: pointer;
}


.form-control {
  border-radius: 0.42rem;
  box-shadow: none;
}

.table > :not(:first-child) {
  border-top: none;
}

.nav-tabs {
  border-bottom: none;
}



.hide {
  display: none;
}

.blockUI {
  background: #fff;
  box-shadow: 0 0 50px 0 rgb(82 63 105 / 15%);
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  border-radius: 0.42rem;
}

.blockUI > span {
  color: #3f4254;
  padding: 0.75rem 1.2rem;
  font-size: 1rem;
  font-weight: 400;
  flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
}

.spinner {
  position: relative;
}

.spinner.spinner-danger:before {
  border: 2px solid #f64e60;
  border-right: 2px solid transparent;
  animation: rotation .5s linear infinite;
}

.spinner.spinner-info:before {
  border: 2px solid #3699ff;
  border-right: 2px solid transparent;
  animation: rotation .5s linear infinite;
}

.spinner:before {
  animation: rotation .5s linear infinite;
  -webkit-animation: rotation .5s linear infinite;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  content: '';
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 0;
  border-radius: 50%;
  border: 2px solid #d1d3e0;
  border-right: 2px solid transparent;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.btn-success,
.btn-success:hover {
  color: #FFFFFF;
}

.nav-tabs .nav-link {
  border-radius: 0.5rem;
}

.tab-content > .active {
  min-height: 200px;
}

.icon-md {
  font-size: 1.25rem !important;
}

.icon-md {
  font-size: 1.15rem !important;
}

.icon-sm {
  font-size: 1rem !important;
}

.custom-dropdown-icon {
  margin-right: 0.6rem;
  padding-left: 0.3rem;
}



.pagination .first span {
  border-top-left-radius: 0.5rem;
  border-bottom-left-radius: 0.5rem;
}

.pagination .last span,
.pagination .last a {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.pagination li a,
.pagination li span {
  position: relative;
  display: block;
  color: #1F2937;
  background-color: #ffffff;
  border: 0.0625rem solid #9CA3AF;
  padding: 0.375rem 0.75rem;
}

.table td,
.table th {
  white-space: normal;
}

tbody > tr:last-child {
  border-color: #FFF;
}


.select2-container--bootstrap-5 .select2-selection {
  border-radius: 0.42rem;
  padding: 0.4rem 1rem;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  color: #6B7280;
  border-color: #4d6689;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 7%), 0 0 0 0.18rem rgb(31 41 55 / 25%);
}

.select2-container--bootstrap-5 .select2-dropdown {
  /*border-color: #4d6689;*/
  border-color: #ced4da;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search .select2-search__field,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  font-size: 0.875rem;
  line-height: 1.6;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__clear {
  width: 0.65rem;
  height: 0.65rem;

}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__clear {
  width: 0.5rem;
  height: 0.5rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-search {
  display: inline-block;
  width: auto;
  height: 1.5rem;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice {
  font-size: 0.875rem;
  border-radius: 0.42rem;
  background: #f3f6f9;
  border: 0;
}

.select2-container--bootstrap-5 .select2-selection--multiple .select2-selection__rendered .select2-selection__choice .select2-selection__choice__remove {
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.45rem;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option.select2-results__option--selected,
.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected=true]:not(.select2-results__option--highlighted) {
  background: #f3f6f9;
  color: #3f4254;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
  font-size: 0.9rem;
}


.toast {
  top: 4% !important;
  right: 1% !important;
  position: fixed !important;
  z-index: 9999;
}

.toast .toast-body i {
  margin-right: 0.5rem !important;
}

/* Redesigned Top Navbar & Header */
.navbar-dashboard {
  background: #455454 !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23, 26, 28, 0.16);
  padding: 1rem 1.5rem !important;
  transition: all 0.3s ease;
  position: relative;
  z-index: 90;
  margin-top: 16px;
}

.breadcrumb-dark .breadcrumb-item a,
.breadcrumb-dark .breadcrumb-item {
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 500;
}

.breadcrumb-dark .breadcrumb-item.active {
  color: var(--primary-green) !important;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #9ca3af !important;
}

/* Top Navbar Buttons */
.navbar-dashboard .btn-secondary {
  background: #fff !important;
  color: var(--primary-green) !important;
  border: 1px solid rgba(0, 153, 117, 0.2) !important;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  background-clip: border-box;
}

.navbar-dashboard .btn-secondary:hover {
  background: var(--primary-color) !important;
  transform: translateY(-1px);
  color: white !important;
}

.dashboard-export {
  color: #171A1C !important;
  border: 1px solid #171A1C !important;
  background: transparent !important;
  font-weight: 600 !important;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease !important;
}

.dashboard-export:hover,
.dashboard-export:focus {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
  transform: translateY(-1px);
}

.dashboard-export:hover i,
.dashboard-export:focus i {
  color: #fff !important;
}

/* User Profile & Dropdown Modernization */
.navbar-dashboard .avatar {
  border: 2px solid #fff;
  transition: all 0.3s ease;
}

.navbar-dashboard .nav-link:hover .avatar {
  box-shadow: 0 0 0 2px #F1F2F3;
}

.navbar-dashboard .profile-control {
  border-radius: 10px;
  color: #fff !important;
  transition: background-color 0.2s ease;
}

.navbar-dashboard .profile-control:hover,
.navbar-dashboard .profile-control:focus,
.navbar-dashboard .profile-control[aria-expanded="true"] {
  background: #171A1C;
}

.navbar-dashboard .profile-name {
  color: #fff !important;
}

.dashboard-dropdown {
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05) !important;
  padding: 0.75rem !important;
  margin-top: 1rem !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
}

.dashboard-dropdown .dropdown-item {
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.dashboard-dropdown .dropdown-item:hover {
  background-color: rgba(0, 153, 117, 0.05) !important;
  color: var(--primary-green) !important;
}

.dashboard-dropdown .dropdown-icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: all 0.2s ease;
}

.dashboard-dropdown .dropdown-item:hover .dropdown-icon {
  color: var(--primary-green) !important;
  transform: translateX(2px);
}

.accordion-item:first-of-type .accordion-button {
  border-bottom-right-radius: 0.4375rem;
  border-bottom-left-radius: 0.4375rem;
}

.accordion-button:not(.collapsed) {
  color: #1c2532;
  background-color: #ffffff;
  box-shadow: none;
}

/* Shared product palette */
.bg-gray-800,
.bg-theme-primary,
.sidebar {
  background-color: #171A1C !important;
}

.btn-primary,
.btn-theme-actions,
.page-item.active .page-link,
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff !important;
  border-color: #171A1C !important;
  background: #171A1C !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-theme-actions:hover,
.page-item.active .page-link:hover,
.nav-pills .nav-link.active:hover {
  border-color: #455454 !important;
  background: #455454 !important;
}

.btn-outline-primary {
  color: #171A1C !important;
  border-color: #171A1C !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
}

.text-primary {
  color: #171A1C !important;
}

.dropdown-item:hover,
.dropdown-item:focus,
.list-group-item-action:hover,
.list-group-item-action:focus {
  color: #fff !important;
  background-color: #455454 !important;
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #455454 !important;
  box-shadow: 0 0 0 0.18rem rgba(69, 84, 84, 0.2) !important;
}

.form-check-input:checked {
  border-color: #171A1C !important;
  background-color: #171A1C !important;
}

.table-light,
.card-header.bg-light,
.bg-light {
  background-color: #F1F2F3 !important;
}

/* Replace the framework warning/yellow palette with the product hover color. */
:root {
  --bs-secondary: #455454;
  --bs-secondary-rgb: 69, 84, 84;
  --bs-warning: #455454;
  --bs-warning-rgb: 69, 84, 84;
  --bs-yellow: #455454;
  --bs-yellow-100: #455454;
  --bs-yellow-200: #455454;
  --bs-yellow-100-rgb: 69, 84, 84;
  --bs-yellow-200-rgb: 69, 84, 84;
}

.btn-warning,
.btn-yellow-100,
.btn-yellow-200,
.badge-warning,
.bg-warning,
.bg-yellow-100,
.bg-yellow-200,
.icon-shape-warning {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
  background-color: #455454 !important;
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.btn-yellow-100:hover,
.btn-yellow-200:hover {
  color: #fff !important;
  border-color: #171A1C !important;
  background: #171A1C !important;
  background-color: #171A1C !important;
}

.btn-outline-warning,
.btn-outline-yellow-100,
.btn-outline-yellow-200 {
  color: #455454 !important;
  border-color: #455454 !important;
  background: transparent !important;
}

.btn-outline-warning:hover,
.btn-outline-warning:focus,
.btn-outline-warning:active,
.btn-outline-yellow-100:hover,
.btn-outline-yellow-200:hover {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
}

.text-warning,
.text-yellow-100,
.text-yellow-200,
.link-warning,
.svg-icon-warning {
  color: #455454 !important;
}

.border-warning,
.border-yellow-100,
.border-yellow-200 {
  border-color: #455454 !important;
}

.bg-light-warning,
.bg-warning-subtle,
.alert-warning,
.table-warning,
.list-group-item-warning {
  color: #171A1C !important;
  border-color: rgba(69, 84, 84, 0.3) !important;
  background: rgba(69, 84, 84, 0.12) !important;
  background-color: rgba(69, 84, 84, 0.12) !important;
}

.btn-light-warning {
  color: #455454 !important;
  border-color: rgba(69, 84, 84, 0.22) !important;
  background: rgba(69, 84, 84, 0.12) !important;
}

.btn-light-warning:hover,
.btn-light-warning:focus {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
}

.swal2-icon.swal2-warning {
  color: #455454 !important;
  border-color: #455454 !important;
}

.modal-warning .modal-header,
.modal-warning .modal-footer,
.popover-warning,
.popover-warning .popover-header {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
}

/* Override the theme's yellow secondary button palette globally. */
.btn-secondary,
.navbar-dashboard .btn-secondary {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
  background-color: #455454 !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active,
.btn-secondary.active,
.show > .btn-secondary.dropdown-toggle,
.navbar-dashboard .btn-secondary:hover,
.navbar-dashboard .btn-secondary:focus {
  color: #fff !important;
  border-color: #171A1C !important;
  background: #171A1C !important;
  background-color: #171A1C !important;
}

.btn-check:focus + .btn-secondary,
.btn-secondary:focus {
  box-shadow: 0 0 0 0.18rem rgba(69, 84, 84, 0.24) !important;
}

.btn-secondary:disabled,
.btn-secondary.disabled {
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: #455454 !important;
  background: #455454 !important;
  opacity: 0.65;
}

/* Keep top navigation actions visible independently of global button variants. */
.navbar-dashboard .top-navbar-action {
  color: #171A1C !important;
  background: #F1F2F3 !important;
  border: 1px solid rgba(241, 242, 243, 0.82) !important;
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 8px rgba(23, 26, 28, 0.18);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.navbar-dashboard .top-navbar-action:hover,
.navbar-dashboard .top-navbar-action:focus,
.navbar-dashboard .top-navbar-action:active {
  color: #F1F2F3 !important;
  background: #171A1C !important;
  border-color: #171A1C !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(23, 26, 28, 0.28);
}

.navbar-dashboard .top-navbar-action:focus-visible {
  outline: 3px solid rgba(241, 242, 243, 0.45);
  outline-offset: 2px;
}

.btn-outline-secondary {
  color: #455454 !important;
  border-color: #455454 !important;
  background: transparent !important;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active,
.btn-outline-secondary.active {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
}


.template_item_box,
.post_template_item_box,
.template-selection-card {
  height: 100%;
  margin-bottom: 0;
  padding: 12px;
  overflow: hidden;
  border: 2px solid transparent !important;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(23, 26, 28, 0.07);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.template_item_box.active,
.post_template_item_box.active,
.template-selection-card.active {
  border-color: #455454 !important;
  background: rgba(69, 84, 84, 0.08);
  box-shadow: 0 7px 18px rgba(23, 26, 28, 0.12) !important;
}

.template_item_box .template_image,
.template_item_box .template-image,
.post_template_item_box .template_image,
.post_template_item_box .template-image {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 10px;
  background: #F1F2F3;
}

.template_item_box .template_image img,
.template_item_box .template-image img,
.post_template_item_box .template_image img,
.post_template_item_box .template-image img {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 10px;
  object-fit: cover;
}

.template-card-title,
.template_item_box > p,
.post_template_item_box > p {
  min-height: 24px;
  margin: 12px 0 10px;
  color: #171A1C;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.template-card-action {
  margin-top: auto;
}

.template-card-action .btn,
.template_item_box .template_select_btn,
.post_template_item_box .post_template_select_btn {
  width: 100%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.template-selection-card .btn-success,
.template-selection-card .btn-success:disabled {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
  opacity: 1;
}

.product-search-panel {
  padding: 18px;
  border: 1px solid rgba(69, 84, 84, 0.18);
  border-radius: 12px;
  background: #F1F2F3;
}

.product-search-panel .form-control,
.product-search-panel .form-select,
.product-search-panel .input-group-text {
  min-height: 42px;
  border-color: rgba(69, 84, 84, 0.25);
}

.product-search-panel .form-control:focus,
.product-search-panel .form-select:focus {
  border-color: #455454;
  box-shadow: 0 0 0 0.2rem rgba(69, 84, 84, 0.12);
}

.product-search-panel .input-group:focus-within .input-group-text {
  border-color: #455454;
}

@media (max-width: 767.98px) {
  .product-search-panel .btn {
    flex: 1;
  }
}

.product-list-table {
  overflow: hidden;
  border: 1px solid rgba(69, 84, 84, 0.14);
  border-radius: 12px !important;
  border-collapse: separate;
  border-spacing: 0;
}

.product-list-table thead th {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #455454;
  background: #e5e8e8 !important;
  border-bottom: 1px solid rgba(69, 84, 84, 0.2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.product-list-table tbody tr:nth-child(odd) > td {
  background: #fff;
}

.product-list-table tbody tr:nth-child(even) > td {
  background: #F1F2F3;
}

.product-list-table tbody tr > td {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #171A1C;
  border-color: rgba(69, 84, 84, 0.12);
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.product-list-table .holder_row > td:first-child,
.product-list-table .holder_row > td:first-child i {
  color: #455454 !important;
}

.product-list-table tbody tr:hover > td {
  background: #e1e5e5 !important;
  box-shadow: inset 0 1px rgba(69, 84, 84, 0.08), inset 0 -1px rgba(69, 84, 84, 0.08);
}

.product-list-table tbody tr:hover > td,
.product-list-table tbody tr:hover .product-title-link {
  color: #171A1C;
}

.product-list-table tbody tr:hover > td:first-child,
.product-list-table tbody tr:hover > td:first-child:hover {
  color: #455454 !important;
  background: #e1e5e5 !important;
  box-shadow: inset 0 1px rgba(69, 84, 84, 0.08), inset 0 -1px rgba(69, 84, 84, 0.08);
}

.product-list-table tbody tr:hover .product-status.is-active {
  color: #fff;
}

.product-list-table tbody .ui-sortable-helper {
  filter: drop-shadow(0 8px 12px rgba(23, 26, 28, 0.16));
}

.product-list-table tbody .ui-sortable-helper > td {
  display: table-cell;
  height: inherit;
  vertical-align: middle;
  white-space: nowrap;
  background: #fff !important;
  box-shadow: none !important;
}

.product-list-table tbody .ui-sortable-helper .product-row-actions {
  white-space: nowrap;
}

.product-list-table tbody .ui-sortable-placeholder {
  visibility: visible !important;
  background: rgba(69, 84, 84, 0.1) !important;
}

.product-list-table tbody .ui-sortable-placeholder > td {
  background: transparent !important;
  border: 1px dashed rgba(69, 84, 84, 0.35);
}

.product-title-link {
  color: #171A1C;
  font-weight: 650;
  text-decoration: none;
  transition: color 0.18s ease;
}

.product-title-link:hover {
  color: #455454;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.product-status.is-active {
  color: #fff;
  background: #455454;
}

.product-status.is-inactive {
  color: #455454;
  background: #d9dddd;
}

.product-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.product-status.is-active .product-status-dot {
  background: #fff;
}

.product-row-actions .product-action-btn {
  width: 34px;
  height: 34px;
  margin-right: 3px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #455454 !important;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-list-table tbody tr:hover .product-row-actions .product-action-btn {
  border-color: rgba(69, 84, 84, 0.18) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.product-row-actions .product-action-btn:hover,
.product-row-actions .product-action-btn:focus-visible {
  color: #fff !important;
  border-color: #455454 !important;
  background: #455454 !important;
  box-shadow: 0 5px 12px rgba(23, 26, 28, 0.22) !important;
  transform: translateY(-2px) scale(1.04);
  outline: none;
}

.product-row-actions .product-action-btn:active {
  color: #fff !important;
  background: #171A1C !important;
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 5px rgba(23, 26, 28, 0.2) !important;
}

.media-file-action-btn {
  width: 150px;
  min-height: 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
