/* Shared business workspace; terminal layout and controls keep their own sizing. */
:root {
  --lx-side-width: 280px;
  --lx-side-ink: #405571;
  --lx-side-accent: #0d263e;
}
#workspace {
  color: #102b43;
}
#workspace .main {
  background: #f6f8fc;
}
#workspace .main > main {
  padding: 28px 30px;
}
#workspace .lx-sidebar {
  padding: 0 12px 16px;
  border-color: #dce5f0;
}
#workspace .lx-sidebar-brand {
  padding: 22px 8px;
  margin-bottom: 8px;
}
#workspace .lx-sidebar-caption {
  color: #6e8097;
  font-size: 10px;
  margin: 12px 10px;
}
#workspace .lx-logo-title {
  color: #173652;
}
#workspace .lx-menu-btn {
  font-size: 14px;
  min-height: 45px;
  border-radius: 10px;
}
#workspace .lx-side-icon {
  width: 20px;
  height: 20px;
}
#workspace .lx-menu-item.active > .lx-menu-btn {
  background: #e0eaf5;
  color: #102b43;
}
#workspace .lx-menu-item.active > .lx-menu-btn .lx-side-icon {
  color: #102b43;
}
#workspace .lx-sub-menu {
  margin-left: 20px;
  border-color: #e0e8f1;
}
#workspace .lx-sub-menu button {
  font-size: 13px;
  min-height: 40px;
  border-radius: 8px;
}
#workspace .lx-sub-menu button[aria-current="page"] {
  color: #102b43;
  background: #e0eaf5;
}
#workspace .lx-sidebar-footer {
  font-size: 11px;
  color: #405571;
  border-color: #dce5f0;
}
#workspace .lx-sidebar-footer small {
  font-size: 10px;
}
#workspace .lx-nav-header {
  border-color: #dce5f0;
}
#content h1 {
  color: #102b43;
  letter-spacing: -0.7px;
  font-size: 27px;
  line-height: 1.25;
}
#content h2 {
  color: #102b43;
}
#content > section:not(.terminal-counter) p {
  line-height: 1.6;
}
#content > section:not(.terminal-counter) > p {
  color: #607693;
}
#content .card {
  border-color: #dce5f0;
  border-radius: 15px;
  box-shadow: 0 1px 2px #17365206;
}
#content
  > section:not(.terminal-counter)
  button:not(.terminal-product):not([data-tender]) {
  border-radius: 9px;
}
#content > section:not(.terminal-counter) button[type="submit"],
#content > section:not(.terminal-counter) .business-heading > button {
  background-color: #0d263e;
  color: #fff;
}
#content
  > section:not(.terminal-counter)
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
    [type="color"]
  ):not([type="hidden"]),
#content > section:not(.terminal-counter) select {
  border-color: #d1dfee;
  border-radius: 9px;
  min-height: 42px;
  box-shadow: 0 1px 2px #17365208;
}
#content > section:not(.terminal-counter) table th {
  background: #fff;
  color: #607693;
  font-size: 11px;
  font-weight: 500;
  padding: 16px 12px;
  border-bottom: 1px solid #dce5f0;
}
#content > section:not(.terminal-counter) table td {
  padding: 15px 12px;
  font-size: 13px;
  border-bottom: 1px solid #edf1f7;
}
.business-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.business-heading h1 {
  margin: 0 0 8px;
}
.business-dashboard .business-heading h1 {
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: 0.04em !important;
  color: #607693 !important;
}
.business-heading h2 {
  font-size: 27px;
  letter-spacing: -0.6px;
  margin: 0 0 8px;
}
.business-heading p {
  color: #607693;
  margin: 0;
  font-size: 14px;
}
.business-period {
  display: flex;
  background: #fff;
  border: 1px solid #dce5f0;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.business-period button {
  background: transparent;
  color: #607693;
  border: 0;
  border-radius: 0 !important;
  padding: 12px 15px;
  white-space: nowrap;
}
.business-period button[aria-pressed="true"] {
  background: #0d263e;
  color: #fff;
}
.business-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.business-metric {
  background: #fff;
  padding: 20px;
  border: 1px solid #dce5f0;
  border-radius: 15px;
  min-height: 155px;
}
.business-metric p {
  font-size: 11px;
  color: #607693;
  margin: 0 0 22px;
  letter-spacing: 0.025em;
}
.business-metric strong {
  display: block;
  font-size: clamp(21px, 2vw, 29px);
  font-weight: 600;
  letter-spacing: -0.6px;
  overflow-wrap: anywhere;
}
.business-metric small {
  display: block;
  color: #6b7f98;
  font-size: 11px;
  margin-top: 12px;
  line-height: 1.5;
}
.business-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) minmax(260px, 1fr);
  gap: 20px;
  align-items: start;
}
.business-trend {
  min-height: 440px;
  padding: 24px;
}
.business-trend h2 {
  font-size: 20px;
}
.business-quick {
  display: grid;
  gap: 16px;
}
.business-quick .card {
  padding: 20px;
}
.business-quick h2 {
  font-size: 17px;
  margin: 0 0 10px;
}
.business-quick p {
  font-size: 13px;
  color: #607693;
}
.business-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.business-shortcuts button {
  padding: 10px;
  font-size: 12px;
}
.business-scope {
  padding: 12px 14px;
  background: #edf3fa;
  border-radius: 10px;
  color: #4c6380;
  font-size: 12px;
}
.business-empty {
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
  color: #607693;
}
.business-empty > span {
  background: #e0eaf5;
  color: #102b43;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 25px;
}
.business-empty h3 {
  color: #102b43;
  font-size: 17px;
  font-weight: 550;
  margin: 20px 0 6px;
}
.business-empty p {
  max-width: 470px;
  font-size: 13px;
  margin: 0;
}
.business-bars {
  height: 240px;
  display: flex;
  gap: 8px;
  padding: 20px 0 30px;
  border-bottom: 1px solid #dce5f0;
  margin-bottom: 15px;
  overflow-x: auto;
}
.business-bars > div {
  flex: 1;
  min-width: 30px;
  position: relative;
  display: flex;
  align-items: end;
  justify-content: center;
}
.business-bars span {
  background: #2e77af;
  width: 70%;
  border-radius: 5px 5px 0 0;
  min-height: 2px;
}
.business-bars small {
  position: absolute;
  top: calc(100% + 8px);
  font-size: 10px;
  color: #607693;
}
.business-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.business-feature-grid .card {
  padding: 20px;
}
.business-feature-grid h2 {
  font-size: 17px;
  margin: 16px 0 8px;
}
.business-feature-grid p {
  color: #607693;
  font-size: 13px;
}
.business-status {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 15px;
  background: #edf1f7;
  color: #607693;
  font-size: 11px;
}
.business-status.available {
  background: #dcf1e9;
  color: #167458;
}
.business-filter {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.business-filter label {
  width: min(100%, 400px);
  font-size: 12px;
  color: #607693;
}
.business-data-card {
  border: 1px solid #dce5f0;
  border-radius: 15px;
  background: #fff;
  overflow: auto;
}
.business-data-card table {
  width: 100%;
  border-collapse: collapse;
}
.business-data-card td {
  vertical-align: middle;
}
.business-data-card td button {
  font-size: 11px;
  padding: 8px;
  margin: 3px;
}
.business-cell-note {
  display: block;
  margin-top: 5px;
  color: #607693;
  font-size: 10px;
}
.business-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
  color: #607693;
}
.business-customer-create {
  margin: 20px 0;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.business-customer-create > summary {
  cursor: pointer;
  color: #102b43;
  font-weight: 600;
}
.business-customer-create form {
  max-width: 700px;
}
#content .settings-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
#content .settings-row {
  border: 1px solid #dce5f0;
  border-radius: 15px;
  padding: 24px;
  background: #fff;
  min-height: 130px;
}
#content .settings-row strong {
  color: #102b43;
  font-size: 17px;
}
#content .settings-row small {
  font-size: 13px;
  color: #607693;
  line-height: 1.6;
  margin-top: 8px;
}
@media (max-width: 1200px) {
  :root {
    --lx-side-width: 245px;
  }
  .business-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .business-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .business-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  #workspace .main > main {
    padding: 18px 14px;
  }
  .business-heading {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }
  .business-heading h2 {
    font-size: 23px;
  }
  .business-metrics {
    gap: 10px;
  }
  .business-metric {
    padding: 14px;
    min-height: 145px;
  }
  .business-metric strong {
    font-size: 21px;
  }
  .business-quick,
  .business-feature-grid,
  #content .settings-index {
    grid-template-columns: minmax(0, 1fr);
  }
  .business-period {
    width: 100%;
  }
  .business-period button {
    flex: 1;
    padding: 10px;
  }
  .business-trend {
    padding: 16px;
  }
  .business-shortcuts {
    grid-template-columns: 1fr 1fr;
  }
}
/* Keep the full-width selling terminal's compact viewport rules. */
#workspace:has(.terminal-counter) .main > main {
  padding: 8px;
}
.business-bars > div {
  height: 100%;
}
#workspace .lx-sidebar-footer > div {
  min-width: 0;
}
#workspace .lx-sidebar-footer strong,
#workspace .lx-sidebar-footer small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#workspace .lx-sub-menu button[aria-current="page"] {
  box-shadow: none;
}
.business-document-dialog {
  width: min(1050px, 94vw);
  max-height: 90dvh;
  overflow: auto;
}
.business-document-dialog .business-heading h2 {
  font-size: 20px;
}
.business-document-dialog [data-product-options],
[data-customer-options] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.business-document-dialog [data-product-options] button,
[data-customer-options] button {
  padding: 8px 10px;
  font-size: 12px;
}
.business-document-dialog table input {
  width: 100px;
}
.business-document-dialog table select {
  min-width: 100px;
}
.business-document-dialog textarea {
  width: 100%;
  min-height: 70px;
}
#business-documents .business-filter {
  align-items: end;
  flex-wrap: wrap;
}
#business-documents .business-filter label {
  flex: 1 1 180px;
}
#business-documents [data-account-detail] {
  margin-top: 24px;
}
#business-documents details {
  padding: 16px;
  border: 1px solid #dce5f0;
  border-radius: 12px;
  background: white;
}
#business-documents details summary {
  cursor: pointer;
}
@media (max-width: 700px) {
  .business-document-dialog {
    padding: 14px;
  }
}
/* Override legacy mobile edge-to-edge table margins in the business workspace. */
.business-data-card.table-wrap {
  margin: 0;
  width: 100%;
  max-width: 100%;
}
#product-master-form input[type="radio"],
#product-master-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  margin: 0;
  box-shadow: none;
}
#product-master-form label:has(> input[type="radio"]),
#product-master-form label:has(> input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 36px;
}
.customer-create-dialog button[type="submit"] {
  background: #0d263e;
}
.cost-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cost-heading button {
  font-size: 11px;
  padding: 6px 9px;
}
.recipe-cost-dialog {
  width: min(1000px, 94vw);
  max-height: 90dvh;
  overflow: auto;
}
.recipe-cost-dialog [data-cost-results] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.recipe-cost-dialog [data-cost-results] button {
  font-size: 12px;
  padding: 8px 10px;
}
.recipe-cost-dialog table input {
  width: 110px;
}
.recipe-cost-dialog table small {
  display: block;
  color: #607693;
}
.recipe-cost-dialog [data-cost-estimate] {
  padding: 12px;
  background: #edf3fa;
  border-radius: 9px;
}
.catalog-editor-dialog {
  width: min(960px, 94vw);
  max-height: 90dvh;
  overflow: auto;
}
.catalog-editor-dialog form {
  display: grid;
  gap: 16px;
}
.catalog-editor-dialog input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
}
.catalog-editor-dialog label:has(> input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: 9px;
}
.catalog-editor-dialog [data-list-products],
[data-label-products] {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-editor-dialog table input {
  min-width: 110px;
  width: 130px;
}
#master-catalog-meta {
  margin-top: 18px;
}
#master-catalog-meta label {
  min-width: 0;
}
[data-label-selected] {
  margin: 18px 0;
}
[data-label-selected] table input {
  width: 85px;
}
@media (max-width: 600px) {
  .cost-heading {
    flex-wrap: wrap;
  }
  .recipe-cost-dialog,
  .catalog-editor-dialog {
    padding: 16px;
  }
}
.customer-bottles-dialog {
  width: min(1200px, 96vw);
  max-height: 92dvh;
  overflow: auto;
}
.customer-bottles-dialog [data-bottle-products] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.customer-bottles-dialog .card {
  margin-top: 18px;
}
.customer-bottles-dialog small {
  display: block;
  color: #607693;
}
.customer-bottles-dialog [role="alert"] {
  color: #b42318;
}
@media (max-width: 600px) {
  .customer-bottles-dialog {
    padding: 16px;
  }
  .customer-bottles-dialog .business-metrics {
    grid-template-columns: 1fr;
  }
}
.customer-bottles-dialog > .business-heading {
  position: sticky;
  top: -24px;
  z-index: 2;
  background: white;
  padding: 12px 0;
}
.customer-bottles-dialog .business-metric {
  min-height: 100px;
  padding: 16px;
}
@media (max-width: 600px) {
  .customer-bottles-dialog > .business-heading {
    top: -16px;
  }
  .customer-bottles-dialog .business-metric {
    min-height: 80px;
  }
}
.customer-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: -24px;
  z-index: 3;
  background: #fff;
  padding: 12px 0 18px;
  border-bottom: 1px solid #e3ebf5;
  margin-bottom: 20px;
}
.customer-dialog-header h2 {
  margin: 0 0 6px;
  font-size: 24px;
}
.customer-dialog-header p {
  margin: 0;
  color: #60738c;
  font-size: 13px;
}
.customer-create-dialog {
  width: min(780px, 94vw);
  padding: 24px;
  max-height: 92dvh;
}
.customer-create-dialog form {
  display: grid;
  gap: 22px;
}
.customer-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.customer-create-dialog label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #465b78;
}
.customer-create-dialog input {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
}
.customer-wide {
  grid-column: 1 / -1;
}
.optional-label {
  font-weight: 400;
  color: #8290a5;
  font-size: 11px;
}
.customer-create-dialog h3 {
  margin: 0 0 14px;
  font-size: 17px;
}
.customer-delivery-section {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid #e3ebf5;
}
.customer-delivery-section h3 {
  margin: 0;
}
.customer-pin-section {
  border: 1px solid #dce7f5;
  border-radius: 12px;
  background: #f7faff;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.customer-pin-section h3 {
  margin: 0 0 6px;
}
.customer-pin-section p {
  color: #60738c;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.customer-map-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 11px 15px;
  border: 1px solid #bfcfe3;
  border-radius: 8px;
  background: white;
  color: #122c46;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.customer-dialog-footer {
  padding-top: 16px;
  border-top: 1px solid #e3ebf5;
  display: flex;
  justify-content: flex-end;
}
.customer-dialog-footer button {
  background: #0d263e;
}
.customer-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#commerce-customers table small {
  display: block;
  color: #7c8ba0;
  margin-top: 4px;
  font-size: 11px;
}
.customer-muted {
  color: #7c8ba0;
}
.customer-bottles-dialog {
  padding: 24px;
}
.customer-bottles-dialog > .business-heading h2 {
  font-size: 24px;
}
.customer-bottles-dialog [data-bottles-status] {
  color: #475d7b;
  font-size: 16px;
  margin: 0 0 20px;
  font-weight: 600;
}
.bottle-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bottle-stat-cards section {
  background: #f8faff;
  border: 1px solid #e0e9f5;
  border-radius: 12px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.bottle-stat-cards span {
  color: #63758d;
  font-size: 12px;
}
.bottle-stat-cards strong {
  color: #102a43;
  font-size: 25px;
}
.bottle-primary-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0;
}
.bottle-primary-actions button:first-child {
  background: #0d263e;
}
.bottle-action-card {
  border: 1px solid #bcd1ea;
  border-radius: 12px;
  background: #fbfdff;
  padding: 20px;
  margin-bottom: 22px;
}
.bottle-action-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.bottle-action-heading h3 {
  margin: 0 0 6px;
  font-size: 20px;
}
.bottle-action-heading p,
.bottle-action-help {
  color: #64758b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.bottle-action-card form {
  display: grid;
  gap: 16px;
}
.bottle-action-card label {
  display: grid;
  gap: 8px;
  color: #475e7d;
  font-size: 13px;
}
.bottle-action-card input,
.bottle-action-card select {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  margin: 0;
}
.bottle-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
}
.bottle-product-search {
  font-size: 12px;
  color: #667c99;
  border-top: 1px solid #e1eaf5;
  padding-top: 12px;
}
.bottle-product-search summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.bottle-count-preview {
  background: #edf4fc;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.bottle-count-preview > div {
  display: grid;
  gap: 8px;
}
.bottle-count-preview span {
  font-size: 12px;
  color: #607593;
}
.bottle-count-preview strong {
  font-size: 20px;
}
.bottle-form-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #dce7f5;
  padding-top: 16px;
}
.bottle-form-footer button {
  background: #0d263e;
}
.bottle-balance-section,
.bottle-history-section {
  border: 1px solid #e1e9f5;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.bottle-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}
.bottle-section-heading h3,
.bottle-history-section h3 {
  margin: 0;
  font-size: 17px;
}
.bottle-section-heading span {
  color: #7d8ca2;
  font-size: 12px;
}
.bottle-empty-state {
  text-align: center;
  padding: 24px;
  color: #667b96;
}
.bottle-empty-state h4 {
  font-size: 16px;
  color: #243f5f;
  margin: 0 0 8px;
}
.bottle-empty-state p {
  margin: 0;
  font-size: 13px;
}
.bottle-policy-notes {
  color: #7a8ba3;
  font-size: 12px;
  margin: 0 0 22px;
}
.bottle-policy-notes summary {
  cursor: pointer;
}
.bottle-history-section .table-wrap {
  margin-top: 14px;
}
.bottle-history-section th {
  font-size: 10px;
  white-space: nowrap;
}
.bottle-history-section td {
  font-size: 12px;
  vertical-align: top;
}
@media (max-width: 600px) {
  .customer-create-dialog,
  .customer-bottles-dialog {
    padding: 16px;
  }
  .customer-dialog-header {
    top: -16px;
  }
  .customer-contact-grid,
  .bottle-form-grid {
    grid-template-columns: 1fr;
  }
  .customer-wide {
    grid-column: auto;
  }
  .bottle-stat-cards {
    grid-template-columns: 1fr 1fr;
  }
  .bottle-stat-cards section:first-child {
    grid-column: 1 / -1;
  }
  .bottle-stat-cards strong {
    font-size: 21px;
  }
  .bottle-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .bottle-primary-actions button {
    font-size: 12px;
    padding: 12px 8px;
  }
  .bottle-action-card {
    padding: 14px;
  }
  .customer-dialog-footer button,
  .bottle-form-footer button {
    width: 100%;
  }
  .bottle-product-search .business-pagination {
    flex-wrap: wrap;
  }
}
/* Keep dialog headers in the scrollport rather than inside negative padding. */
.customer-create-dialog,
.customer-bottles-dialog {
  box-sizing: border-box;
  padding: 0;
}
.customer-dialog-header,
.customer-bottles-dialog > .business-heading {
  top: 0;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid #e2eaf4;
}
.customer-dialog-header > button,
.customer-bottles-dialog > .business-heading > button {
  margin: 0;
  flex-shrink: 0;
}
.customer-create-dialog > .commerce-body,
.customer-create-dialog > [data-delivery-body] {
  padding: 20px 24px 24px;
}
.customer-create-dialog > .commerce-error,
.customer-create-dialog > [data-delivery-error] {
  padding: 0 24px;
}
.customer-create-dialog > .commerce-error:empty,
.customer-create-dialog > [data-delivery-error]:empty {
  display: none;
}
.customer-bottles-dialog > [data-bottles-status] {
  padding: 18px 24px 0;
  margin: 0 0 18px;
}
.customer-bottles-dialog > [data-bottles-body] {
  padding: 0 24px 24px;
}
@media (max-width: 600px) {
  .customer-dialog-header,
  .customer-bottles-dialog > .business-heading {
    padding: 16px;
  }
  .customer-create-dialog > .commerce-body,
  .customer-create-dialog > [data-delivery-body] {
    padding: 16px;
  }
  .customer-bottles-dialog > [data-bottles-status] {
    padding: 16px 16px 0;
  }
  .customer-bottles-dialog > [data-bottles-body] {
    padding: 0 16px 16px;
  }
}
/* Driver routes and physical bottle custody. */
.driver-trips-page {
  max-width: 1450px;
  margin: auto;
  color: #102b43;
}
.driver-page-heading,
.driver-trip-heading,
.driver-section-heading,
.driver-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
.driver-page-heading {
  margin-bottom: 28px;
}
.driver-page-heading h1 {
  margin: 0 0 8px;
}
.driver-page-heading p,
.driver-trip-heading p {
  color: #61758e;
}
.driver-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.driver-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.driver-trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.driver-trip-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  text-align: left;
  background: #fff !important;
  color: #102b43 !important;
  border: 1px solid #dce5ef !important;
  border-radius: 16px !important;
  padding: 22px !important;
  box-shadow: 0 3px 12px #16324a05;
}
.driver-trip-card:hover {
  border-color: #7b9ac0 !important;
  box-shadow: 0 5px 18px #16324a12;
}
.driver-trip-card strong {
  font-size: 19px;
}
.driver-status {
  display: inline-block;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
  background: #edf1f6;
  color: #54657a;
}
.driver-status[data-status="active"] {
  background: #e4effe;
  color: #285b9b;
}
.driver-status[data-status="completed"],
.driver-status[data-status="closed"] {
  background: #e0f3eb;
  color: #147658;
}
.driver-status[data-status="reconciling"] {
  background: #fff1d6;
  color: #896017;
}
.driver-status[data-status="skipped"],
.driver-status[data-status="cancelled"] {
  background: #f4e9e9;
  color: #985050;
}
.driver-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.driver-metrics section,
.driver-card,
.driver-stop-card,
.driver-fleet-panel,
.driver-activity,
.driver-empty {
  background: white;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  padding: 22px;
}
.driver-metrics section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.driver-metrics span {
  font-size: 12px;
  color: #61758e;
}
.driver-metrics strong {
  font-size: 27px;
}
.driver-card {
  margin: 22px 0;
}
.driver-card h3 {
  margin-top: 0;
}
.driver-card th {
  white-space: nowrap;
}
.driver-trips-page small,
.driver-dialog small {
  display: block;
  color: #61758e;
  margin-top: 5px;
}
.driver-section-heading h3 {
  margin: 0;
}
.driver-section-heading > span {
  font-size: 13px;
  color: #61758e;
}
.driver-help {
  background: #eaf0f7;
  border-radius: 10px;
  padding: 16px;
  line-height: 1.6;
}
.driver-stops {
  margin: 26px 0;
}
.driver-stop-card {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}
.driver-stop-number {
  border-radius: 50%;
  background: #e4edf7;
  color: #24415e;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.driver-stop-body {
  flex: 1;
  min-width: 0;
}
.driver-stop-body h4 {
  margin: 0;
  font-size: 18px;
}
.driver-stop-body p {
  line-height: 1.6;
}
.driver-stop-contact {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.driver-paid {
  font-size: 13px;
  color: #147658;
}
.driver-fleet-panel,
.driver-activity {
  margin-top: 24px;
}
.driver-fleet-panel summary,
.driver-activity summary {
  cursor: pointer;
  font-weight: 700;
}
.driver-fleet-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.driver-fleet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid #e5ebf2;
  padding: 16px 0;
}
.driver-empty {
  grid-column: 1/-1;
  text-align: center;
  color: #61758e;
  padding: 50px 20px;
}
.driver-activity article {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-bottom: 1px solid #e5ebf2;
}
.driver-activity article p {
  flex-basis: 100%;
  margin: 0;
}
.driver-activity article span {
  font-size: 12px;
  color: #61758e;
}
.driver-recovery {
  padding: 20px;
  background: #fff4da;
  border-radius: 12px;
  margin-bottom: 20px;
}
.driver-dialog {
  box-sizing: border-box;
  width: min(1000px, 96vw);
  max-width: 96vw;
  max-height: 92dvh;
  padding: 0 !important;
  overflow: auto;
  color: #102b43;
}
.driver-dialog-heading {
  padding: 20px 26px;
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
  border-bottom: 1px solid #dce5ef;
}
.driver-dialog-heading h2 {
  font-size: 21px;
  margin: 0;
}
.driver-dialog [data-driver-body] {
  padding: 22px 26px;
}
.driver-dialog form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.driver-dialog label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  min-width: 0;
}
.driver-dialog input,
.driver-dialog select,
.driver-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
}
.driver-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.driver-dialog form > button {
  align-self: flex-start;
}
.driver-load-row {
  display: grid;
  grid-template-columns: 1fr 150px auto;
  align-items: end;
  gap: 12px;
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
}
.driver-cash-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
  margin: 14px 0;
}
.driver-checkbox {
  flex-direction: row !important;
  align-items: center;
}
.driver-checkbox input {
  width: 20px;
  min-height: 20px;
}
.driver-quote-total {
  background: #e9f2ed;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.driver-quote-total strong {
  font-size: 25px;
}
.driver-dialog [data-driver-error] {
  color: #a52d35;
  margin: 0 26px 18px;
}
.driver-dialog [data-driver-recovery] {
  padding: 0 26px 20px;
}
.driver-dialog [data-stop-results] {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
}
.driver-dialog .table-wrap {
  overflow-x: auto;
}
.driver-dialog [data-count-product] input {
  min-width: 120px;
}
@media (max-width: 700px) {
  .driver-page-heading,
  .driver-trip-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .driver-metrics {
    grid-template-columns: 1fr;
  }
  .driver-metrics section {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .driver-metrics strong {
    font-size: 22px;
  }
  .driver-form-grid,
  .driver-fleet-columns {
    grid-template-columns: 1fr;
  }
  .driver-cash-row,
  .driver-load-row {
    grid-template-columns: 1fr 1fr;
  }
  .driver-cash-row > label:first-child,
  .driver-load-row > label:first-child {
    grid-column: 1/-1;
  }
  .driver-stop-card {
    padding: 16px;
    gap: 10px;
  }
  .driver-dialog-heading,
  .driver-dialog [data-driver-body] {
    padding: 18px;
  }
  .driver-section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .driver-quote-total {
    align-items: flex-start;
    flex-direction: column;
  }
}
