/* ADMIN LAYOUT */
html,
body {
  height: 100%;
}

#layoutSidenav {
  display: flex;
}

#layoutSidenav #layoutSidenav_nav {
  flex-basis: 235px;
  flex-shrink: 0;
  transition: transform 0.15s ease-in-out;
  z-index: 1038;
  transform: translateX(-235px);
}

#layoutSidenav #layoutSidenav_content {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  flex-grow: 1;
  min-height: calc(100vh - 56px);
  margin-left: -235px;
}

.sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
  transform: translateX(0);
}
.sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1037;
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

@media (min-width: 992px) {
  #layoutSidenav #layoutSidenav_nav {
    transform: translateX(0);
  }
  #layoutSidenav #layoutSidenav_content {
    margin-left: 0;
    transition: margin 0.15s ease-in-out;
  }

  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_nav {
    transform: translateX(-235px);
  }
  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content {
    margin-left: -235px;
  }
  .sb-sidenav-toggled #layoutSidenav #layoutSidenav_content:before {
    display: none;
  }
}
.sb-nav-fixed .sb-topnav {
  z-index: 1039;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
  width: 235px;
  height: 100vh;
  z-index: 1038;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav {
  padding-top: 56px;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav .sb-sidenav-menu {
  overflow-y: auto;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
  padding-left: 235px;
  top: 56px;
}

#layoutError {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#layoutError #layoutError_content {
  min-width: 0;
  flex-grow: 1;
}
#layoutError #layoutError_footer {
  min-width: 0;
}

.img-error {
  max-width: 20rem;
}

.nav .nav-link .sb-nav-link-icon,
.sb-sidenav-menu .nav-link .sb-nav-link-icon {
  margin-right: 0.5rem;
}

.sb-topnav {
  padding-left: 0;
  height: 56px;
  z-index: 1039;
}
.sb-topnav .navbar-brand {
  width: 235px;
  margin: 0;
}
.sb-topnav.navbar-dark #sidebarToggle {
  color: rgba(255, 255, 255, 0.5);
}
.sb-topnav.navbar-light #sidebarToggle {
  color: #212529;
}

.sb-sidenav {
  display: flex;
  flex-direction: column;
  height: 100%;
  flex-wrap: nowrap;
}
.sb-sidenav .sb-sidenav-menu {
  flex-grow: 1;
}
.sb-sidenav .sb-sidenav-menu .nav {
  flex-direction: column;
  flex-wrap: nowrap;
}
.sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-heading {
  padding: 1.75rem 1rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
}
.sb-sidenav .sb-sidenav-menu .nav .nav-link {
  display: flex;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  position: relative;
}
.sb-sidenav .sb-sidenav-menu .nav .nav-link .sb-nav-link-icon {
  font-size: 0.9rem;
}
.sb-sidenav .sb-sidenav-menu .nav .nav-link .sb-sidenav-collapse-arrow {
  display: inline-block;
  margin-left: auto;
  transition: transform 0.15s ease;
}
.sb-sidenav .sb-sidenav-menu .nav .nav-link.collapsed .sb-sidenav-collapse-arrow {
  transform: rotate(-90deg);
}
.sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-nested {
  margin-left: 1.5rem;
  flex-direction: column;
}
.sb-sidenav .sb-sidenav-footer {
  padding: 0.75rem;
  flex-shrink: 0;
}

.sb-sidenav-dark {
  background-color: #212529;
  color: rgba(255, 255, 255, 0.5);
}
.sb-sidenav-dark .sb-sidenav-menu .sb-sidenav-menu-heading {
  color: rgba(255, 255, 255, 0.25);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link {
  color: rgba(255, 255, 255, 0.5);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-nav-link-icon {
  color: rgba(255, 255, 255, 0.25);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link .sb-sidenav-collapse-arrow {
  color: rgba(255, 255, 255, 0.25);
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link:hover {
  color: #fff;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link.active {
  color: #fff;
}
.sb-sidenav-dark .sb-sidenav-menu .nav-link.active .sb-nav-link-icon {
  color: #fff;
}
.sb-sidenav-dark .sb-sidenav-footer {
  background-color: #343a40;
}


.fixed-top, .sb-nav-fixed #layoutSidenav #layoutSidenav_nav, .sb-nav-fixed .sb-topnav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
}

.sb-nav-fixed .sb-topnav {
  z-index: 1039;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav {
  width: 235px;
  height: 100vh;
  z-index: 1038;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav {
  padding-top: 56px;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_nav .sb-sidenav .sb-sidenav-menu {
  overflow-y: auto;
}
.sb-nav-fixed #layoutSidenav #layoutSidenav_content {
  padding-left: 235px;
  top: 56px;
}

/* DATATABLES INCLUDED STYLES */

.dataTable-wrapper .dataTable-container {
  font-size: 0.875rem;
}

.dataTable-wrapper.no-header .dataTable-container {
  border-top: none;
}

.dataTable-wrapper.no-footer .dataTable-container {
  border-bottom: none;
}

.dataTable-top {
  padding: 0 0 1rem;
}

.dataTable-bottom {
  padding: 0;
}

.dataTable-top > nav:first-child,
.dataTable-top > div:first-child,
.dataTable-bottom > nav:first-child,
.dataTable-bottom > div:first-child {
  float: left;
}

.dataTable-top > nav:last-child,
.dataTable-top > div:last-child,
.dataTable-bottom > nav:last-child,
.dataTable-bottom > div:last-child {
  float: right;
}

.dataTable-selector {
  width: auto;
  display: inline-block;
  padding-left: 1.125rem;
  padding-right: 2.125rem;
  margin-right: 0.25rem;
}

.dataTable-info {
  margin: 7px 0;
}

/* PAGER */
.dataTable-pagination a:hover {
  background-color: #e9ecef;
}

.dataTable-pagination .active a,
.dataTable-pagination .active a:focus,
.dataTable-pagination .active a:hover {
  background-color: #0d6efd;
}

.dataTable-pagination .ellipsis a,
.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
  cursor: not-allowed;
}

.dataTable-pagination .disabled a,
.dataTable-pagination .disabled a:focus,
.dataTable-pagination .disabled a:hover {
  cursor: not-allowed;
  opacity: 0.4;
}

.dataTable-pagination .pager a {
  font-weight: bold;
}

/* TABLE */
.dataTable-table {
  border-collapse: collapse;
}

.dataTable-table > tbody > tr > td,
.dataTable-table > tbody > tr > th,
.dataTable-table > tfoot > tr > td,
.dataTable-table > tfoot > tr > th,
.dataTable-table > thead > tr > td,
.dataTable-table > thead > tr > th {
  vertical-align: top;
  padding: 0.5rem 0.5rem;
}

.dataTable-table > thead > tr > th {
  vertical-align: bottom;
  text-align: left;
  border-bottom: none;
}

.dataTable-table > tfoot > tr > th {
  vertical-align: bottom;
  text-align: left;
}

.dataTable-table th {
  vertical-align: bottom;
  text-align: left;
}

.dataTable-table th a {
  text-decoration: none;
  color: inherit;
}

.dataTable-sorter {
  display: inline-block;
  height: 100%;
  position: relative;
  width: 100%;
  padding-right: 1rem;
}

.dataTable-sorter::before,
.dataTable-sorter::after {
  content: "";
  height: 0;
  width: 0;
  position: absolute;
  right: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  opacity: 0.2;
}

.dataTable-sorter::before {
  bottom: 4px;
}

.dataTable-sorter::after {
  top: 0px;
}

.asc .dataTable-sorter::after,
.desc .dataTable-sorter::before {
  opacity: 0.6;
}

.dataTables-empty {
  text-align: center;
}

.dataTable-top::after,
.dataTable-bottom::after {
  clear: both;
  content: " ";
  display: table;
}

.btn-datatable {
  height: 20px !important;
  width: 20px !important;
  font-size: 0.75rem;
  border-radius: 0.25rem !important;
}



/* CUSTOM STYLING */

/* General styling */
html,
body {
  font-size: 15px;
}

.badge {
  font-weight: 500;
  white-space: normal;
  vertical-align: unset;
}

.page-header {
  padding-bottom: 0.6rem;
  margin: 0.5rem 0 1.25rem;
  border-bottom: 1px solid #eee;
}

.card > .card-body + .table, .card > .card-body + .table-responsive, .card > .table + .card-body, .card > .table-responsive + .card-body {
  border-top: 1px solid #ddd;
}

.kpi {
  text-decoration: none;
}

.kpi .card-footer {
  text-decoration: underline;
}

.kpi .kpi__icon {
  font-size: 4rem;
  line-height: 1;
}

.kpi .kpi__content {
  text-align: right;
  text-decoration: none;
}

.kpi .kpi__content .huge {
  font-size: 2.5rem;
  line-height: 1;
}

/* Menu */
#layoutSidenav_content > main {
  padding: 1rem;
}

.sb-sidenav .sb-sidenav-menu .nav .sb-sidenav-menu-heading {
  padding: .75rem 1rem 0.75rem;
  border-top: 1px solid white;
  color: white;
  margin-top: 0.5rem;
}

.sb-sidenav .sb-sidenav-menu .nav .nav-link {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.9rem;
}

.sidebar-toggle i {
    font-size: 1.6rem;
}

.sb-sidenav-menu > .nav {
  padding-bottom: 6rem;
}

@media screen and (max-width: 600px) {
  .sb-topnav .navbar-nav .dropdown-toggle::after {
    display: none;
  }
}

.nav-link.active {
  background: #000;
}


/* Panel retro styling - remove when all panels removed */
.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.panel-default {
  border-color: #ddd;
}

.panel-primary {
  border-color: #337ab7;
}

.panel-primary > .panel-heading {
  color: #fff;
  background-color: #337ab7;
  border-color: #337ab7;
}

.panel-group .panel {
  margin-bottom: 0;
  border-radius: 4px;
}

.panel-group .panel-heading {
  border-bottom: 0;
}

.panel-heading {
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.panel-default > .panel-heading {
  color: #333;
  background-color: #f5f5f5;
  border-color: #ddd;
}

.panel-body {
  padding: 15px;
}

.panel > .panel-body + .table, .panel > .panel-body + .table-responsive, .panel > .table + .panel-body, .panel > .table-responsive + .panel-body {
  border-top: 1px solid #ddd;
}


/* Cards */
.card-collapsible .card-header {
  cursor: pointer;
}

.card-danger {
  border: 1px solid #ab0011;
}

.card-danger .card-header {
  background-color: #d53343;
  border-bottom: 1px solid rgba(0,0,0,.125);
  color: white;
}

.card-success {
  border: 1px solid #003c20;
}

.card-success .card-header {
  background-color: #188351;
  border-bottom: 1px solid rgba(0,0,0,.125);
  color: white;
}


/* TopTrans packing */
.tt-packages {
  max-width: 600px;
}

.tt-package {
	display: flex;
	margin-bottom: 4px;
	flex-wrap: nowrap;
	flex-direction: row;
}

.tt-package-type {
    margin-right: 4px;
}

.tt-package-content {
    margin-right: 4px;
}

.tt-package-counter {
	font-size: 16px;
	display: flex;
	align-items: center;
	margin-right: 4px;
	margin-top: 1px;
	margin-bottom: 1px;
	padding: 3px 7px;
	font-weight: bold;
	line-height: 1;
	color: #fff;
	text-align: center;
	white-space: nowrap;
	background-color: #777;
	border-radius: 4px;
}


/* Tables */
.table>:not(:first-child) {
  border-top: 2px solid #dfdfdf;
}

.table thead td,
.table thead th {
  font-weight: bold;
}

.table>:not(caption)>*>* {
  padding: 0.4rem;
}

/* Remove last border of tables with tfoot */
.table-nobottomborder:has(tfoot) tfoot tr:last-child td,
.table-nobottomborder:has(tfoot) tfoot tr:last-child th {
  border: none;
}

/* Remove last border of tables without tfoot */
.table-nobottomborder:not(:has(tfoot)) tbody tr:last-child td,
.table-nobottomborder:not(:has(tfoot)) tbody tr:last-child th {
  border: none;
}


/* Mobile tables */
/* Mobile tables */
/* Mobile tables */
@media screen and (max-width: 1200px) {

  /* Block display */
  .table-mobile tr {
    display: block;
  }

  /* Flex display on cells */
  .table-mobile td, 
  .table-mobile th {
    /*display: flex;*/
    display: block;
  }

  /* Reset borders */
  .table-mobile td, 
  .table-mobile th,
  .table-mobile tbody,
  .table-mobile thead,
  .table-mobile tr {
    border: none;
    box-shadow: none;
  }
  .table.table-mobile>:not(:first-child) {
    border-top: 0;
  }
  .table.table-mobile>:not(:last-child)>:last-child>* {
    border-bottom-color: white;
  }

  /* Reset max-widths */
  .table-mobile td, 
  .table-mobile th {
    max-width: unset !important;
    width: unset !important;
  }

  /* Hide empty cells */
  .table-mobile td:empty, 
  .table-mobile th:empty {
    display: none;
  }

  /* Style row */
  .table-mobile tr {
    background: #dee2e6;
    margin-bottom: 1rem;
  }

  /* Round it, but not if in card */
  .table-mobile tbody tr:last-child {
    margin-bottom: 0;
  }
  :not(.card):not(.card-body) > .table-mobile tr {
    border-radius: 8px;
  }

  /* Set new borders */
  .table-mobile td, 
  .table-mobile th {
    border-bottom: 1px solid white;
  }
  .table-mobile td:last-child, 
  .table-mobile th:last-child {
    border-bottom: none;
  }

  /* Set label styling */
  .table-mobile tbody tr th:before,
  .table-mobile tbody tr td:before {
    opacity: 0.8;
    font-style: italic;
    padding-right: 0.5rem;
    /*margin-right: auto;*/
  }

}

/* Additional mobile table styling for tablet devices */
@media screen and (min-width: 750px) and (max-width: 1200px) {
  .table-mobile tbody {
    display: flex;
    flex-wrap: wrap;
    gap: 2%;
  }

  .table-mobile tbody tr {
    flex-basis: 49%;
    max-width: 49%;
  }
}
/* Mobile tables */
/* Mobile tables */
/* Mobile tables */



@media screen and (max-width: 1200px) {
  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter {
    margin-bottom: 0.6rem;
  }
}

@media screen and (max-width: 767px) {

  div.dataTables_wrapper div.dataTables_length,
  div.dataTables_wrapper div.dataTables_filter {
    text-align: left !important;
  }

  div.dataTables_wrapper div.dataTables_info {
    margin-bottom: 1rem;
  }

}

div.dataTables_wrapper div.dataTables_paginate ul.pagination {
  flex-wrap: wrap;
}
