/* Two distinct reservation windows: summary left, editable reservation drawer right. */
.reservation-workspace-open{
  width:min(58vw,920px)!important;
  max-width:920px!important;
  min-width:760px;
}
.reservation-workspace-open .drawer-content{
  padding:18px 20px 28px!important;
  background:var(--panel,#fff);
}
.reservation-workspace-open .rw-editor{padding:0;min-width:0}
.reservation-workspace-open .rw-grid{grid-template-columns:1fr 1fr;gap:14px}

/* Keep the right side visually close to the original reservation drawer. */
.reservation-workspace-open .rw-toolbar{
  position:relative!important;
  top:auto!important;
  z-index:auto;
  display:flex;
  justify-content:flex-end;
  margin:0 0 14px;
  padding:0 0 12px;
  border-bottom:1px solid rgba(120,140,150,.18);
  background:transparent!important;
}
.reservation-workspace-open .rw-toolbar-actions{
  width:100%;display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap;
}
.reservation-workspace-open .rw-toolbar-actions #rwSave{order:10;min-width:145px}
.reservation-workspace-open .rw-toolbar-actions button{min-height:36px}
.reservation-workspace-open .rw-dirty-pill{display:none!important}
.reservation-workspace-open .rw-savebar{display:none!important}

.reservation-workspace-open .rw-section{
  padding:16px 17px;
  border-radius:12px;
  box-shadow:none;
}
.reservation-workspace-open .rw-section.full{grid-column:1/-1}
.reservation-workspace-open .rw-section-head{margin-bottom:9px}
.reservation-workspace-open .rw-section-head .rw-hint{opacity:.82}

/* Customer/Rental/Protection fields look like the old key/value rows; they only look like form controls on hover/focus. */
.reservation-workspace-open .rw-fields{grid-template-columns:1fr;gap:0}
.reservation-workspace-open .rw-field{
  display:grid;
  grid-template-columns:145px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:5px 0;
  border-bottom:1px solid rgba(120,140,150,.11);
}
.reservation-workspace-open .rw-field:last-child{border-bottom:0}
.reservation-workspace-open .rw-field.full{grid-column:auto}
.reservation-workspace-open .rw-field>span{
  font-size:12px;
  text-transform:none;
  letter-spacing:0;
  color:#71867b;
  font-weight:650;
}
.reservation-workspace-open .rw-field input,
.reservation-workspace-open .rw-field select,
.reservation-workspace-open .rw-field textarea{
  min-height:30px;
  padding:5px 7px;
  border:1px solid transparent;
  border-radius:7px;
  background:transparent;
  text-align:right;
  font-weight:750;
}
.reservation-workspace-open .rw-field input:hover,
.reservation-workspace-open .rw-field select:hover,
.reservation-workspace-open .rw-field textarea:hover{
  border-color:rgba(98,133,113,.30);
  background:rgba(109,149,127,.045);
}
.reservation-workspace-open .rw-field input:focus,
.reservation-workspace-open .rw-field select:focus,
.reservation-workspace-open .rw-field textarea:focus{
  text-align:left;
  border-color:#3a8b63;
  background:#fff;
  box-shadow:0 0 0 3px rgba(58,139,99,.10);
}
.reservation-workspace-open .rw-inline-check{
  display:flex!important;
  flex-direction:row!important;
  gap:9px!important;
  justify-content:flex-start;
  border-bottom:1px solid rgba(120,140,150,.11);
}
.reservation-workspace-open .rw-inline-check input{width:auto;min-height:auto}
.reservation-workspace-open .rw-inline-check span{font-size:12px;text-transform:none;letter-spacing:0}
.reservation-workspace-open .rw-change-row{min-width:0}
.reservation-workspace-open .rw-current-vehicle{
  text-align:right;
  padding:6px 8px;
  background:transparent;
  font-weight:750;
}
.reservation-workspace-open .rw-small-btn{padding:7px 10px}

.reservation-workspace-open .rw-driver{
  grid-template-columns:1.15fr 1fr 1fr auto;
  background:rgba(110,130,120,.025);
  padding:9px;
}
.reservation-workspace-open .rw-extra-row{
  grid-template-columns:minmax(170px,1fr) 68px 98px 96px;
  gap:8px;
  padding:4px 0;
  border-bottom:1px solid rgba(120,140,150,.10);
}
.reservation-workspace-open .rw-extra-row:last-child{border-bottom:0}
.reservation-workspace-open .rw-extra-row input{
  min-height:30px;
  padding:5px 7px;
  border:1px solid transparent;
  background:transparent;
}
.reservation-workspace-open .rw-extra-row input:hover{border-color:rgba(98,133,113,.30);background:rgba(109,149,127,.045)}
.reservation-workspace-open .rw-extra-row input:focus{border-color:#3a8b63;background:#fff}
.reservation-workspace-open .rw-tax-row{padding:7px 0}
.reservation-workspace-open .rw-note-composer textarea{min-height:72px}

/* Separate left window. It is not part of the right drawer at all. */
.rw-detached-summary-window{
  position:fixed;
  z-index:46;
  top:18px;
  bottom:18px;
  right:calc(min(58vw,920px) + 18px);
  width:350px;
  overflow:auto;
  border:1px solid rgba(120,140,150,.30);
  border-radius:16px;
  background:#f7faf9;
  box-shadow:0 20px 55px rgba(10,30,22,.24);
}
.rw-detached-summary-window .rw-summary{
  position:static!important;
  top:auto!important;
  max-height:none!important;
  overflow:visible!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
}
.rw-detached-summary-window .rw-summary-card{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  background:transparent!important;
  padding:22px!important;
}
.rw-detached-summary-window .rw-summary-card h3{font-size:19px;margin:7px 0 14px}
.rw-detached-summary-window .rw-line{padding:5px 0}
.rw-detached-summary-window .rw-line strong{max-width:58%;overflow-wrap:anywhere}
.rw-detached-summary-window .rw-invoice-state{margin-top:18px}

html[data-theme="dark"] .rw-detached-summary-window{
  background:#101f25;
  border-color:#2b3e46;
  box-shadow:0 20px 55px rgba(0,0,0,.42);
}
html[data-theme="dark"] .reservation-workspace-open .drawer-content{background:#0f1d23}
html[data-theme="dark"] .reservation-workspace-open .rw-field input:focus,
html[data-theme="dark"] .reservation-workspace-open .rw-field select:focus,
html[data-theme="dark"] .reservation-workspace-open .rw-field textarea:focus,
html[data-theme="dark"] .reservation-workspace-open .rw-extra-row input:focus{background:#172a32;color:#fff}

@media(max-width:1180px){
  .reservation-workspace-open{width:64vw!important;min-width:620px}
  .rw-detached-summary-window{right:calc(64vw + 14px);width:320px}
  .reservation-workspace-open .rw-grid{grid-template-columns:1fr}
}
@media(max-width:980px){
  .reservation-workspace-open{width:100vw!important;max-width:none!important;min-width:0}
  .rw-detached-summary-window{display:none}
  .reservation-workspace-open .rw-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .reservation-workspace-open .rw-field{grid-template-columns:115px minmax(0,1fr)}
  .reservation-workspace-open .rw-extra-row{grid-template-columns:1fr 64px 88px}
  .reservation-workspace-open .rw-extra-total{display:none}
}
