/**
 * @file
 * Subtheme specific CSS.
 */
:root {
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
}

table tr th,
table tr th a,
table tr th a:hover,
table tr th a:focus {
  color: var(--bb-primary-text);
}

.pricingart-02 .details-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 1rem;
}

#pricingconfirmation > * * {
  margin: 0 !important;
}

.block-region-bottom {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

#tabellenwrapper {
  margin-bottom: 1rem;
}

#pricingconfirmation [id^="edit-tankstellen-header"] {
  padding: 0.5rem;
}

#pricingconfirmation [id^="edit-tankstellen-header"] a {
  text-decoration: none;
  color: var(--bb-primary-dark);
}

#pricingconfirmation td {
  padding: 0.125rem !important;
}

body {
  overflow-x: hidden;
}

#main form {
  padding: 1.5rem;
}

.views-exposed-form .d-flex {
  gap: 1rem;
}
.views-exposed-form .d-flex > * {
  flex-grow: 1;
}
.views-exposed-form .d-flex > .form-actions {
  flex-grow: 0;
}

.bestprice-sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(135deg, #1a1c2e 0%, #16181f 100%);
  transition: all 0.3s ease;
  z-index: 3;
}

.table th,
.table td {
  vertical-align: middle;
  padding-left: 1rem;
  padding-right: 1rem;
}

.bestprice-sidebar .middle {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.gin--horizontal-toolbar .bestprice-sidebar {
  height: calc(100vh - var(--gin-toolbar-height));
}

.bestprice-sidebar.collapsed {
  width: var(--sidebar-width-collapsed);
}

.block-blocktabs {
  padding: 1.5rem;
}

.block-blocktabs .tab-content {
  flex-grow: 1 !important;
}

table.table td[class*="views-field-iconify-icon"],
table.table th[class*="views-field-iconify-icon"] {
  width: 1px;
  padding: 0.25rem !important;
}

.top-bar {
  z-index: 2;
  position: sticky;
  top: 0;
}

.gin--horizontal-toolbar .top-bar {
  top: var(--gin-toolbar-height);
}

.sidebar-link {
  color: #a0a3bd;
  transition: all 0.2s ease;
  border-radius: 8px;
  margin: 4px 16px;
  white-space: nowrap;
  overflow: hidden;
  display: flex;
  gap: 1rem;
}

.sidebar-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  /* transform: translateX(5px); */
}

.sidebar-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.logo-text {
  background: #ffdf0d;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: opacity 0.3s ease;
}

.profile-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-section .lnk {
  transition: all 0.2s ease;
}

.main-content {
  margin-left: var(--sidebar-width);
  background-color: #fff;
  min-height: 100vh;
  transition: all 0.3s ease;
}

.gin--horizontal-toolbar .main-content {
  min-height: calc(100vh - var(--gin-toolbar-height));
}

.collapsed ~ .main-content {
  margin-left: var(--sidebar-width-collapsed);
}

.toggle-btn {
  position: absolute;
  right: -15px;
  top: 20px;
  background: white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.collapsed .toggle-btn {
  transform: rotate(180deg);
}

.collapsed .hide-on-collapse {
  opacity: 0;
  visibility: hidden;
}

.show-on-collapse {
  opacity: 0;
  visibility: hidden;
}

.collapsed .show-on-collapse {
  opacity: 1;
  visibility: visible;
}

.collapsed .logo-text {
  opacity: 0;
}

.collapsed .profile-info {
  opacity: 0;
}

.collapsed .sidebar-link {
  text-align: center;
  padding: 1rem !important;
  margin: 4px 8px;
}

.collapsed .sidebar-link i {
  margin: 0 !important;
}

.profile-info {
  transition: opacity 0.2s ease;
}

.bestprice-sidebar .block-menu,
.block-bestprice-core-user-account {
  display: contents;
}

/* Progressbar */

.progress {
  display: flex;
  flex-direction: column;
  background: transparent;
  height: auto;
  padding: 1rem;
}

.progress__label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.progress__track {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bs-light);
  height: 24px;
  border-color: var(--bs-border-color);
  box-shadow: 5px 5px 5px #eee;
}

.progress__track .progress__bar {
  height: 100%;
  width: 75%;
  background: var(--bs-primary);
}

.progress__percentage {
  transform: translateY(calc(-100% - 5px));
  text-align: right;
  padding: 0 1rem;
}

.progress-bar-message {
  display: none;
}
