#customerOemView {
  max-width: 1600px;
  margin: auto;
}
.oem-workspace {
  color: #203b50;
}
.oem-preview {
  background: #fff3d9;
  border: 1px solid #ead09a;
  color: #795914;
  padding: 10px 16px;
  border-radius: 9px;
  margin-bottom: 18px;
  font-size: 13px;
}
.oem-workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin: 8px 0 24px;
}
.oem-eyebrow {
  letter-spacing: 2px;
  color: #538397;
  font-size: 10px;
  font-weight: 750;
}
.oem-workspace h1 {
  font-size: 27px;
  margin: 8px 0;
}
.oem-workspace p {
  line-height: 1.6;
}
.oem-workspace-top p {
  font-size: 13px;
  color: #5c7381;
  margin: 0;
}
.oem-workspace-top p span {
  padding: 0 9px;
}
.oem-top-actions {
  display: flex;
  align-items: end;
  gap: 10px;
}
.oem-order-select {
  max-width: 280px;
}
.oem-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #dbe6eb;
  background: white;
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
}
.oem-stats > div {
  padding: 18px 24px;
  border-right: 1px solid #e4edf1;
}
.oem-stats > div:last-child {
  border: 0;
}
.oem-stats span {
  font-size: 12px;
  color: #59717e;
}
.oem-stats strong {
  display: block;
  font-size: 30px;
  font-weight: 650;
  margin: 9px 0;
}
.oem-stats small {
  font-size: 12px;
  color: #65808e;
  font-weight: 400;
  margin-left: 6px;
}
.oem-stats p {
  font-size: 11px;
  color: #78919e;
  margin: 0;
}
.oem-tabs {
  display: flex;
  gap: 3px;
  border-bottom: 1px solid #d8e5ec;
  overflow-x: auto;
}
.oem-tabs button {
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 14px 17px;
  white-space: nowrap;
  color: #617985;
}
.oem-tabs button.active {
  color: #117caf;
  border-bottom: 3px solid #1689b7;
  font-weight: 700;
}
.oem-message {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 48px;
  color: #567d7a;
}
.oem-message button {
  padding: 5px 9px;
  font-size: 11px;
}
.oem-message.error {
  color: #a23827;
  background: #fff1ec;
  padding: 12px;
  border-radius: 8px;
  margin: 10px 0;
}
.oem-card {
  background: white;
  border: 1px solid #dbe6ec;
  border-radius: 15px;
  padding: 27px 30px;
  box-shadow: 0 3px 8px #15365204;
}
.oem-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}
.oem-card h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
.oem-card h3 {
  font-size: 15px;
  margin: 18px 0 14px;
}
.oem-section-head p {
  color: #6e8591;
  font-size: 12px;
  margin: 0;
}
.oem-chip {
  display: inline-block;
  padding: 7px 10px;
  border-radius: 6px;
  background: #eaf6f5;
  color: #27736c;
  font-size: 11px;
  white-space: nowrap;
}
.oem-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px 22px;
  margin: 16px 0;
}
.oem-workspace label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #425e70;
  font-size: 12px;
  font-weight: 550;
  min-width: 0;
}
.oem-workspace input,
.oem-workspace select,
.oem-workspace textarea {
  background: #fff;
  border: 1px solid #cbdce5;
  border-radius: 7px;
  padding: 10px 11px;
  color: #213d51;
  font-size: 13px;
  min-width: 0;
  width: 100%;
  height: 41px;
  box-sizing: border-box;
}
.oem-workspace textarea {
  height: 74px;
  resize: vertical;
}
.oem-workspace input:focus,
.oem-workspace select:focus,
.oem-workspace textarea:focus {
  outline: 2px solid #68aed0;
  outline-offset: 2px;
}
.oem-workspace input:disabled,
.oem-workspace select:disabled,
.oem-workspace textarea:disabled {
  background: #f4f7f9;
  color: #435f6e;
}
.oem-workspace button {
  font: inherit;
  font-size: 12px;
  background: white;
  border: 1px solid #c9dce5;
  border-radius: 7px;
  padding: 10px 15px;
  cursor: pointer;
  color: #365d73;
}
.oem-workspace button:hover {
  background: #edf6fa;
}
.oem-workspace button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.oem-workspace button.oem-primary {
  background: #1386b4;
  border-color: #1386b4;
  color: white;
}
.oem-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6edf1;
}
.oem-callout {
  padding: 13px 16px;
  background: #eef7fb;
  border-left: 3px solid #79b4ca;
  border-radius: 0 6px 6px 0;
  color: #4e7285;
  font-size: 12px;
  line-height: 1.7;
  margin: 20px 0;
}
.oem-reference {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}
.oem-reference p {
  font-size: 12px;
  color: #6c8391;
}
.oem-upload {
  border: 1px dashed #afc9d7;
  padding: 12px;
  border-radius: 8px;
  max-width: 260px;
}
.oem-upload input {
  border: none;
  padding: 4px;
  height: auto;
  font-size: 10px;
}
.oem-file-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
}
.oem-file-list > span {
  padding: 9px 12px;
  background: #f2f7fa;
  border-radius: 7px;
}
.oem-file-list button {
  border: 0;
  padding: 3px 7px;
}
.oem-file-list a {
  color: #256e95;
}
.oem-muted,
.oem-draft-status {
  color: #7c939f;
  font-size: 12px;
}
.oem-draft-status {
  text-align: right;
  font-size: 11px;
}
.oem-pot {
  border: 1px solid #d7e5ed;
  border-radius: 11px;
  margin: 20px 0;
  padding: 20px;
}
.oem-pot-head {
  display: flex;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid #e5edf1;
  padding-bottom: 18px;
}
.oem-pot-head label {
  flex: 1;
}
.oem-pot-number {
  background: #e8f4f9;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #2084a9;
  font-size: 17px;
}
.oem-ingredient {
  display: grid;
  grid-template-columns: 2fr 0.7fr 1fr auto;
  gap: 15px;
  margin: 16px 0;
  align-items: center;
}
.oem-ingredient small {
  font-size: 10px;
  line-height: 1.5;
  color: #69838f;
  font-weight: 400;
}
.oem-table-scroll {
  overflow-x: auto;
}
.oem-workspace table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.oem-workspace th {
  background: #f2f7fa;
  font-size: 11px;
  color: #6a828f;
  font-weight: 500;
  text-align: left;
  padding: 13px;
}
.oem-workspace td {
  padding: 15px 13px;
  border-bottom: 1px solid #e5edf2;
  vertical-align: top;
}
.oem-workspace td small {
  display: block;
  margin-top: 6px;
  color: #78919e;
}
.oem-cup-balance {
  background: #f1f8f7;
  border-radius: 10px;
  padding: 20px;
  color: #426e69;
}
.oem-cup-balance span {
  font-size: 12px;
}
.oem-cup-balance strong {
  font-size: 30px;
  display: block;
  margin: 8px 0;
}
.oem-cup-balance small {
  font-size: 13px;
  font-weight: 400;
}
.oem-cup-balance p {
  font-size: 12px;
  margin: 0;
}
.oem-workspace form {
  padding: 8px 0 20px;
}
.oem-workspace form > p {
  font-size: 12px;
  color: #768e9a;
}
.oem-details {
  padding: 18px;
  background: #f5f8fa;
  border-radius: 8px;
  margin: 18px 0;
}
.oem-details summary {
  cursor: pointer;
  font-size: 12px;
  color: #47677a;
}
.oem-flow {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: #f0f7fa;
  padding: 15px;
  border-radius: 8px;
  font-size: 12px;
  color: #5b7d8e;
}
.oem-do {
  margin: 24px 0;
  border: 1px solid #d1e0e8;
  border-radius: 10px;
  overflow: hidden;
}
.oem-do header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #edf6fa;
  padding: 24px;
}
.oem-do header span {
  font-size: 10px;
  letter-spacing: 1px;
  color: #548293;
}
.oem-do h2 {
  margin: 7px 0 0;
  font-size: 22px;
}
.oem-do-address,
.oem-do-notes {
  padding: 18px 24px;
}
.oem-do-address p,
.oem-do-notes p {
  margin: 6px 0;
  font-size: 12px;
  color: #64808e;
}
.oem-do footer {
  padding: 15px 24px;
  display: flex;
  gap: 20px;
  align-items: start;
  background: #f7fafb;
}
.oem-do footer form {
  display: flex;
  gap: 12px;
  align-items: end;
  padding: 0;
  flex: 1;
}
.oem-empty {
  text-align: center;
  padding: 40px;
  background: #f5f9fb;
  border-radius: 10px;
  color: #76909f;
}
.oem-empty p {
  font-size: 12px;
}
@media (max-width: 1000px) {
  .oem-workspace-top {
    align-items: start;
    flex-direction: column;
  }
  .oem-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .oem-stats > div {
    padding: 14px;
  }
  .oem-stats strong {
    font-size: 24px;
  }
  .oem-ingredient {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .oem-ingredient > button {
    grid-column: 3;
  }
}
@media (max-width: 600px) {
  .oem-card {
    padding: 20px 15px;
  }
  .oem-stats {
    grid-template-columns: 1fr 1fr;
  }
  .oem-stats > div:nth-child(2) {
    border-right: 0;
  }
  .oem-stats > div {
    border-bottom: 1px solid #e4edf1;
  }
  .oem-stats > div:nth-child(n + 3) {
    border-bottom: 0;
  }
  .oem-stats strong {
    font-size: 25px;
  }
  .oem-form-grid {
    grid-template-columns: 1fr;
  }
  .oem-workspace h1 {
    font-size: 23px;
  }
  .oem-top-actions {
    width: 100%;
    align-items: end;
  }
  .oem-order-select {
    max-width: none;
    flex: 1;
  }
  .oem-section-head {
    align-items: start;
    flex-direction: column;
  }
  .oem-pot {
    padding: 12px;
  }
  .oem-pot-head {
    display: grid;
    grid-template-columns: 36px 1fr;
  }
  .oem-pot-head label:nth-of-type(2) {
    grid-column: 2;
  }
  .oem-pot-head button {
    grid-column: 2;
  }
  .oem-ingredient {
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid #e3edf2;
    padding-bottom: 15px;
  }
  .oem-ingredient > label:first-child {
    grid-column: 1/-1;
  }
  .oem-ingredient > button {
    grid-column: 2;
  }
  .oem-reference {
    align-items: start;
    flex-direction: column;
  }
  .oem-workspace-top {
    gap: 18px;
  }
  .oem-tabs button {
    padding: 13px;
    font-size: 12px;
  }
  .oem-do footer {
    flex-direction: column;
  }
  .oem-do footer form {
    flex-direction: column;
    align-items: start;
  }
  .oem-message {
    align-items: start;
  }
  .oem-flow {
    gap: 8px;
    font-size: 11px;
  }
  .oem-preview {
    font-size: 11px;
  }
  .oem-draft-status {
    text-align: left;
  }
  .oem-do header {
    padding: 16px;
  }
}
#oemPrintDocument {
  display: none;
}
.oem-do-receipt {
  border-top: 1px solid #dbe6ec;
  padding: 0 24px 20px;
  font-size: 12px;
}
.oem-do-receipt p {
  color: #64808e;
  overflow-wrap: anywhere;
}
.oem-do-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  .oem-do-signatures {
    grid-template-columns: 1fr;
  }
}
@media print {
  body.oem-printing > :not(#oemPrintDocument) {
    display: none !important;
  }
  body.oem-printing {
    display: block !important;
    margin: 0;
    padding: 0;
    background: white;
  }
  body.oem-printing #oemPrintDocument {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #172e42;
    font-family: Arial, sans-serif;
  }
  #oemPrintDocument .oem-table-scroll {
    overflow: visible;
  }
  #oemPrintDocument .oem-do-signatures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #oemPrintDocument .oem-do-receipt,
  #oemPrintDocument tr {
    break-inside: avoid;
  }
}
/* The app's .view is a grid; allow this workspace to shrink below its title's intrinsic width. */
#customerOemView {
  grid-template-columns: minmax(0, 1fr);
}
.oem-workspace {
  min-width: 0;
  width: 100%;
}
.oem-workspace-top > div,
.oem-top-actions,
.oem-card,
.oem-pot,
.oem-do {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.oem-workspace h1,
.oem-workspace-top p,
.oem-do-address {
  overflow-wrap: anywhere;
}
.oem-top-actions > button {
  flex-shrink: 0;
}
.oem-workspace td {
  overflow-wrap: anywhere;
}
@media (max-width: 1100px) {
  body:not(.sidebar-open) .app-shell:has(#customerOemView.active) .sidebar {
    visibility: hidden;
    pointer-events: none;
  }
}
.oem-rounding {
  grid-column: 1 / -1;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #edf8f5;
  border-radius: 8px;
  color: #39766a;
  font-size: 12px;
}
.oem-rounding summary {
  cursor: pointer;
  font-weight: 600;
}
.oem-rounding select[multiple] {
  height: 100px;
}
.oem-rounding-link {
  margin-top: -6px;
  margin-bottom: 10px;
}
.oem-rounding-link button {
  border: 0;
  font-size: 10px;
  color: #76919d;
  padding: 3px;
}
