:root {
  --playrent-navy: #1f3855;
  --playrent-blue: #6997af;
  --tblr-primary: #1f3855;
  --tblr-primary-rgb: 31, 56, 85;
  --tblr-link-color: #1f3855;
}

body {
  background: #f7f8fa;
}

.playrent-admin [hidden] {
  display: none !important;
}

.playrent-admin .page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--tblr-border-color);
  background: var(--tblr-bg-surface);
  box-shadow: 0 .25rem .75rem rgb(31 56 85 / 8%);
}

.playrent-admin .page-header > .container-xl {
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.playrent-admin .admin-toolbar-actions {
  margin-left: auto;
}

.playrent-admin .admin-toolbar-button {
  min-height: 2.75rem;
  padding: .65rem .9rem;
  font-size: .95rem;
}

.playrent-admin .admin-toolbar-button.btn-icon {
  width: 2.75rem;
  padding: 0;
}

@media (max-width: 575.98px) {
  .playrent-admin .page-header > .container-xl > .row {
    align-items: flex-start !important;
  }

  .playrent-admin .admin-toolbar-actions {
    width: 100%;
    justify-content: flex-end;
    gap: .4rem !important;
  }

  .playrent-admin .admin-toolbar-button {
    min-height: 2.5rem;
    padding: .5rem .65rem;
    font-size: .85rem;
  }

  .playrent-admin .admin-toolbar-button.btn-icon {
    width: 2.5rem;
  }
}

.admin-edit-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: .5rem;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}

.admin-edit-dialog::backdrop {
  background: rgb(15 23 42 / 55%);
}

.admin-edit-dialog form {
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

.playrent-navbar {
  background: var(--playrent-navy);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  padding: .35rem .55rem;
  border-radius: .35rem;
  background: #fff;
}

.brand-logo img {
  display: block;
  width: 9rem;
  height: auto;
}

.brand-mark {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: .55rem;
  place-items: center;
  border-radius: .4rem;
  background: rgb(255 255 255 / 15%);
  color: white;
}

.brand-divider {
  padding: 0 .25rem;
  color: #a9c4d5;
}

.wizard-heading {
  margin-bottom: 1.5rem;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .25rem;
}

.wizard-step {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #66788a;
  font-size: .76rem;
  text-align: left;
}

.wizard-step:not(:disabled) {
  cursor: pointer;
}

.wizard-step:not(:disabled):hover .wizard-step-number {
  box-shadow: 0 0 0 3px rgb(31 56 85 / 12%);
}

.wizard-step:focus-visible {
  border-radius: .3rem;
  outline: 2px solid #9dc1d3;
  outline-offset: 2px;
}

.wizard-step-number {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  place-items: center;
  border: 1px solid #cbd4de;
  border-radius: 50%;
  background: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.wizard-step.active {
  color: var(--playrent-navy);
  font-weight: 700;
}

.wizard-step.active .wizard-step-number,
.wizard-step.completed .wizard-step-number {
  border-color: var(--playrent-navy);
  background: var(--playrent-navy);
  color: #fff;
}

.wizard-step-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wizard-card {
  min-height: 340px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}

.choice-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid #d8dee6;
  border-radius: .4rem;
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.choice-card:hover {
  border-color: var(--playrent-blue);
  box-shadow: 0 2px 8px rgb(31 56 85 / 8%);
}

.choice-card.selected {
  border: 2px solid var(--playrent-navy);
  background: #f5f8fb;
}

.choice-card:focus-visible {
  outline: 3px solid #9dc1d3;
  outline-offset: 2px;
}

.choice-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: .4rem;
  background: #edf3f7;
  color: var(--playrent-navy);
  font-size: 1.35rem;
}

.choice-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.choice-content {
  display: grid;
  min-width: 0;
  gap: .2rem;
}

.choice-title {
  color: var(--playrent-navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.choice-description {
  display: -webkit-box;
  color: #66788a;
  font-size: .82rem;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.choice-trailing {
  display: grid;
  flex: 0 0 auto;
  justify-items: end;
  gap: .25rem;
  margin-left: auto;
  text-align: right;
}

.choice-price {
  color: var(--playrent-navy);
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}

.choice-price-once {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
}

.accessory-choice {
  min-width: 0;
}

.accessory-choice-card {
  width: 100%;
  align-items: flex-start;
}

.accessory-choice-card .choice-icon {
  margin-top: .1rem;
}

.accessory-choice-card .choice-content {
  flex: 1 1 auto;
}

.quantity-control {
  justify-content: flex-end;
  margin-top: .4rem;
  margin-right: .5rem;
}

.choice-check {
  display: none;
  color: var(--playrent-navy);
}

.choice-card.selected .choice-check {
  display: inline;
}

.quantity-control {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
  font-size: .75rem;
}

.quantity-control input {
  width: 4.4rem;
}

.price-card {
  position: sticky;
  top: 1rem;
}

.price-lines {
  min-height: 2rem;
  font-size: .9rem;
}

.summary-list {
  display: grid;
  gap: 0;
}

.summary-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .75rem;
  color: var(--playrent-navy);
  font-size: 1.15rem;
}

.summary-hero-icon {
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  flex: 0 0 4.5rem;
  place-items: center;
  border-radius: .8rem;
  background: #edf3f7;
  font-size: 2.5rem;
}

.summary-hero img.summary-hero-icon {
  object-fit: contain;
  padding: .25rem;
}

details.instrument-accordion > summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  text-align: left;
  padding-left: 2.25rem !important;
}

details.instrument-accordion > summary::-webkit-details-marker {
  display: none;
}

details.instrument-accordion > summary::before {
  content: "\25B8";
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform .15s ease;
}

details.instrument-accordion[open] > summary::before {
  transform: translateY(-50%) rotate(90deg);
}

.instrument-bereich-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.instrument-bereich-thumb {
  flex: 0 0 10rem;
  width: 10rem;
  height: 10rem;
  object-fit: cover;
  border-radius: .5rem;
  border: 1px solid var(--bs-border-color, #dee2e6);
}

.instrument-bereich-main {
  flex: 1 1 20rem;
  min-width: 0;
}

.instrument-image-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin-top: .5rem;
}

.instrument-image-controls {
  flex: 1 1 16rem;
  max-width: 24rem;
}

.instrument-price-editor .input-group {
  max-width: 20rem;
}

.instrument-switch {
  padding: .6rem 0;
  border-bottom: 1px solid #e8ecf0;
  padding-left: 0;
}

.instrument-switch .form-check-input {
  float: none;
  margin-left: 0;
}

.instrument-switch:last-child {
  border-bottom: 0;
}

.instrument-image-preview {
  display: block;
  width: 8rem;
  height: 8rem;
  object-fit: contain;
  border: 1px solid #e8ecf0;
  border-radius: .4rem;
  background: #f8fafc;
}

.summary-row {
  display: grid;
  grid-template-columns: 1.5rem minmax(8rem, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: .75rem;
  padding: .8rem 0;
  border-bottom: 1px solid #e8ecf0;
}

.summary-row-icon {
  color: var(--playrent-blue);
  font-size: 1.2rem;
}

.summary-row strong {
  text-align: right;
}

.dropzone {
  display: grid;
  justify-items: center;
  gap: .5rem;
  padding: 2rem 1rem;
  border: 1px dashed #aab8c7;
  border-radius: .4rem;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}

.dropzone.dragover {
  border-color: var(--playrent-blue);
  background: #edf5f8;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.playrent-admin .navbar-vertical {
  background: var(--playrent-navy);
}

.playrent-admin .navbar-vertical .navbar-brand,
.playrent-admin .navbar-vertical .navbar-brand a {
  color: white;
  text-decoration: none;
}

.playrent-admin .navbar-vertical > .container-fluid {
  align-items: stretch;
}

.admin-nav-heading {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.admin-menu-toggle {
  display: none;
  align-items: center;
  gap: .4rem;
  padding: .5rem .75rem;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: .4rem;
  background: transparent;
  color: #fff;
  font: inherit;
}

.admin-navigation {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
}

.admin-version {
  padding: .5rem 1rem 0;
  color: rgb(255 255 255 / 50%);
  font-size: .7rem;
}

.admin-nav-group > summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: .4rem;
  color: rgb(255 255 255 / 78%);
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

.admin-nav-group > summary::-webkit-details-marker {
  display: none;
}

.admin-nav-group > summary:hover,
.admin-nav-group > summary:focus-visible {
  background: rgb(255 255 255 / 10%);
  color: #fff;
}

.admin-nav-chevron {
  margin-left: auto;
  transition: transform .15s ease;
}

.admin-nav-group[open] > summary .admin-nav-chevron {
  transform: rotate(180deg);
}

.playrent-admin .admin-nav-submenu {
  display: grid;
  gap: .15rem;
  margin: .1rem 0 .5rem 1.5rem;
  padding-left: .65rem;
  border-left: 1px solid rgb(255 255 255 / 25%);
}

.playrent-admin .admin-nav-submenu .nav-link {
  min-height: 2.5rem;
  padding: .55rem .75rem;
  border-radius: .35rem;
  line-height: 1.3;
}

.playrent-admin .admin-navigation .nav-link.active {
  background: rgb(255 255 255 / 17%);
  color: #fff;
  font-weight: 600;
}

.admin-settings-page .card,
.admin-settings-page .instrument-accordion {
  border-color: #dce3eb;
  border-radius: .5rem;
}

.admin-settings-page .card-header {
  min-height: 3.5rem;
  background: #f8fafc;
}

.admin-settings-page .card-title,
.admin-settings-page summary.card-header {
  color: var(--playrent-navy);
  font-size: 1rem;
  font-weight: 600;
}

.admin-settings-page .form-label {
  color: var(--tblr-body-color);
  font-size: .875rem;
  font-weight: 600;
}

.admin-settings-page .form-control,
.admin-settings-page .form-select {
  font-size: .875rem;
}

@media (max-width: 991.98px) {
  .playrent-admin .navbar-vertical > .container-fluid {
    display: block;
  }

  .admin-menu-toggle {
    display: inline-flex;
  }

  .admin-navigation {
    display: none;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    padding-bottom: 1rem;
  }

  .admin-navigation.is-open {
    display: flex;
  }
}

.playrent-admin .card-actions {
  max-width: min(24rem, 55%);
}

.playrent-admin .role-hidden {
  display: none !important;
}

.mobile-admin-cards {
  display: none;
  padding: 1rem;
}

.analytics-chart {
  display: grid;
  height: 9rem;
  align-items: end;
  gap: 2px;
  border-bottom: 1px solid #dce3eb;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(25% - 1px), #edf0f4 25%);
}

.analytics-bar-slot {
  display: flex;
  height: 100%;
  align-items: end;
}

.analytics-bar {
  width: 100%;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: #6997af;
}

.analytics-bar:hover {
  background: var(--playrent-navy);
}

.analytics-labels {
  display: grid;
  gap: 2px;
  margin-top: .35rem;
  color: #66788a;
  font-size: .65rem;
}

.analytics-labels span {
  white-space: nowrap;
}

.inventory-stat-chart {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.inventory-stat-item {
  display: grid;
  gap: .3rem;
}

.inventory-stat-track {
  height: .55rem;
  overflow: hidden;
  border-radius: 1rem;
  background: #edf0f4;
}

.inventory-stat-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--playrent-blue);
}

.request-status-flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .25rem;
}

.request-status-step {
  display: grid;
  justify-items: center;
  gap: .35rem;
  color: #7a8997;
  font-size: .68rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.request-status-marker {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid #cbd4de;
  border-radius: 50%;
  background: white;
  font-weight: 700;
}

.request-status-step.complete {
  color: var(--playrent-navy);
}

.request-status-step.complete .request-status-marker {
  border-color: var(--playrent-blue);
  background: #edf3f7;
}

.request-status-step.current .request-status-marker {
  border-color: var(--playrent-navy);
  background: var(--playrent-navy);
  color: white;
}

.timeline {
  display: grid;
  gap: 1rem;
  padding-left: 1rem;
  border-left: 2px solid #dce3eb;
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  position: absolute;
  top: .35rem;
  left: -1.36rem;
  width: .55rem;
  height: .55rem;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--playrent-blue);
  content: "";
}

@media (max-width: 767px) {
  .playrent-admin .desktop-admin-table {
    display: none;
  }
  .playrent-admin .mobile-admin-cards {
    display: block;
  }
  .playrent-admin .card-actions {
    max-width: 60%;
  }
}

@media (max-width: 760px) {
  .wizard-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: .75rem;
  }
  .wizard-step-label {
    max-width: calc(100% - 2.25rem);
  }
}

@media (max-width: 520px) {
  .wizard-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wizard-step {
    font-size: .68rem;
  }
  .wizard-step-number {
    width: 1.55rem;
    height: 1.55rem;
    flex-basis: 1.55rem;
  }
  .choice-grid {
    grid-template-columns: 1fr;
  }
  .choice-card {
    gap: .65rem;
    padding: .8rem;
  }
  .summary-row {
    grid-template-columns: 1.5rem 1fr;
    gap: .2rem;
  }
  .summary-row strong {
    grid-column: 2;
    text-align: left;
  }
  .request-status-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: .75rem;
  }
  .price-card {
    position: relative;
    top: auto;
  }
}
.request-history {
  display: grid;
  gap: 0.75rem;
}
.request-history-item {
  border: 1px solid var(--tblr-border-color, #dce1e7);
  border-left: 3px solid #71849a;
  border-radius: 0.4rem;
  padding: 0.75rem 1rem;
}
.request-history-note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-page {
  max-width: 1320px;
}

.contact-customer-field {
  display: grid;
  align-content: start;
  gap: .15rem;
  min-width: 0;
  padding: .55rem .65rem;
  border: 1px solid #e8ecf0;
  border-radius: .35rem;
  background: #fff;
  overflow-wrap: anywhere;
}

#contact-customer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
}

#contact-request-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.contact-detail-group {
  min-width: 0;
}

.contact-detail-group:nth-child(1) {
  grid-column: 1 / -1;
}

.contact-detail-group:nth-child(2) {
  align-self: start;
  padding: .85rem;
  border: 1px solid #e8ecf0;
  border-radius: .4rem;
  background: #f8fafc;
}

.contact-detail-group:nth-child(2) .contact-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
}

.contact-detail-group:nth-child(2) .contact-detail-row {
  display: block;
  padding: .65rem;
  border: 1px solid #e8ecf0;
  border-radius: .35rem;
  background: #fff;
}

.contact-detail-group:nth-child(2) .contact-detail-row dt {
  margin-bottom: .2rem;
  font-size: .8rem;
}

.contact-detail-list {
  display: grid;
  gap: .65rem;
  margin: 0;
}

.contact-detail-row {
  display: grid;
  grid-template-columns: minmax(10rem, .45fr) minmax(0, 1fr);
  gap: .75rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid #e8ecf0;
}

.contact-detail-group:nth-child(1) .contact-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1.5rem;
}

.contact-detail-row dt {
  color: #66788a;
  font-weight: 500;
}

.contact-detail-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.contact-status-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .5rem;
}

.contact-status-step {
  min-height: 3.25rem;
  padding: .55rem .65rem;
  border: 1px solid #cbd4de;
  border-radius: .4rem;
  background: #fff;
  color: #526579;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.contact-status-step:hover,
.contact-status-step:focus-visible {
  border-color: var(--playrent-blue);
  outline: 2px solid rgb(105 151 175 / 20%);
  outline-offset: 1px;
}

.contact-status-step.current {
  border-color: var(--playrent-blue);
  background: #edf3f7;
  color: var(--playrent-navy);
}

.contact-status-step.selected {
  border-color: var(--playrent-navy);
  box-shadow: inset 0 0 0 1px var(--playrent-navy);
  color: var(--playrent-navy);
}

.contact-help summary {
  color: #355b7a;
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
}

.contact-help-popover {
  max-width: 48rem;
  margin-top: .5rem;
  padding: .75rem 1rem;
  border-left: 3px solid var(--playrent-blue);
  border-radius: .25rem;
  background: #edf3f7;
  color: #33475b;
  font-size: .9rem;
}

.contact-log-section {
  padding: 1rem;
  border: 1px solid #dce3eb;
  border-radius: .45rem;
  background: #f8fafc;
}

@media (max-width: 767.98px) {
  #contact-customer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #contact-request-details {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-detail-group:nth-child(1) {
    grid-column: auto;
  }

  .contact-detail-group:nth-child(1) .contact-detail-list {
    grid-template-columns: 1fr;
  }

  .contact-status-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 479.98px) {
  #contact-customer {
    grid-template-columns: 1fr;
  }

  .contact-detail-row {
    grid-template-columns: 1fr;
    gap: .1rem;
  }

  .contact-status-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
