#rental-root[data-rental-workbench="true"] {
  min-height: 100vh;
  background: #f7f3ea;
  color: #17211d;
}

#rental-root .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#rental-root .restaurant-topbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #e2d8c8;
  background: #fffdfc;
}

#rental-root .restaurant-workspace-hero {
  padding: 8px 0 4px;
}

#rental-root .restaurant-workspace-hero h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

#rental-root .restaurant-workspace-subtitle {
  margin: 0;
  font-size: 0.95rem;
}

#rental-root .restaurant-topbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

#rental-root .restaurant-topbar-row--prefs {
  justify-content: flex-start;
  gap: 12px;
}

#rental-root .restaurant-topbar-row--prefs .language-field,
#rental-root .restaurant-topbar-row--prefs .currency-field {
  min-width: 10rem;
}

#rental-root .currency-field,
#rental-root [data-rental-currency] {
  scroll-margin-top: 16px;
}

#rental-root .currency-field.is-currency-guided,
#rental-root [data-rental-currency]:focus {
  outline: 3px solid color-mix(in srgb, #165536 40%, transparent);
  outline-offset: 3px;
}

#rental-root .rental-currency-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

#rental-root .rental-currency-guide .rental-status {
  margin: 0;
}

#rental-root .industry-platform-nav {
  margin-bottom: 4px;
}

#rental-root .rental-category-label {
  margin: 0 0 6px;
  color: #64716b;
  font-size: 0.85rem;
}

#rental-root .rental-workspace-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  max-width: 36rem;
}

#rental-root .rental-workspace-switch .homepage-industry-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 10rem;
  flex: 1 1 10rem;
  max-width: 16rem;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fffdfc;
  border: 1px solid #e2d8c8;
  border-radius: 10px;
}

#rental-root .rental-workspace-switch .is-current {
  border-color: #165536;
  box-shadow: inset 0 0 0 1px #165536;
}

#rental-root .rental-panel {
  background: #fffdfc;
  border: 1px solid #e2d8c8;
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 16px;
  min-width: 0;
}

#rental-root .rental-panel h2,
#rental-root .rental-task h2 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

#rental-root .rental-hint,
#rental-root .rental-empty {
  color: #64716b;
  margin: 0 0 12px;
}

#rental-root .rental-task {
  display: grid;
  gap: 0;
  width: 100%;
}

#rental-root .rental-task h2,
#rental-root .rental-task .rental-form,
#rental-root .rental-task .rental-hint {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

#rental-root .rental-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 12px;
  margin: 0;
  width: 100%;
}

#rental-root .rental-field {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

#rental-root .rental-field__label {
  display: block;
  line-height: 1.3;
}

#rental-root .rental-field__control {
  display: block;
  min-width: 0;
}

#rental-root .rental-field__hint {
  display: block;
  min-height: 0;
  color: #64716b;
}

#rental-root .rental-form small {
  color: #64716b;
}

#rental-root .rental-usual-price {
  display: block;
  color: #3f4a45;
  font-weight: 600;
}

#rental-root .rental-error {
  color: #8a3b2b;
  margin: 0 0 8px;
}

#rental-root .rental-form input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="hidden"]),
#rental-root .rental-form select {
  height: 44px;
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #d5cbb8;
  border-radius: 8px;
  background-color: #fff;
  font: inherit;
  line-height: 1.2;
}

#rental-root .rental-form > input[type="hidden"],
#rental-root .rental-form > datalist {
  display: none;
}

#rental-root .rental-form textarea {
  width: 100%;
  min-height: 4.5rem;
  height: auto;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #d5cbb8;
  border-radius: 8px;
  background-color: #fff;
  font: inherit;
  resize: vertical;
}

#rental-root .rental-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233d4a44' stroke-width='1.5' d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px;
}

#rental-root .rental-form input[type="radio"],
#rental-root .rental-form input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  flex: 0 0 18px;
}

#rental-root .rental-mode {
  border: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: 0;
}

#rental-root .rental-mode--segmented {
  gap: 8px;
}

#rental-root .rental-mode--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#rental-root .rental-mode--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#rental-root .rental-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #e2d8c8;
  border-radius: 10px;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 0;
  text-align: center;
}

#rental-root .rental-form label.rental-choice {
  display: flex;
  align-items: center;
  justify-content: center;
}

#rental-root .rental-mode--segmented .rental-choice {
  position: relative;
}

#rental-root .rental-mode--segmented .rental-choice input {
  position: absolute;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  appearance: none;
}

#rental-root .rental-mode--segmented .rental-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}

#rental-root .rental-choice.is-selected {
  border-color: #165536;
  box-shadow: inset 0 0 0 1px #165536;
  background: color-mix(in srgb, #165536 8%, #fff);
}

#rental-root .rental-page-head {
  margin: 0 0 16px;
}

#rental-root .rental-page-head h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

#rental-root .rental-page-lead {
  margin: 0 0 12px;
  max-width: 40rem;
  color: #3d4a44;
  font-size: 0.95rem;
  line-height: 1.45;
}

#rental-root .rental-page-actions {
  margin: 0 0 8px;
}

#rental-root .rental-card-meta {
  margin: 0 0 4px;
  color: #4a5852;
  font-size: 0.9rem;
}

#rental-root .rental-form-heading {
  grid-column: 1 / -1;
  margin: 20px 0 0;
  font-size: 0.95rem;
  font-weight: 650;
}

#rental-root .rental-form-heading:first-child {
  margin-top: 0;
}

#rental-root .rental-form-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 12px;
  grid-column: 1 / -1;
  min-width: 0;
}

#rental-root .rental-price-preview {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  margin: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #e2d8c8;
  border-radius: 10px;
  background: #f7f3ea;
  font-size: 0.95rem;
  font-weight: 650;
  color: #3d4a44;
  box-sizing: border-box;
}

#rental-root .rental-price-preview[hidden] {
  display: none;
}

#rental-root .rental-outstanding {
  grid-column: 1 / -1;
  margin: 0;
  color: #3d4a44;
  min-height: 1.35em;
}

#rental-root .rental-form-span,
#rental-root .rental-form textarea {
  grid-column: 1 / -1;
}

#rental-root .rental-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  grid-column: 1 / -1;
  margin: 8px 0 0;
  width: 100%;
}

#rental-root .rental-form-actions .primary-action,
#rental-root .rental-form-actions .secondary-action,
#rental-root .rental-form .primary-action,
#rental-root .rental-form .secondary-action {
  width: auto;
  min-width: 8.5rem;
  height: 44px;
  min-height: 44px;
  flex: 0 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

#rental-root .rental-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

#rental-root .rental-toolbar .primary-action,
#rental-root .rental-toolbar .secondary-action {
  width: auto;
  min-width: 8rem;
  min-height: 44px;
  flex: 0 1 auto;
}

#rental-root .rental-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  width: 100%;
}

#rental-root .rental-card-actions .primary-action {
  min-height: 44px;
  min-width: 8.5rem;
  flex: 1 1 9rem;
  max-width: 16rem;
}

#rental-root .rental-card-actions .secondary-action {
  min-height: 44px;
  width: auto;
  min-width: 7rem;
  flex: 0 1 auto;
}

#rental-root .quiet-action {
  min-height: 36px;
  width: auto;
  min-width: 0;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  color: #5c6862;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#rental-root .rental-form-actions__reason {
  flex: 1 1 100%;
}

#rental-root .rental-req,
#rental-root .rental-opt {
  font-style: normal;
  font-weight: 600;
  font-size: 0.8em;
}

#rental-root .rental-req {
  color: #165536;
}

#rental-root .rental-opt {
  color: #64716b;
}

#rental-root .rental-find {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

#rental-root .rental-work-split {
  display: grid;
  gap: 0;
  min-width: 0;
}

#rental-root .rental-file-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#rental-root .rental-file-status,
#rental-root [data-rental-file-name] {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #64716b;
  font-size: 0.9rem;
}

#rental-root .data-tools-section {
  min-width: 0;
}

#rental-root .data-tools-section .rental-hint {
  margin: 0;
}

#rental-root .rental-restore-facts {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}

#rental-root .rental-restore-facts div {
  display: grid;
  grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

#rental-root .rental-restore-facts dt {
  color: #64716b;
  font-weight: 600;
}

#rental-root .rental-restore-facts dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

#rental-root .rental-restore-counts-label {
  margin: 8px 0 4px;
  font-weight: 700;
}

#rental-root .rental-restore-counts {
  display: grid;
  gap: 4px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

#rental-root .rental-restore-counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

#rental-root .rental-restore-contents {
  margin: 8px 0;
}

#rental-root .rental-import-preview {
  min-width: 0;
}

#rental-root .data-tools-section .import-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#rental-root .data-tools-section .import-export-actions .secondary-action,
#rental-root .data-tools-section .import-export-actions .compact-action {
  min-width: 0;
  max-width: 100%;
}

#rental-root .file-action input,
#rental-root input[data-rental-import-file],
#rental-root input[data-rental-restore-file] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#rental-root .rental-card-list {
  display: grid;
  gap: 12px;
}

#rental-root .rental-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  border: 1px solid #e2d8c8;
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 0;
}

#rental-root .rental-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  overflow-wrap: anywhere;
}

#rental-root .rental-card-meta,
#rental-root .rental-card-status {
  margin: 4px 0 0;
  min-height: 1.35em;
  line-height: 1.35;
  color: #4a5852;
  font-size: 0.9rem;
}

#rental-root .rental-card-money {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 2px;
  min-width: 0;
  min-height: 2.8em;
  margin: 8px 0 0;
}

#rental-root .rental-card-money__hire,
#rental-root .rental-card-money__deposit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
  min-width: 0;
  max-width: 100%;
}

#rental-root .rental-card .rental-money {
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

#rental-root .rental-rate-unit {
  min-width: 0;
}

#rental-root .rental-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

#rental-root .rental-actions button {
  min-height: 44px;
  width: auto;
  min-width: 8.5rem;
  flex: 1 1 8.5rem;
  max-width: 100%;
  box-sizing: border-box;
}

#rental-root .rental-unit-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
  min-width: 0;
  min-height: 44px;
}

#rental-root .rental-unit-pick input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  flex: 0 0 18px;
}

#rental-root .rental-unit-pick__id {
  min-width: 0;
  overflow-wrap: anywhere;
}

#rental-root .rental-table-wrap {
  overflow-x: auto;
}

#rental-root .rental-table {
  width: 100%;
  border-collapse: collapse;
}

#rental-root .rental-table th,
#rental-root .rental-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #e2d8c8;
}

#rental-root .rental-table td {
  overflow-wrap: anywhere;
}

#rental-root .rental-status[data-tone="error"] {
  color: #a93226;
}

#rental-root .rental-results {
  display: grid;
  gap: 8px;
}

#rental-root .rental-results div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

#rental-root .rental-results dt {
  min-width: 0;
  overflow-wrap: anywhere;
}

#rental-root .rental-results dd {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#rental-root .rental-results--core {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

#rental-root .rental-results--core > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 5.5rem;
  padding: 12px;
  border: 1px solid #e2d8c8;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

#rental-root .rental-results--core dt {
  min-height: 2.6em;
  line-height: 1.3;
}

#rental-root .rental-results--core dd {
  width: 100%;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 700;
}

#rental-root .rental-form--nested {
  margin-top: 10px;
  grid-template-columns: minmax(0, 1fr);
}

#rental-root .rental-alloc {
  display: grid;
  gap: 4px;
}

#rental-root .rental-form small {
  color: #64716b;
}

#rental-root .rental-voucher {
  background: #fff;
  border: 1px solid #c9a227;
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 16px;
}

#rental-root .rental-more {
  grid-column: 1 / -1;
}

#rental-root .rental-period {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 10px;
  font-weight: 600;
}

#rental-root .rental-period span {
  white-space: nowrap;
}

@media (max-width: 899px) {
  #rental-root .rental-form,
  #rental-root .rental-form-group {
    grid-template-columns: minmax(0, 1fr);
  }

  #rental-root .rental-form-span,
  #rental-root .rental-form textarea,
  #rental-root .rental-form-group,
  #rental-root .rental-mode,
  #rental-root .rental-form-heading,
  #rental-root .rental-price-preview,
  #rental-root .rental-outstanding,
  #rental-root .rental-form-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  #rental-root .data-tools-section .import-export-actions,
  #rental-root .rental-file-pick,
  #rental-root .rental-currency-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  #rental-root .data-tools-section .import-export-actions .secondary-action,
  #rental-root .data-tools-section .import-export-actions .compact-action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  #rental-root .rental-restore-facts div {
    grid-template-columns: minmax(0, 1fr);
  }

  #rental-root .rental-form-actions .primary-action,
  #rental-root .rental-form-actions .secondary-action {
    width: 100%;
    max-width: none;
    flex: 1 1 100%;
  }

  #rental-root .rental-mode--triple .rental-choice {
    height: auto;
    min-height: 44px;
    padding: 8px 6px;
  }

  #rental-root .rental-work-split.is-task-open .rental-work-list {
    display: none;
  }

  #rental-root .rental-table-wrap {
    overflow-x: visible;
  }

  #rental-root .rental-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  #rental-root .rental-table,
  #rental-root .rental-table tbody,
  #rental-root .rental-table tr,
  #rental-root .rental-table td {
    display: block;
    width: 100%;
  }

  #rental-root .rental-table tr {
    border: 1px solid #e2d8c8;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px;
  }

  #rental-root .rental-table td {
    display: grid;
    grid-template-columns: minmax(7rem, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 6px 0;
  }

  #rental-root .rental-table td::before {
    content: attr(data-label);
    font-weight: 600;
  }

  #rental-root .rental-table-empty td {
    display: block;
  }

  #rental-root .rental-table-empty td::before {
    content: none;
  }
}

@media (min-width: 900px) {
  #rental-root .rental-form,
  #rental-root .rental-form-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  #rental-root .rental-field__label {
    min-height: calc(1.3em * 2);
  }

  #rental-root .rental-field__hint {
    min-height: 1.35em;
  }

  @supports (grid-template-rows: subgrid) {
    #rental-root .rental-form > .rental-field,
    #rental-root .rental-form-group > .rental-field {
      grid-template-rows: subgrid;
      grid-row: span 3;
      align-content: start;
    }
  }

  #rental-root .rental-form-actions,
  #rental-root .rental-mode,
  #rental-root .rental-more,
  #rental-root .rental-form-heading,
  #rental-root .rental-form-group,
  #rental-root .rental-price-preview,
  #rental-root .rental-outstanding,
  #rental-root .rental-form-span {
    grid-column: 1 / -1;
  }

  #rental-root .rental-work-split.is-task-open {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  #rental-root .rental-work-split.is-task-open .rental-work-list {
    display: none;
  }

  #rental-root .rental-task {
    width: 100%;
    max-width: none;
  }

  #rental-root .rental-find {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 12rem);
    align-items: end;
  }

  #rental-root .rental-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  #rental-root .rental-work-split.is-task-open .rental-card-list {
    grid-template-columns: minmax(0, 1fr);
  }

  #rental-root .rental-card-actions {
    flex-wrap: nowrap;
  }

  #rental-root .rental-card-actions .primary-action,
  #rental-root .rental-card-actions .secondary-action {
    flex: 1 1 0;
    max-width: none;
    min-width: 0;
  }

  #rental-root .rental-results--core {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media print {
  #rental-root header,
  #rental-root .rental-workspace-switch,
  #rental-root .rental-panel,
  #rental-root .data-tools-card,
  #rental-root .site-footer,
  #rental-root [data-industry-platform-nav] {
    display: none !important;
  }

  #rental-root .rental-voucher {
    border: 0;
  }
}
