#customerCommercialView {
  grid-template-columns: minmax(0, 1fr);
}
.cc-workspace {
  --cc-ink: #203c50;
  --cc-line: #d7e4eb;
  --cc-accent: #147eaa;
  width: 100%;
  min-width: 0;
  color: var(--cc-ink);
  font-family: inherit;
}
.cc-workspace * {
  box-sizing: border-box;
}
.cc-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 12px 0 22px;
}
.cc-heading span {
  color: #577e91;
  letter-spacing: 2px;
  font-size: 11px;
}
.cc-heading h1 {
  font-size: 26px;
  margin: 8px 0 0;
}
.cc-heading p,
.cc-note {
  color: #587284;
  font-size: 13px;
  line-height: 1.7;
}
.cc-preview {
  background: #fff4d7;
  color: #70572a;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 12px;
}
.cc-message {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cc-message.cc-error {
  color: #a43c2b;
  background: #fff3ef;
  padding: 14px;
  border-radius: 8px;
}
.cc-tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  border-bottom: 1px solid var(--cc-line);
}
.cc-workspace button {
  padding: 10px 14px;
  border: 1px solid #b9d0de;
  background: white;
  color: #315e74;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cc-workspace button:hover {
  background: #edf7fb;
}
.cc-workspace button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.cc-tabs button {
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  padding: 15px 18px;
}
.cc-tabs [aria-current="page"] {
  color: var(--cc-accent);
  border-bottom: 3px solid var(--cc-accent);
  font-weight: 700;
}
.cc-body {
  background: #fff;
  border: 1px solid var(--cc-line);
  border-radius: 0 0 12px 12px;
  padding: 24px;
}
.cc-workspace h2 {
  font-size: 19px;
  margin: 8px 0 20px;
}
.cc-workspace h3 {
  font-size: 15px;
  margin: 0 0 17px;
}
.cc-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cc-workspace form {
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}
.cc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.cc-workspace label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #435e70;
  min-width: 0;
}
.cc-workspace input,
.cc-workspace select,
.cc-workspace textarea {
  min-width: 0;
  width: 100%;
  padding: 10px;
  border: 1px solid #c0d4e0;
  border-radius: 6px;
  background: white;
  color: #203c50;
  font: inherit;
  font-size: 13px;
}
.cc-workspace textarea {
  min-height: 74px;
  resize: vertical;
}
.cc-workspace :focus-visible {
  outline: 2px solid #1685b4;
  outline-offset: 3px;
}
.cc-workspace .cc-primary {
  background: var(--cc-accent);
  border-color: var(--cc-accent);
  color: white;
}
.cc-workspace .cc-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1/-1;
  border: 1px solid var(--cc-line);
  padding: 16px;
  border-radius: 8px;
  min-width: 0;
}
.cc-line legend {
  color: #49758c;
  font-size: 12px;
  padding: 0 5px;
}
.cc-table-scroll {
  overflow-x: auto;
  margin: 18px 0;
}
.cc-workspace table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cc-workspace th {
  background: #f0f6f9;
  text-align: left;
  color: #5e7988;
  padding: 13px;
  font-weight: 600;
}
.cc-workspace td {
  padding: 14px 13px;
  border-bottom: 1px solid var(--cc-line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.cc-workspace small {
  display: block;
  color: #708896;
  margin: 7px 0;
  font-size: 11px;
}
.cc-workspace td button {
  margin-top: 6px;
}
.cc-workspace td form {
  padding: 10px;
  min-width: 170px;
}
.cc-workspace td .cc-fields {
  grid-template-columns: 1fr;
}
.cc-details {
  border: 1px solid var(--cc-line);
  border-radius: 8px;
  padding: 16px;
  margin: 18px 0;
}
.cc-details summary {
  cursor: pointer;
  font-size: 13px;
  color: #3e697d;
}
.cc-details p {
  font-size: 12px;
  line-height: 1.7;
}
.cc-settings {
  background: #f1f7f9;
}
.cc-empty {
  padding: 22px;
  background: #f5f8fa;
  color: #708a97;
  font-size: 13px;
}
.cc-note {
  background: #f0f7fa;
  border-left: 3px solid #8ac0d7;
  padding: 14px 16px;
  margin: 18px 0;
}
@media (max-width: 1000px) {
  .cc-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cc-workspace .cc-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .cc-heading {
    display: block;
  }
  .cc-heading h1 {
    font-size: 23px;
  }
  .cc-body {
    padding: 16px 12px;
  }
  .cc-fields,
  .cc-workspace .cc-line {
    grid-template-columns: 1fr;
  }
  .cc-workspace form {
    padding: 14px 12px;
  }
  .cc-section-head,
  .cc-message {
    align-items: start;
  }
  .cc-workspace td,
  .cc-workspace th {
    padding: 10px 8px;
    min-width: 90px;
  }
  .cc-workspace table {
    min-width: 460px;
  }
  .cc-tabs button {
    padding: 13px 12px;
  }
}
@media (max-width: 1100px) {
  body:not(.sidebar-open)
    .app-shell:has(#customerCommercialView.active)
    .sidebar {
    visibility: hidden;
    pointer-events: none;
  }
}

/* Product pricing stays compact; date/version controls remain available. */
.cc-price-dates { grid-column: 1 / -1; order: 2; }
.cc-price-dates summary { cursor: pointer; font-size: 12px; color: #435e70; }
.cc-price-dates .cc-fields { margin: 12px 0 0; }
@media (min-width: 1100px) {
  .cc-workspace form.cc-yogurt-price-form { padding: 16px; }
  .cc-workspace .cc-yogurt-price-form > .cc-fields { display: flex; gap: 12px; flex-wrap: wrap; }
  .cc-workspace .cc-yogurt-price-form > .cc-fields > label { flex: 1 1 170px; max-width: 260px; }
  .cc-workspace .cc-yogurt-price-form > .cc-fields > label:has([name="unitPrice"]) { flex: 0 1 130px; }
  .cc-workspace .cc-yogurt-price-form .cc-price-dates { flex-basis: 100%; }
}

.cc-bulk-customer { max-width: 320px; }
.cc-workspace .cc-bulk-form { border: 0; padding: 0; margin-top: 16px; }
.cc-bulk-table { margin: 16px 0; }
.cc-workspace .cc-bulk-table td { padding: 8px 12px; vertical-align: middle; }
.cc-bulk-table th:last-child { width: 170px; }
.cc-bulk-table td label { font-size: 0; gap: 0; }
.cc-bulk-table input { max-width: 150px; }
.cc-bulk-save { position: sticky; bottom: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 0; background: white; border-top: 1px solid var(--cc-line); }
.cc-bulk-save span { font-size: 12px; color: #587284; }
@media (max-width: 600px) {
  .cc-workspace .cc-bulk-table table { min-width: 0; }
  .cc-bulk-table thead { display: none; }
  .cc-bulk-table tbody, .cc-bulk-table tr, .cc-bulk-table td { display: block; }
  .cc-bulk-table tr { border: 1px solid var(--cc-line); border-radius: 8px; margin-bottom: 12px; padding: 6px; }
  .cc-workspace .cc-bulk-table td { min-width: 0; border: 0; padding: 6px; }
  .cc-bulk-table td::before { content: attr(data-label); display: block; font-size: 11px; color: #587284; margin-bottom: 4px; }
  .cc-bulk-table input { max-width: 100%; }
  .cc-bulk-save { gap: 8px; }
}

/* Customer pricing selection and compact business rows. */
.cc-bulk-tools { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:12px 0; }
.cc-bulk-tools label { width:170px; }
.cc-bulk-tools span { align-self:center; font-size:12px; }
.cc-workspace .cc-check-cell { width:42px; min-width:42px; padding:6px; }
.cc-workspace .cc-check-cell input { width:18px; height:18px; min-height:18px; padding:0; }
.cc-price-history { margin:20px 0; }
.cc-price-history h3 { margin:16px 0 8px; }
.cc-workspace .cc-price-history td { padding:7px 10px; vertical-align:middle; }
.cc-workspace .cc-price-history button { padding:6px 10px; white-space:nowrap; }
.cc-order-date-note { grid-column:1 / -1; font-size:12px; color:#88601b; }
.cc-order-date-note button { margin-left:10px; }
@media(min-width:1100px) {
  .cc-workspace .cc-return-price-form { display:grid; grid-template-columns:minmax(125px,1fr) minmax(125px,1fr) 90px 135px 135px minmax(140px,1fr) auto; gap:10px; align-items:end; padding:16px; }
  .cc-return-price-form h3 { grid-column:1 / -1; margin:0 0 4px; }
  .cc-return-price-form > .cc-fields { display:contents; }
  .cc-workspace .cc-return-price-form > button { margin:0; height:42px; }
  .cc-workspace .cc-order-form { padding:16px; }
  .cc-workspace .cc-order-form > .cc-fields { display:grid; grid-template-columns:minmax(130px,1fr) minmax(160px,1fr) 145px minmax(180px,1.5fr); gap:10px; }
  .cc-order-form textarea { height:42px; min-height:42px; resize:vertical; }
  .cc-workspace .cc-order-line { grid-column:1 / -1; border:0; border-top:1px solid var(--cc-line); border-radius:0; padding:10px 0; margin:0; display:grid; grid-template-columns:minmax(190px,2fr) minmax(140px,1fr) 100px minmax(170px,1.3fr) 90px; gap:10px; align-items:end; }
  .cc-order-line legend { font-size:11px; padding:0 5px 0 0; }
  .cc-order-line .cc-price-status { grid-column:1 / -1; grid-row:2; margin:0; }
  .cc-order-line > button { grid-column:5; grid-row:1; padding:10px 6px; height:42px; }
}
@media(max-width:600px) {
  .cc-bulk-tools label { flex:1 1 150px; }
  .cc-workspace .cc-bulk-table .cc-check-cell { width:auto; display:flex; justify-content:flex-end; }
  .cc-bulk-table .cc-check-cell::before { content:none; }
}

.cc-order-columns { display:none; }
@media(min-width:1100px) {
 .cc-order-columns { display:grid; grid-column:1 / -1; grid-template-columns:minmax(190px,2fr) minmax(140px,1fr) 100px minmax(170px,1.3fr) 90px; gap:10px; font-size:12px; color:#587284; padding-top:8px; }
 .cc-workspace .cc-order-line { padding:6px 0; }
 .cc-order-line legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .cc-workspace .cc-order-line > label { font-size:0; gap:0; }
}

/* Driver return: one fixed bucket type, durable photo and small quantity/date fields. */
.cc-workspace .cc-driver-return-form .cc-fixed-container { grid-column:1 / -1; margin:0; font-weight:600; }
.cc-workspace .cc-driver-return-form .cc-return-photo { grid-column:1 / -1; }
.cc-workspace .cc-return-photo small { font-size:12px; color:#587284; }
.cc-workspace .cc-return-photo input { min-width:0; width:100%; box-sizing:border-box; }
.cc-workspace .cc-config-products { grid-column:1 / -1; max-height:300px; overflow:auto; border:1px solid var(--cc-line); border-radius:8px; }
.cc-workspace .cc-config-product { display:flex; flex-direction:row; align-items:center; gap:10px; padding:8px; }
.cc-workspace .cc-config-product input { width:18px; height:18px; min-height:18px; flex:none; }
.cc-config-product small { display:block; font-size:11px; overflow-wrap:anywhere; color:#587284; }
@media(min-width:700px) {
 .cc-workspace .cc-driver-return-form > .cc-fields { grid-template-columns:150px 170px minmax(180px,1fr); }
 .cc-driver-return-form textarea { min-height:42px; height:42px; }
}
