/* Categories page and predefined category library. */
body.modern-categories-page {
  background: #eef2f6;
  color: #17233b;
}

body.modern-categories-page .categories-page-wrapper {
  min-height: calc(100vh - 50px) !important;
  background: #eef2f6;
}

body.modern-categories-page .categories-page-wrapper > .content-header {
  padding: 20px 17px 8px;
}

body.modern-categories-page .categories-page-wrapper > .content-header h1 {
  color: #1b2535;
  font-size: 26px;
  font-weight: 400;
}

body.modern-categories-page .categories-page-content {
  padding: 10px 17px 24px;
}

body.modern-categories-page .categories-page-panel {
  margin: 0;
  border: 1px solid #dce3eb;
  border-top: 3px solid #d3dae3;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(19, 38, 63, .04);
}

body.modern-categories-page .categories-toolbar {
  display: flex;
  align-items: center;
  min-height: 68px;
  gap: 12px;
  padding: 13px 14px;
  background: #fff;
}

body.modern-categories-page .categories-toolbar .btn {
  height: 38px;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}

body.modern-categories-page .categories-toolbar .btn i {
  margin-right: 7px;
}

body.modern-categories-page .categories-primary-action {
  border-color: #1680bb;
  background: #168ac7;
}

body.modern-categories-page .categories-import-action {
  border-color: #bfcbd8;
  background: #fff;
  color: #0871bb;
}

body.modern-categories-page .categories-import-action:hover {
  border-color: #7aaed4;
  background: #f7fbff;
}

body.modern-categories-page .categories-table-body {
  padding: 10px 14px 14px;
}

body.modern-categories-page .categories-table {
  margin-top: 8px !important;
  border-color: #e3e8ee;
}

body.modern-categories-page .categories-table th {
  height: 47px;
  padding: 12px 10px !important;
  border-color: #e2e7ed !important;
  background: #fafbfc;
  color: #1d293b;
  font-size: 15px;
  vertical-align: middle !important;
}

body.modern-categories-page .categories-table td {
  height: 47px;
  padding: 9px 10px !important;
  border-color: #e4e9ef !important;
  color: #26344b;
  font-size: 14px;
  vertical-align: middle !important;
}

body.modern-categories-page .categories-table td:last-child,
body.modern-categories-page .categories-table th:last-child {
  width: 180px;
}

body.modern-categories-page .categories-table .btn {
  width: 39px;
  height: 34px;
  padding: 6px 10px;
}

body.modern-categories-page .dataTables_length,
body.modern-categories-page .dataTables_filter,
body.modern-categories-page .dataTables_info,
body.modern-categories-page .dataTables_paginate {
  color: #344158;
  font-size: 13px;
}

body.modern-categories-page .dataTables_length select,
body.modern-categories-page .dataTables_filter input {
  height: 34px;
  border: 1px solid #ccd5df;
  border-radius: 3px;
  font-size: 13px;
}

body.modern-categories-page .pagination > li > a,
body.modern-categories-page .pagination > li > span {
  min-width: 34px;
  height: 34px;
  padding: 7px 10px;
  color: #4c5b70;
  text-align: center;
}

body.modern-categories-page .pagination > .active > a,
body.modern-categories-page .pagination > .active > span {
  border-color: #147eb9;
  background: #147eb9;
  color: #fff;
}

body.modern-categories-page .main-sidebar .sidebar-menu > li.active > a {
  border-left-color: #168ac7;
  background: rgba(60, 141, 188, .2);
}

.predefined-categories-dialog {
  width: 720px;
  max-width: calc(100% - 30px);
  margin-top: 70px;
}

.predefined-categories-dialog .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  box-shadow: 0 12px 36px rgba(10, 28, 49, .28);
}

.predefined-categories-header {
  min-height: 50px;
  padding: 14px 20px;
  border: 0;
  background: linear-gradient(90deg, #2a91c8, #2684bd);
  color: #fff;
}

.predefined-categories-header .modal-title {
  font-size: 18px;
  font-weight: 600;
}

.predefined-categories-header .close {
  margin-top: -2px;
  color: #fff;
  font-size: 24px;
  opacity: .95;
  text-shadow: none;
}

.predefined-categories-body {
  padding: 20px 24px 18px;
  background: #fff;
}

.predefined-categories-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 55px;
  margin-bottom: 24px;
}

.predefined-category-search {
  position: relative;
}

.predefined-category-search i {
  position: absolute;
  top: 13px;
  left: 13px;
  color: #a4afbd;
  font-size: 15px;
}

.predefined-category-search input {
  width: 100%;
  height: 44px;
  padding: 0 13px 0 40px;
  border: 1px solid #cbd4df;
  border-radius: 3px;
  outline: 0;
  color: #26344b;
  font-size: 13px;
}

.predefined-category-search input:focus {
  border-color: #6daed8;
  box-shadow: 0 0 0 2px rgba(38, 132, 189, .09);
}

.predefined-category-hint {
  display: flex;
  align-items: flex-start;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cce5f8;
  border-radius: 3px;
  background: #eaf6ff;
  color: #2d78ae;
  font-size: 12px;
  line-height: 18px;
}

.predefined-category-hint i {
  margin: 2px 9px 0 0;
  font-size: 15px;
}

.predefined-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.predefined-category-option {
  display: grid;
  grid-template-columns: 20px 20px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 6px 12px 6px 9px;
  border: 1px solid #e0e5ea;
  border-bottom: 0;
  background: #fff;
  color: #293548;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
}

.predefined-category-option:first-child {
  border-radius: 3px 3px 0 0;
}

.predefined-category-option:last-child {
  border-bottom: 1px solid #e0e5ea;
  border-radius: 0 0 3px 3px;
}

.predefined-category-option:hover {
  background: #f8fbfe;
}

.predefined-category-option.is-hidden {
  display: none;
}

.predefined-category-option.category-already-exists {
  background: #f8f9fa;
  color: #8a95a5;
  cursor: default;
}

.predefined-category-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.predefined-checkbox-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: 1px solid #b7c0cb;
  border-radius: 3px;
  background: #fff;
  color: transparent;
  font-size: 10px;
}

.predefined-category-option > input:checked + .predefined-checkbox-visual {
  border-color: #0875c4;
  background: #0875c4;
  color: #fff;
}

.predefined-category-option > input:disabled + .predefined-checkbox-visual {
  border-color: #d4d9df;
  background: #eceff2;
}

.predefined-category-icon {
  width: 20px;
  color: #456a87;
  text-align: center;
}

.predefined-category-option strong {
  overflow: hidden;
  padding-right: 8px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.predefined-category-count {
  min-width: 29px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e7e9ec;
  color: #555f6d;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.category-already-exists .predefined-category-count {
  min-width: 45px;
  background: #e2f2e9;
  color: #288455;
}

.predefined-category-empty {
  display: none;
  padding: 32px 12px;
  color: #7a8798;
  font-size: 13px;
  text-align: center;
}

.predefined-category-empty.is-visible {
  display: block;
}

.predefined-categories-footer {
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 12px;
  padding: 14px 24px;
  border-top: 1px solid #e1e6ec;
  background: #fafbfc;
}

.predefined-categories-footer .btn {
  height: 38px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.predefined-categories-footer .btn-primary {
  margin-left: auto;
  padding: 8px 15px;
  border-color: #0875c4;
  background: #0875c4;
}

.predefined-categories-footer .btn i {
  margin-right: 6px;
}

.predefined-selection-summary {
  color: #66768c;
  font-size: 12px;
}

.predefined-selection-summary strong {
  color: #0875c4;
}

@media (max-width: 767px) {
  .predefined-categories-dialog {
    width: auto;
    margin: 15px;
  }
  .predefined-categories-intro,
  .predefined-category-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .predefined-categories-body {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
  }
  .predefined-categories-footer {
    flex-wrap: wrap;
  }
  .predefined-selection-summary {
    order: 3;
    width: 100%;
  }
  .predefined-categories-footer .btn-primary {
    margin-left: auto;
  }
}

/* Refreshed category catalogue */
body.modern-categories-page {
  background: #f4f7fb;
  color: #15243a;
}

body.modern-categories-page .main-footer {
  display: none;
}

body.modern-categories-page .categories-page-wrapper {
  min-height: calc(100vh - 50px) !important;
  padding-bottom: 28px;
  background:
    radial-gradient(circle at 92% 0, rgba(32, 137, 210, .08), transparent 28%),
    #f4f7fb;
}

body.modern-categories-page .categories-page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 14px;
}

body.modern-categories-page .categories-page-heading h1 {
  margin: 0;
  color: #10213a;
  font-size: 25px;
  font-weight: 700;
}

.categories-page-heading p {
  margin: 5px 0 0;
  color: #7a879a;
  font-size: 13px;
}

.categories-page-heading .breadcrumb {
  position: static;
  margin: 5px 0 0;
  padding: 0;
  background: transparent;
  font-size: 12px;
}

body.modern-categories-page .categories-page-content {
  padding: 0 24px;
}

.categories-page-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 14px;
}

.categories-page-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 39px;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

body.modern-categories-page .categories-primary-action {
  border: 1px solid #1189d0;
  background: #1189d0;
  color: #fff;
  box-shadow: 0 5px 12px rgba(17, 137, 208, .18);
}

body.modern-categories-page .categories-primary-action:hover,
body.modern-categories-page .categories-primary-action:focus {
  border-color: #0877b8;
  background: #0877b8;
  color: #fff;
}

body.modern-categories-page .categories-import-action {
  border: 1px solid #d5dee9;
  background: #fff;
  color: #42516a;
}

body.modern-categories-page .categories-import-action:hover,
body.modern-categories-page .categories-import-action:focus {
  border-color: #9ecceb;
  background: #f8fbfe;
  color: #1189d0;
}

.categories-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #e7ecf2;
  border-radius: 10px;
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 2px 8px rgba(25, 47, 76, .04);
}

.category-summary-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 92px;
  padding: 15px 17px;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  outline: 0;
  background: #fff;
  color: #15243a;
  font: inherit;
  text-align: left;
  box-shadow: 0 2px 7px rgba(25, 47, 76, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

button.category-summary-card:hover,
button.category-summary-card:focus,
.category-summary-card.active {
  border-color: #c9d9e8;
  box-shadow: 0 7px 18px rgba(25, 47, 76, .09);
  transform: translateY(-1px);
}

.category-summary-card.active {
  box-shadow: 0 0 0 2px rgba(18, 137, 208, .1), 0 7px 18px rgba(25, 47, 76, .08);
}

.category-summary-icon {
  display: inline-flex;
  flex: 0 0 56px;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-right: 15px;
  border-radius: 50%;
  font-size: 21px;
}

.category-summary-card.is-total .category-summary-icon {
  background: linear-gradient(135deg, #168dce, #0878bf);
  color: #fff;
  box-shadow: 0 7px 16px rgba(17, 137, 208, .22);
}

.category-summary-card.is-used .category-summary-icon {
  background: #dff7e9;
  color: #11a05b;
}

.category-summary-card.is-products .category-summary-icon {
  background: #eee9ff;
  color: #6c59d9;
}

.category-summary-card.is-empty .category-summary-icon {
  background: #fff0d9;
  color: #dc8500;
}

.category-summary-copy {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
}

.category-summary-copy small {
  overflow: hidden;
  color: #6f7d91;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25px;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-summary-copy strong {
  margin-top: 4px;
  color: #18283f;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.15;
}

.category-summary-copy em {
  overflow: hidden;
  margin-top: 4px;
  color: #94a0b0;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.modern-categories-page .categories-page-panel {
  overflow: hidden;
  margin: 0;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(21, 43, 70, .055);
}

.categories-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid #e9edf2 !important;
  background: linear-gradient(90deg, #fff 0%, #fbfdff 100%);
}

.categories-catalog-header:before,
.categories-catalog-header:after {
  display: none !important;
  content: none !important;
}

.categories-catalog-title {
  display: flex;
  align-items: center;
  min-width: 0;
}

.categories-catalog-icon {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 13px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e2f3fd, #eef8fe);
  color: #1685c7;
  font-size: 17px;
}

.categories-catalog-title h2 {
  margin: 0;
  color: #172840;
  font-size: 17px;
  font-weight: 700;
}

.categories-catalog-title p {
  margin: 5px 0 0;
  color: #8591a3;
  font-size: 12px;
}

.categories-products-total {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  min-width: 170px;
  min-height: 50px;
  padding: 8px 13px 8px 10px;
  border: 1px solid #dce7f0;
  border-radius: 8px;
  background: #f5faff;
}

.categories-products-icon {
  display: inline-flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  border-radius: 8px;
  background: #dff2fc;
  color: #1285c8;
}

.categories-products-total > span:last-child {
  display: flex;
  flex-direction: column;
}

.categories-products-total small {
  color: #77869a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .35px;
  text-transform: uppercase;
}

.categories-products-total strong {
  margin-top: 2px;
  color: #1183c8;
  font-size: 15px;
}

body.modern-categories-page .categories-table-body {
  padding: 14px 16px 16px;
}

.categories-table-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 13px;
}

.category-table-filter {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #dce4ed;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: #536177;
  font-size: 12px;
  font-weight: 600;
  transition: .17s ease;
}

.category-table-filter:hover,
.category-table-filter:focus {
  border-color: #9ecceb;
  color: #1189d0;
}

.category-table-filter.active {
  border-color: #168dce;
  background: #168dce;
  color: #fff;
  box-shadow: 0 3px 9px rgba(22, 141, 206, .18);
}

body.modern-categories-page .dataTables_wrapper > .row:first-child {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

body.modern-categories-page .dataTables_length,
body.modern-categories-page .dataTables_filter,
body.modern-categories-page .dataTables_info,
body.modern-categories-page .dataTables_paginate {
  color: #65738a;
  font-size: 12px;
}

body.modern-categories-page .dataTables_length label,
body.modern-categories-page .dataTables_filter label {
  margin: 0;
  color: #65738a;
  font-weight: 600;
}

body.modern-categories-page .dataTables_filter {
  text-align: right;
}

body.modern-categories-page .dataTables_length select,
body.modern-categories-page .dataTables_filter input {
  height: 36px;
  border: 1px solid #ccd7e4;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: #263750;
  font-size: 12px;
  box-shadow: none;
}

body.modern-categories-page .dataTables_filter input {
  width: 235px;
  margin-left: 8px;
  padding: 7px 11px;
}

body.modern-categories-page .categories-table {
  width: 100% !important;
  margin: 0 0 11px !important;
  border-color: #e4e9ef;
  background: #fff;
}

body.modern-categories-page .categories-table > thead > tr > th {
  height: 47px;
  padding: 10px 11px !important;
  border-color: #e1e7ee !important;
  border-bottom-width: 1px !important;
  background: #f7f9fc;
  color: #526076;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  text-transform: uppercase;
  vertical-align: middle !important;
}

body.modern-categories-page .categories-table > tbody > tr > td {
  height: 60px;
  padding: 8px 11px !important;
  border-color: #e8edf2 !important;
  color: #263750;
  font-size: 13px;
  vertical-align: middle !important;
}

body.modern-categories-page .categories-table.table-striped > tbody > tr:nth-of-type(odd) {
  background: #fbfcfe;
}

body.modern-categories-page .categories-table > tbody > tr:hover {
  background: #f4f9fd !important;
}

.categories-table th:first-child,
.categories-table td:first-child {
  width: 52px !important;
  color: #8a96a7;
  text-align: center;
}

.categories-table th:nth-child(3),
.categories-table td:nth-child(3) {
  width: 150px !important;
}

body.modern-categories-page .categories-table th:last-child,
body.modern-categories-page .categories-table td:last-child {
  width: 115px !important;
  text-align: center;
}

.category-name-cell {
  display: inline-flex;
  align-items: center;
}

.category-name-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-right: 11px;
  border-radius: 8px;
  background: #eaf6fd;
  color: #1684c2;
  font-size: 13px;
}

.category-name-cell strong {
  color: #263750;
  font-weight: 600;
}

.category-product-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
}

.category-product-count.is-used {
  background: #ddf6e8;
  color: #128a51;
}

.category-product-count.is-empty {
  background: #f0f2f5;
  color: #7b8798;
}

.category-row-actions {
  display: inline-flex;
  gap: 5px;
}

body.modern-categories-page .categories-table .category-row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 5px !important;
  font-size: 12px;
}

.category-row-action.is-edit {
  border-color: #f1d6a4;
  background: #fff6e6;
  color: #c57b00;
}

.category-row-action.is-delete {
  border-color: #f1c6c9;
  background: #fff0f1;
  color: #d3454c;
}

/* Add and edit category dialogs */
#addCategories .modal-dialog,
#editCategories .modal-dialog {
  width: 520px;
  max-width: calc(100% - 30px);
  margin: 70px auto;
}

#addCategories .modal-content,
#editCategories .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 18px 55px rgba(15, 31, 54, .24);
}

#addCategories .modal-header,
#editCategories .modal-header {
  min-height: 58px;
  padding: 17px 20px !important;
  border: 0;
  background: linear-gradient(90deg, #168ac7, #147eb9) !important;
  color: #fff;
}

#addCategories .modal-title,
#editCategories .modal-title {
  font-size: 18px;
  font-weight: 700;
}

#addCategories .modal-header .close,
#editCategories .modal-header .close {
  color: #fff;
  font-size: 25px;
  opacity: .9;
  text-shadow: none;
}

#addCategories .modal-body,
#editCategories .modal-body {
  padding: 24px;
  background: #f7f9fc;
}

#addCategories .box-body,
#editCategories .box-body {
  padding: 0;
}

#addCategories .form-control,
#addCategories .input-group-addon,
#editCategories .form-control,
#editCategories .input-group-addon {
  min-height: 44px;
  border-color: #ccd6e3;
  border-radius: 5px;
  box-shadow: none;
  font-size: 14px;
}

#addCategories .input-group-addon,
#editCategories .input-group-addon {
  min-width: 48px;
  background: #fff;
  color: #315479;
}

#addCategories .modal-footer,
#editCategories .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  min-height: 67px;
  padding: 14px 20px;
  border-top: 1px solid #e1e7ef;
  background: #fff;
}

#addCategories .modal-footer .btn,
#editCategories .modal-footer .btn {
  float: none !important;
  min-width: 112px;
  height: 39px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 700;
}

.predefined-categories-dialog .modal-content {
  border-radius: 9px;
  box-shadow: 0 18px 55px rgba(15, 31, 54, .24);
}

.predefined-categories-header {
  min-height: 58px;
  padding: 17px 20px;
  background: linear-gradient(90deg, #168ac7, #147eb9);
}

body.dashboard-dark.modern-categories-page .categories-page-wrapper {
  background: #111b2b;
}

body.dashboard-dark.modern-categories-page .categories-page-heading h1,
body.dashboard-dark.modern-categories-page .categories-catalog-title h2,
body.dashboard-dark.modern-categories-page .category-summary-copy strong,
body.dashboard-dark.modern-categories-page .category-name-cell strong {
  color: #edf3fb;
}

body.dashboard-dark.modern-categories-page .categories-summary-grid,
body.dashboard-dark.modern-categories-page .category-summary-card,
body.dashboard-dark.modern-categories-page .categories-page-panel,
body.dashboard-dark.modern-categories-page .categories-catalog-header,
body.dashboard-dark.modern-categories-page .categories-products-total,
body.dashboard-dark.modern-categories-page .category-table-filter,
body.dashboard-dark.modern-categories-page .categories-table,
body.dashboard-dark.modern-categories-page .categories-table > tbody > tr > td {
  border-color: #2b3c52;
  background: #172438;
  color: #dce6f2;
}

body.dashboard-dark.modern-categories-page .categories-table > thead > tr > th,
body.dashboard-dark.modern-categories-page .categories-table.table-striped > tbody > tr:nth-of-type(odd) {
  border-color: #2b3c52 !important;
  background: #132034;
  color: #bac7d7;
}

@media (max-width: 1199px) {
  .categories-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  body.modern-categories-page .categories-page-heading {
    display: block;
    padding: 18px 12px 12px;
  }

  .categories-page-heading .breadcrumb {
    margin-top: 10px;
  }

  body.modern-categories-page .categories-page-content {
    padding: 0 10px;
  }

  .categories-page-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .categories-page-actions .btn {
    width: 100%;
  }

  .categories-summary-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .categories-catalog-header {
    align-items: stretch;
    flex-direction: column;
  }

  .categories-products-total {
    width: 100%;
  }

  .categories-table-filters {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-table-filter {
    flex: 0 0 auto;
  }

  body.modern-categories-page .dataTables_wrapper > .row:first-child {
    display: block;
  }

  body.modern-categories-page .dataTables_filter,
  body.modern-categories-page .dataTables_length {
    margin-bottom: 8px;
    text-align: left;
  }

  body.modern-categories-page .dataTables_filter input {
    width: calc(100% - 65px);
  }

  #addCategories .modal-dialog,
  #editCategories .modal-dialog {
    width: auto;
    margin: 12px;
  }
}
