body.pad-bottom {
  padding-bottom: 300px;
}

.embed-wrapper iframe {
  max-width: 100%;
}

.form-headline {
  background-color: #666;
  color: #fff;
  padding: 5px 15px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.card {
  margin-bottom: 15px;
}
.card.detail-card {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card.detail-card .card-header {
  background-color: transparent;
  border-radius: 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5px;
  margin-bottom: 5px;
  border: none;
}
.card.detail-card .card-header .card-title {
  font-weight: 600;
  font-size: 16px;
  color: #333;
  margin: 0;
}
.card.detail-card .card-body {
  position: relative;
}
.card.detail-card .card-body.no-icon {
  padding-left: 0;
  padding-right: 0;
}
.card.detail-card .card-body.no-icon .card-content {
  padding-left: 0;
}
.card.detail-card .card-body .card-loader span {
  font-size: 3em;
  color: #8e7d53;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.card.detail-card .contact-item {
  text-align: center;
  padding: 15px;
  background-color: #f8f8f8;
  border-radius: 8px;
}
.card.detail-card .card-content {
  padding-left: 15px;
}
.card.detail-card .card-icon {
  position: absolute;
  top: 15px;
  left: 0;
  font-size: 1.8em;
  color: #8e7d53;
}
.card.detail-card .card-actions {
  position: static;
  transform: none;
  flex-shrink: 0;
}
.card.detail-card .card-actions .btn {
  padding: 5px 15px;
  border-radius: 6px;
}
.card.detail-card .card-actions .btn.btn-light {
  background-color: transparent;
  border: 1px solid #e0e0e0;
  color: #333;
}
.card.detail-card .card-actions .btn.btn-light:hover {
  background-color: #f8f8f8;
  border-color: #999;
}
.card .deliveries-collection {
  margin-bottom: -30px;
}
.card .deliveries-collection.last-collection {
  margin-bottom: 0;
}
.card .deliveries-collection .date-group {
  margin-left: 15px;
  margin-top: 5px;
}
.card .deliveries-collection .stops-list .stop-item .stop-header {
  background-color: #d4f4dd;
  color: #2d5f3d;
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
  position: relative;
}
.card .deliveries-collection .stops-list .stop-item .collapse-toggle {
  position: absolute;
  right: 15px;
  font-size: 1.2em;
  cursor: pointer;
  width: 100%;
  text-align: right;
  height: 100%;
  top: 10px;
}
.card .deliveries-collection .stops-list .stop-item .stop-content {
  background-color: rgb(238.3265306122, 250.1734693878, 240.5204081633);
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 15px;
  margin-top: 10px;
  color: #333;
  font-size: 0.9em;
}

.navbar-nav {
  z-index: 1000;
}

.sidebar-dark {
  background-color: #333;
}
.sidebar .collapse-inner {
  background-color: #fff;
}

.nav-item {
  z-index: 1;
}

.sidebar.toggled .nav-item .collapse, .sidebar.toggled .nav-item .collapsing {
  z-index: 1000;
}

.full-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.pagination .current {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #333;
  background-color: #cecece;
  border: 1px solid #dddfeb;
}
.pagination .ellipse {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: #4e73df;
  background-color: #fff;
  border: 1px solid #dddfeb;
}
.pagination li {
  margin-right: 5px;
}
.pagination li span, .pagination li a {
  border: none;
  border-radius: 5px;
  color: #17323b;
}
.pagination li span:hover, .pagination li a:hover {
  color: #17323b;
}
.pagination li.active span {
  background-color: #17323b;
  color: #fff;
  border: none;
}
.pagination .prev {
  display: none !important;
}
.pagination .next {
  display: none !important;
}

.shortcut-item {
  background-color: #f3f3f3;
  padding: 30px;
  border-radius: 30px;
  margin-bottom: 30px;
}
.shortcut-item .shortcut-icon {
  text-align: center;
  font-size: 2em;
}
.shortcut-item .shortcut-title {
  display: block;
  text-align: center;
}

.container-fluid.no-padding {
  padding: 0;
}
.container-fluid.no-padding .page-title {
  padding-left: 1.25rem;
}

.popup-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px 0;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s all;
}
.popup-wrapper .popup-inner {
  position: absolute;
  left: 50%;
  transform: translate(-50%);
  background-color: #fff;
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  max-width: 700px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.popup-wrapper .popup-inner::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera*/
}
.popup-wrapper .popup-inner h1, .popup-wrapper .popup-inner h2, .popup-wrapper .popup-inner h3 {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  padding: 15px 0;
}
.popup-wrapper .close-popup {
  font-size: 1.2em;
  position: absolute;
  right: 15px;
  top: 15px;
}
.popup-wrapper .close-popup span {
  cursor: pointer;
  color: #000;
}
.popup-wrapper.active {
  visibility: visible;
  opacity: 1;
}

.bg-gradient-primary {
  background-color: #333;
  background-image: linear-gradient(180deg, #222 70%, #666 100%);
  background-size: cover;
}

.login-page .logo {
  max-width: 100%;
  width: 300px;
  margin: 0 auto 15px auto;
  display: block;
}
.login-page .subtitle {
  display: block;
  margin-top: -20px;
  margin-bottom: 15px;
}

.btn-primary {
  background-color: #8e7d53;
  border-color: #8e7d53;
}
.btn-primary:hover {
  background-color: rgb(168.68, 151, 107.32);
  border-color: rgb(168.68, 151, 107.32);
}

.cursor-pointer {
  cursor: pointer;
}

#content-wrapper {
  overflow-x: unset !important;
}

@media (min-width: 768px) {
  #content {
    padding-top: 1.5rem;
  }
}

.validation-summary-errors ul {
  margin: 0;
  padding: 0;
}
.validation-summary-errors ul li {
  list-style: none;
}

.fixed-brand-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #333;
}

.sidebar-brand {
  background-color: #333;
}

.sidebar-brand-image img {
  height: 50px;
}

.sidebar-toggled .sidebar-brand-image img {
  height: auto;
}

.fixed-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #343a40;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

tr.optimo-updated {
  animation: highlightRow 1s ease-out;
}

@keyframes highlightRow {
  0% {
    background-color: rgba(40, 167, 69, 0.3);
  }
  100% {
    background-color: transparent;
  }
}
tr.optimo-error {
  animation: highlightRowError 1s ease-out;
}

@keyframes highlightRowError {
  0% {
    background-color: rgba(220, 53, 69, 0.3);
  }
  100% {
    background-color: transparent;
  }
}
.sortable-table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.sortable-table th.sortable:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.sortable-table th.sortable i {
  margin-left: 5px;
  font-size: 0.85em;
}
.sortable-table th.sortable.sort-asc i, .sortable-table th.sortable.sort-desc i {
  color: #8e7d53;
}

.dsiq-content {
  background-color: #e8e5f7;
  border-radius: 8px;
  padding: 15px;
}

.dsiq-section {
  margin-bottom: 20px;
}
.dsiq-section:last-child {
  margin-bottom: 0;
}

.dsiq-section-title {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.dsiq-list {
  margin-bottom: 5px;
  padding-left: 20px;
  color: #333;
  list-style-type: disc;
}
.dsiq-list li {
  margin-bottom: 3px;
}

.dsiq-numbered-list {
  margin-bottom: 5px;
  padding-left: 20px;
  color: #333;
  list-style-type: decimal;
}
.dsiq-numbered-list > li {
  margin-bottom: 10px;
  font-weight: 500;
}
.dsiq-numbered-list > li .dsiq-list {
  font-weight: normal;
  margin-top: 5px;
}

.campaign-content {
  background-color: #e8e5f7;
  border-radius: 8px;
  padding: 20px;
  min-height: 200px;
}

.campaign-item {
  margin-bottom: 15px;
}
.campaign-item:last-child {
  margin-bottom: 0;
}

.campaign-name {
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

.campaign-value {
  font-size: 2em;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.campaign-due {
  color: #666;
  font-size: 0.9em;
}

.card.detail-card:has(.timeline-tabs) {
  padding: 0;
}
.timeline-tabs.nav-tabs {
  border-bottom: 2px solid #f0f0f0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 12px 12px 0 0;
}
.timeline-tabs.nav-tabs .nav-item {
  margin-bottom: -2px;
}
.timeline-tabs.nav-tabs .nav-link {
  border: none;
  border-radius: 0;
  color: #666;
  padding: 12px 15px;
  font-size: 13px;
  transition: all 0.2s;
  background: transparent;
}
.timeline-tabs.nav-tabs .nav-link.active {
  background-color: #d4cfbf;
  color: #333;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid #d4cfbf;
}
.timeline-tabs.nav-tabs .nav-item:first-child .nav-link {
  border-radius: 12px 0 0 0;
}
.timeline-tabs.nav-tabs .nav-link:hover:not(.active) {
  background-color: #f8f8f8;
}

.timeline-content {
  overflow-x: auto;
}

.timeline-entry {
  display: flex;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.timeline-entry:last-child {
  border-bottom: none;
}
.timeline-date {
  flex-shrink: 0;
  width: 100px;
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}
.timeline-body {
  flex: 1;
  min-width: 0;
}
.timeline-title {
  font-weight: 600;
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}
.timeline-description {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}
.timeline-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding: 18px 0 4px;
}
.timeline-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  text-decoration: none;
  transition: all 0.2s;
}
.timeline-page:hover {
  background-color: #f0f0f0;
  text-decoration: none;
  color: #333;
}
.timeline-page.active {
  background-color: #d4cfbf;
  color: #333;
  font-weight: 600;
}

/* Hardware tab */
.hardware-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 10px 0;
  font-weight: 600;
  font-size: 13px;
  color: #666;
  border-bottom: 2px solid #f0f0f0;
}
.hardware-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  font-size: 13px;
  color: #666;
}
.hardware-item:last-child {
  border-bottom: none;
}
.hardware-name {
  font-weight: 600;
  color: #333;
}
.hardware-serial {
  color: #666;
  font-size: 13px;
}
.hardware-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.hardware-status.status-active {
  background: #d4f4dd;
  color: #2d5f3d;
}
.hardware-status.status-maintenance {
  background: #fff3cd;
  color: #856404;
}

/* Recommendations tab */
.recommendation-card {
  background: #f8f8f8;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}
.recommendation-title {
  font-weight: 600;
  color: #333;
}
.recommendation-tag {
  background: #e8e5f7;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #333;
}
.recommendation-description {
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 10px;
}
.recommendation-products {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.recommendation-product {
  background: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: #333;
}

.timeline-row {
  display: flex;
  justify-content: flex-start;
  gap: 0;
}

.timeline-row-top {
  padding-bottom: 0;
}

.timeline-row-bottom {
  padding-top: 0;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100px;
  text-align: center;
}

.timeline-item-offset {
  margin-left: 50px;
}

.timeline-label {
  font-size: 0.85em;
  color: #333;
  line-height: 1.3;
  padding: 5px;
}

.timeline-bracket {
  width: 50px;
  height: 40px;
  position: relative;
}
.timeline-bracket::before, .timeline-bracket::after {
  content: "";
  position: absolute;
  background-color: currentColor;
}

.bracket-down-left::before {
  width: 3px;
  height: 100%;
  left: 50%;
  top: 0;
}
.bracket-down-left::after {
  width: 50%;
  height: 3px;
  left: 50%;
  bottom: 0;
}

.bracket-down-right::before {
  width: 3px;
  height: 100%;
  right: 50%;
  top: 0;
}
.bracket-down-right::after {
  width: 50%;
  height: 3px;
  right: 50%;
  bottom: 0;
}

.bracket-up-left::before {
  width: 3px;
  height: 100%;
  left: 50%;
  bottom: 0;
}
.bracket-up-left::after {
  width: 50%;
  height: 3px;
  left: 50%;
  top: 0;
}

.bracket-up-right::before {
  width: 3px;
  height: 100%;
  right: 50%;
  bottom: 0;
}
.bracket-up-right::after {
  width: 50%;
  height: 3px;
  right: 50%;
  top: 0;
}

.bracket-gray {
  color: #666;
}

.bracket-green {
  color: #28a745;
}

.bracket-yellow {
  color: #ffc107;
}

.bracket-red {
  color: #dc3545;
}

.timeline-line {
  height: 2px;
  background-color: #ddd;
  margin: 0;
  width: 100%;
}

.btn-action-outline {
  border: 1px solid #e0e0e0;
  color: #333;
  background-color: transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}
.btn-action-outline i {
  margin-right: 5px;
}
.btn-action-outline:hover {
  background-color: #f8f8f8;
  color: #333;
  border-color: #999;
}
.btn-action-outline:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.1);
}

/* ============================================
   Dark Mode
   ============================================ */

body.dark-mode {
  background-color: #1a1d21;
}
body.dark-mode #content-wrapper {
  background-color: #1a1d21;
}
body.dark-mode #content {
  background-color: #1a1d21;
}
body.dark-mode .page-title,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
  color: #e0e0e0 !important;
}
body.dark-mode .text-gray-800 {
  color: #e0e0e0 !important;
}

/* Cards */
body.dark-mode .card {
  background-color: #2b2f33;
  color: #d0d0d0;
  border-color: #3a3f44;
}
body.dark-mode .card.detail-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
body.dark-mode .card.detail-card .card-header .card-title {
  color: #d0d0d0;
}
body.dark-mode .card-header {
  background-color: #353a3f;
  border-bottom-color: #3a3f44;
  color: #d0d0d0;
}
body.dark-mode .card-header h5,
body.dark-mode .card-header h6 {
  color: #e0e0e0;
}
body.dark-mode .card-footer {
  background-color: #353a3f;
  border-top-color: #3a3f44;
}

/* Modals */
body.dark-mode .modal-content {
  background-color: #2b2f33;
  color: #d0d0d0;
}
body.dark-mode .modal-header {
  border-bottom-color: #3a3f44;
}
body.dark-mode .modal-header .modal-title {
  color: #e0e0e0;
}
body.dark-mode .modal-header .close {
  color: #d0d0d0;
}
body.dark-mode .modal-footer {
  border-top-color: #3a3f44;
}

/* Tables */
body.dark-mode .table {
  color: #d0d0d0;
}
body.dark-mode .table td,
body.dark-mode .table th {
  border-color: #3a3f44;
}
body.dark-mode .table thead th {
  border-color: #3a3f44;
}
body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03);
}
body.dark-mode .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
body.dark-mode .table-primary,
body.dark-mode .table-primary > td,
body.dark-mode .table-primary > th {
  background-color: #2a3a4a;
}
body.dark-mode .table-warning,
body.dark-mode .table-warning > td,
body.dark-mode .table-warning > th {
  background-color: #3a3520;
}

/* Form controls */
body.dark-mode .form-control {
  background-color: #353a3f;
  color: #d0d0d0;
  border-color: #4a4f54;
}
body.dark-mode .form-control:focus {
  background-color: #3a3f44;
  color: #e0e0e0;
  border-color: #8e7d53;
}
body.dark-mode .form-control::placeholder {
  color: #888;
}
body.dark-mode .form-control[readonly] {
  background-color: #2b2f33;
}
body.dark-mode .form-label {
  color: #c0c0c0;
}
body.dark-mode .custom-select {
  background-color: #353a3f;
  color: #d0d0d0;
  border-color: #4a4f54;
}

/* Alerts */
body.dark-mode .alert-info {
  background-color: #1a3a4a;
  color: #a0d0e0;
  border-color: #2a4a5a;
}
body.dark-mode .alert-danger {
  background-color: #3a1a1a;
  color: #e0a0a0;
  border-color: #4a2a2a;
}

/* Nav tabs */
body.dark-mode .nav-tabs {
  border-color: #3a3f44;
}
body.dark-mode .nav-tabs .nav-link {
  color: #a0a0a0;
}
body.dark-mode .nav-tabs .nav-link.active {
  background-color: #2b2f33;
  color: #e0e0e0;
  border-color: #3a3f44 #3a3f44 #2b2f33;
}
body.dark-mode .timeline-tabs.nav-tabs {
  background: #2b2f33;
  border-bottom-color: #3a3a3a;
}
body.dark-mode .timeline-tabs.nav-tabs .nav-link {
  color: #999;
  background: transparent;
}
body.dark-mode .timeline-tabs.nav-tabs .nav-link.active {
  background-color: #6b6554;
  color: #e0e0e0;
  border-bottom-color: #6b6554;
}
body.dark-mode .timeline-tabs.nav-tabs .nav-link:hover:not(.active) {
  background-color: #353a3f;
}
body.dark-mode .timeline-entry {
  border-bottom-color: #3a3a3a;
}
body.dark-mode .timeline-title {
  color: #e0e0e0;
}
body.dark-mode .timeline-description {
  color: #999;
}
body.dark-mode .timeline-page {
  color: #999;
}
body.dark-mode .timeline-page:hover {
  background-color: #353a3f;
  color: #e0e0e0;
}
body.dark-mode .timeline-page.active {
  background-color: #6b6554;
  color: #e0e0e0;
}

/* Hardware tab dark mode */
body.dark-mode .hardware-header {
  color: #999;
  border-bottom-color: #3a3a3a;
}
body.dark-mode .hardware-item {
  border-bottom-color: #3a3a3a;
  color: #999;
}
body.dark-mode .hardware-name {
  color: #e0e0e0;
}
body.dark-mode .hardware-serial {
  color: #999;
}
body.dark-mode .hardware-status.status-active {
  background: #2d4a35;
  color: #90d4a0;
}
body.dark-mode .hardware-status.status-maintenance {
  background: #4a4520;
  color: #d4c490;
}

/* Kreditstatus tab */
.credit-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.credit-card {
  padding: 20px;
  border-radius: 8px;
}
.credit-card-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}
.credit-card-value {
  font-size: 24px;
  font-weight: 600;
}
.credit-card-success {
  background: #d4f4dd;
}
.credit-card-success .credit-card-value {
  color: #2d5f3d;
}
.credit-card-warning {
  background: #fff3cd;
}
.credit-card-warning .credit-card-value {
  color: #856404;
}
.credit-card-info {
  background: #d1ecf1;
}
.credit-card-info .credit-card-value {
  color: #0c5460;
}

/* Specialpriser tab */
.special-price-original {
  text-decoration: line-through;
  color: #999;
}
.special-price-customer {
  font-weight: 600;
  color: #2d5f3d;
}
.special-price-discount {
  font-weight: 600;
  color: #2d5f3d;
}

/* Notifications tab */
.notification-hint {
  font-size: 12px;
  color: #999;
  font-style: italic;
  margin-bottom: 15px;
}
.notification-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 10px 0;
  padding-left: 20px;
  padding-right: 30px;
  border-bottom: 1px solid #f0f0f0;
  gap: 15px;
}
.notification-row:last-child {
  border-bottom: none;
}
.notification-event {
  font-size: 14px;
  color: #333;
}
.notification-channel {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notification-channel input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.notification-channel label {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin: 0;
}

/* Send SMS tab */
.sms-form {
  max-width: 500px;
}
.sms-field {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin-bottom: 15px;
  align-items: start;
}
.sms-label {
  font-weight: 600;
  font-size: 13px;
  color: #333;
  padding-top: 8px;
}
.sms-input {
  min-width: 0;
}
.sms-char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* Recommendations tab dark mode */
body.dark-mode .recommendation-card {
  background: #3a3a3a;
}
body.dark-mode .recommendation-title {
  color: #e0e0e0;
}
body.dark-mode .recommendation-tag {
  background: #3a3549;
  color: #e0e0e0;
}
body.dark-mode .recommendation-description {
  color: #999;
}
body.dark-mode .recommendation-product {
  background: #2b2f33;
  color: #e0e0e0;
}

/* Kreditstatus tab dark mode */
body.dark-mode .credit-card-label {
  color: #999;
}
body.dark-mode .credit-card-success {
  background: #2d4a35;
}
body.dark-mode .credit-card-success .credit-card-value {
  color: #90d4a0;
}
body.dark-mode .credit-card-warning {
  background: #4a4520;
}
body.dark-mode .credit-card-warning .credit-card-value {
  color: #d4c490;
}
body.dark-mode .credit-card-info {
  background: #1a3a4a;
}
body.dark-mode .credit-card-info .credit-card-value {
  color: #a0d0e0;
}

/* Specialpriser tab dark mode */
body.dark-mode .special-price-original {
  color: #777;
}
body.dark-mode .special-price-customer,
body.dark-mode .special-price-discount {
  color: #90d4a0;
}

/* Notifications tab dark mode */
body.dark-mode .notification-hint {
  color: #888;
}
body.dark-mode .notification-row {
  border-bottom-color: #3a3a3a;
}
body.dark-mode .notification-event {
  color: #e0e0e0;
}
body.dark-mode .notification-channel label {
  color: #d0d0d0;
}

/* Send SMS tab dark mode */
body.dark-mode .sms-label {
  color: #d0d0d0;
}
body.dark-mode .sms-char-count {
  color: #888;
}

/* Popups */
body.dark-mode .popup-wrapper .popup-inner {
  background-color: #2b2f33;
  color: #d0d0d0;
}
body.dark-mode .popup-wrapper .close-popup span {
  color: #d0d0d0;
}

/* Footer */
body.dark-mode .sticky-footer {
  background-color: #2b2f33 !important;
}
body.dark-mode .sticky-footer .copyright span {
  color: #888;
}

/* Topbar (mobile) */
body.dark-mode .topbar {
  background-color: #2b2f33 !important;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.3) !important;
}

/* Dropdown menus */
body.dark-mode .dropdown-menu {
  background-color: #2b2f33;
  border-color: #3a3f44;
}
body.dark-mode .dropdown-item {
  color: #d0d0d0;
}
body.dark-mode .dropdown-item:hover {
  background-color: #353a3f;
  color: #e0e0e0;
}

/* Sidebar collapse inner */
body.dark-mode .sidebar .nav-item .collapse .collapse-inner,
body.dark-mode .sidebar .nav-item .collapsing .collapse-inner {
  background-color: #2b2f33;
  box-shadow: 0 0.15rem 1.75rem 0 rgba(0, 0, 0, 0.4);
}
body.dark-mode .sidebar .nav-item .collapse .collapse-inner .collapse-item,
body.dark-mode .sidebar .nav-item .collapsing .collapse-inner .collapse-item {
  color: #d0d0d0;
}
body.dark-mode .sidebar .nav-item .collapse .collapse-inner .collapse-item:hover,
body.dark-mode .sidebar .nav-item .collapsing .collapse-inner .collapse-item:hover {
  background-color: #3a3f44;
  color: #e0e0e0;
}
body.dark-mode .sidebar .nav-item .collapse .collapse-inner .collapse-item:active,
body.dark-mode .sidebar .nav-item .collapsing .collapse-inner .collapse-item:active {
  background-color: #444a50;
}

/* Buttons */
body.dark-mode .btn-secondary {
  background-color: #4a4f54;
  border-color: #4a4f54;
}
body.dark-mode .btn-light {
  background-color: #353a3f;
  border-color: #4a4f54;
  color: #d0d0d0;
}
body.dark-mode .btn-outline-primary {
  color: #b0a070;
  border-color: #b0a070;
}
body.dark-mode .btn-outline-primary:hover {
  background-color: #8e7d53;
  color: #fff;
}

/* Badges */
body.dark-mode .badge-secondary,
body.dark-mode .bg-secondary {
  background-color: #4a4f54 !important;
}
body.dark-mode .badge-info {
  background-color: #247a88;
}
body.dark-mode a.badge-info:hover,
body.dark-mode a.badge-info:focus {
  background-color: #1d6470;
}
body.dark-mode .btn-info {
  background-color: #247a88;
  border-color: #247a88;
}
body.dark-mode .btn-info:hover {
  background-color: #1d6470;
  border-color: #1d6470;
}

/* Pagination */
body.dark-mode .pagination li span,
body.dark-mode .pagination li a {
  background-color: #2b2f33;
  color: #d0d0d0;
}
body.dark-mode .pagination li.active span {
  background-color: #8e7d53;
  color: #fff;
}

/* Customer service overview specific */
body.dark-mode .cs-tab-bar {
  background-color: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Order section headers (create order popup) */
body.dark-mode .order-section-header {
  background-color: #3a4a5a !important;
  color: #d0d0d0 !important;
}

/* Detail card sections */
body.dark-mode .card.detail-card .card-icon {
  color: #b0a070;
}
body.dark-mode .card.detail-card .card-actions .btn.btn-light {
  background-color: transparent;
  border-color: #4a4f54;
  color: #d0d0d0;
}
body.dark-mode .card.detail-card .card-actions .btn.btn-light:hover {
  background-color: #353a3f;
  border-color: #666;
  color: #e0e0e0;
}
body.dark-mode .card.detail-card .contact-item {
  color: #e8e8e8;
  background-color: #353a3f;
}
body.dark-mode .dsiq-content {
  background-color: #2a2535;
  color: #d0d0d0;
}
body.dark-mode .dsiq-content .text-muted {
  color: #b0b0b0 !important;
}
body.dark-mode .dsiq-section-title {
  color: #e0e0e0;
}
body.dark-mode .dsiq-list,
body.dark-mode .dsiq-numbered-list {
  color: #d0d0d0;
}
body.dark-mode .campaign-content {
  background-color: #2a2535;
  color: #d0d0d0;
}
body.dark-mode .campaign-name {
  color: #e0e0e0;
}
body.dark-mode .campaign-value {
  color: #e0e0e0;
}
body.dark-mode .campaign-due {
  color: #a0a0a0;
}

/* Delivery stops */
body.dark-mode .stops-list .stop-item .stop-header {
  background-color: #2d4a35 !important;
  color: #90d4a0 !important;
}
body.dark-mode .stops-list .stop-item .stop-content {
  background-color: #253a2d;
  color: #d0d0d0;
}
body.dark-mode .stop-content .border-top {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Action outline buttons */
body.dark-mode .btn-action-outline {
  border-color: #4a4f54;
  color: #d0d0d0;
}
body.dark-mode .btn-action-outline:hover {
  background-color: #353a3f;
  color: #e0e0e0;
  border-color: #666;
}

/* Success button */
body.dark-mode .btn-success {
  background-color: #2a7a3a;
  border-color: #2a7a3a;
}
body.dark-mode .btn-success:hover {
  background-color: #236830;
  border-color: #236830;
}

/* Overview tables */
body.dark-mode .overview-completed {
  opacity: 0.5;
}
body.dark-mode .overview-skipped {
  opacity: 0.4;
}

/* Links */
body.dark-mode a:not(.nav-link):not(.btn):not(.dropdown-item):not(.collapse-item):not(.sidebar-brand) {
  color: #b0a070;
}

/* Shortcut items */
body.dark-mode .shortcut-item {
  background-color: #353a3f;
}

/* Select2 */
body.dark-mode .select2-container--bootstrap4 .select2-selection {
  background-color: #353a3f;
  border-color: #4a4f54;
  color: #d0d0d0;
}
body.dark-mode .select2-dropdown {
  background-color: #2b2f33;
  border-color: #4a4f54;
}
body.dark-mode .select2-results__option {
  color: #d0d0d0;
}
body.dark-mode .select2-results__option--highlighted {
  background-color: #353a3f !important;
}

/* Text utilities */
body.dark-mode .text-muted {
  color: #888 !important;
}
body.dark-mode .text-dark {
  color: #d0d0d0 !important;
}

/* Form headline */
body.dark-mode .form-headline {
  background-color: #4a4f54;
}
