﻿.input-section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
  margin-bottom: 10px;
  border-bottom: 1px solid black;
  padding-bottom: 5px;
  grid-column: span 2;
}

.input-section-subtitle {
  font-size: 16px;
  font-weight: bold;
  margin-top: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid black;
  padding-bottom: 4px;
  grid-column: span 2;
}

/*** Style for required inputs ***/
.add-label-required::after {
  content: " *";
  color: red; /* Optional: Change the color of the asterisk */
}

.input-control img {
  border-radius: 5px;
  width: 50%;
}

.input-control img.img-border {
  border: 1px solid lightgrey;
}
.input-control img.img-90 {
  width: 90%;
}

.input-hidden {
  /*opacity: 0;
  position: absolute;
  pointer-events: none;*/
  display: none !important;
}

.input-grid .input-control
{
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.input-grid .input-control-col-2 { grid-template-columns: repeat(2, 1fr); }
.input-grid .input-control-col-3 { grid-template-columns: repeat(3, 1fr); }
.input-grid .input-control-col-4 { grid-template-columns: repeat(4, 1fr); }
.input-grid .input-control-col-5 { grid-template-columns: repeat(5, 1fr); }
.input-grid .input-control-col-6 { grid-template-columns: repeat(6, 1fr); }
.input-grid .input-control-col-7 { grid-template-columns: repeat(7, 1fr); }
.input-grid .input-control-col-8 { grid-template-columns: repeat(8, 1fr); }

.input-checkbox-container label.highlight:hover span:before {
  box-shadow: inset 0 0 0 0.175em #3498db;
}

.hidden-checkbox {
  display: none !important;
}

.checkbox-indicator {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  background-color: white;
  position: absolute;
  top: -8px;
  right: -8px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-indicator.checked {
  background-color: #3498db;
  border-color: #3498db;
}

.checkmark {
  display: none;
  color: white; 
}

.checkbox-indicator.checked .checkmark {
  display: block;
}

.btn {
  border: 2px solid #3498db;
  color: #3498db;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  outline: none;
}

.btn:hover {
  background-color: #3498db;
  color: white;
  border: 2px solid #3498db;
}

.btn-primary {
  background-color: #3498db !important;
  color: white;
  border: 2px solid #3498db !important;
}

.theme-default {
  --btn-bg: white;
  --btn-color: #3498db;
  --btn-border: #3498db;
}

.container a {
  text-decoration: none;
}

.mt-5 {
  margin-top: 4rem !important;
}

.col-12 {
  width: 100%;
}

.col-md-12 {
  width: 100%;
}

.multiply {
  font-size: 24px;
  color: gray;
}

.option-disabled {
  pointer-events: none;
  opacity: 0.6; /* optional, for visual feedback */
}

.quick-configure-container table {
  width: 100%;
}

.quick-configure-container table th,
.quick-configure-container table td {
  padding: 5px;
  border: 1px solid #ddd;
}

/** Reset Button styles **/
button {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: inherit;
}

button:focus, button:active {
    outline: none;
}

/** Normal Button **/
button.al-button {
    margin: 3.5px;
    padding: 0 20px;
    height: 32px;
    min-width: 84px;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #8a8886;
    border-radius: 2px;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

button.al-button:focus,
button.al-button:active {
    outline-style: solid;
    outline-width: 1px;
    outline-color: rgb(0, 132, 137);
    outline-offset: -3px;
}

button.al-button:hover {
    background: rgb(246, 247, 248);
    border-color: #8a8886;
}

button.al-button span {
    font-family: "Segoe UI Semibold", "Segoe WP Semibold", device-segoe-semibold, "Segoe UI", "Segoe WP", Segoe, Tahoma, Helvetica, Arial, sans-serif !important;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/** Primary Button **/
button.al-button-primary {
    border: 1px solid transparent !important;
    background: rgb(0, 132, 137) !important;
    color: #fff !important;
    box-sizing: border-box;
    border-radius: 2px;
}

button.al-button-primary:focus,
button.al-button-primary:active {
    outline-color: #fff !important;
    outline-offset: -3px !important;
}

button.al-button-primary:hover {
    background: rgb(0, 126, 135) !important;
    border: 1px solid transparent !important;
}

/** Danger Button **/
button.al-button-danger {
    border: 1px solid transparent !important;
    background: #E65E6D !important;
    color: #fff !important;
    box-sizing: border-box;
}

button.al-button-danger:focus,
button.al-button-danger:active {
    outline-color: #fff !important;
    outline-offset: -3px !important;
}

button.al-button-danger:hover {
    background: rgb(201, 85, 98) !important;
    border: 1px solid transparent !important;
}

/** Info Button **/
button.al-button-info {
    border: 1px solid rgb(68, 68, 68);
    box-sizing: border-box;
}

button.al-button-info:focus,
button.al-button-info:active {
    outline-color: rgb(146, 192, 224) !important;
    outline-offset: -3px !important;
}

button.al-button-info:hover {
    background: rgb(230, 242, 250) !important;    
    border: 1px solid #92c0e0;
}

/* Pop Up */
.al-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: none;
  place-items: center;
  z-index: 9999;
  font-family: "Segoe UI", sans-serif;
}

.al-dialog {
  background: #fff;
  border-radius: 4px;
  padding: 20px;
  width: 320px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  text-align: center;
}

.al-dialog p {
  text-align: left;
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #333;
}

button.al-button-popup {
  border: 1px solid transparent !important;
  background: rgb(0, 132, 137) !important;
  color: #fff !important;
  box-sizing: border-box;
  padding: 6px 16px;
  border-radius: 3px;
  cursor: pointer;
}

.al-dialog-footer {
  display: flex;
  justify-content: flex-end;
}

.option-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 6px;
}

.option-link img {
  max-width: 60px;
  margin-bottom: 8px;
}

.option-label {
  display: block;
  font-size: 14px;
}

.wdyw {
  width: 18vw;
  background-image: url("/Files/Images/CPQ/Fireplace/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid #ccc;
  border-radius: 0px !important;
  display: flex;
  align-items: end;
  justify-content: center;
  color: white;
  font-weight: bold;
  padding: 10px;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 -6px 0 -6px;
}

.wdyw label {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.input-table-control {
  width: 100% !important;
  padding: 0 !important;
}

.cpq-table {
  font-size: 0.8rem !important;
}

.th-table {
  font-size: 0.8rem !important;
}

/* .card {
  align-items: center;
  width: 5rem;
}

.card-body {
  align-self: center;
} */

.action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid #e1dfdd;
  border-bottom: 1px solid #e1dfdd;
  background-color: #ffffff;
  font-family: "Segoe UI", sans-serif;
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid transparent;
  background: none;
  color: #323130;
  cursor: pointer;
  border-radius: 4px;
}

.action:hover:not(.disabled) {
  background-color: #d9f0f2;
}

.action .icon {
  font-size: 16px;
  line-height: 1;
}

.icon-only {
  padding: 6px;
}

.bc-list {
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  color: #323130;
  border-top: 1px solid #edebe9;
}

.bc-row {
  display: grid;
  grid-template-columns:
    minmax(24rem, 1fr) /* Description */
    10rem              /* Type */
    6rem               /* Quantity */
    7rem               /* Customize */
    7rem               /* Duplicate */
    7rem;              /* Delete */
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-bottom: 1px solid #edebe9;
  background-color: #ffffff;
}

.bc-row:hover {
  background-color: #bfeff2;
}

.bc-row.selected {
  background-color: #bfeff2;
}

.bc-empty {
  padding: 16px;
  text-align: center;
  color: #a19f9d;
  font-style: italic;
}

.cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell.code button {
  color: #0078d4;
  text-decoration: none;
  font-weight: 500;
}

.cell.code button:hover {
  text-decoration: underline;
}

.cell.desc {
  padding-left: 8px;
}

.cell.type {
  color: #323130;
}

.inputs-container .input-container {
  box-sizing: border-box;
}

/* .inputs-container .input-container.field-width-full {
  display: flex;
  width: 100%;
} */

.inputs-container .input-container.field-width-half {
  display: inline-flex;
  width: calc(50% - 4px);
  margin-right: 0;
  vertical-align: top;
}

.cpq-theme-bold .inputs-container .input-container.field-width-half {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: calc(50% - 4px);
  max-width: calc(50% - 4px);
  box-sizing: border-box;
  vertical-align: top;
}

.cpq-theme-bold .inputs-container .input-container.field-width-half .input-control {
  width: 100%;
}

@media (max-width: 767px) {
  .inputs-container .input-container.field-width-half {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .cpq-theme-bold .inputs-container .input-container.field-width-half {
    display: flex;
    width: 100%;
    max-width: 100%;
  }
}

/* ── CPQ table shell ── */
#cpq-table-wrapper {
    border: 1px solid #e1dfdd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Results table ── */
#results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #323130;
}

#results-table thead tr {
    background-color: #004e52;
    color: #ffffff;
}

#results-table thead th {
    padding: 9px 10px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
}

#results-table tbody tr {
    border-bottom: 1px solid #f0efee;
    transition: background-color 0.1s;
}

#results-table tbody tr:nth-child(even) {
    background-color: #faf9f8;
}

#results-table tbody tr:hover {
    background-color: #e8f4f4;
}

#results-table tbody td {
    padding: 7px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

#results-table tbody td.cpq-currency-cell,
#results-table tbody th.cpq-currency-cell,
#totals-table tbody td.cpq-currency-cell {
  text-align: right;
}

#results-table tbody td.cpq-description-cell {
  white-space: normal;
}

.cpq-description-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cpq-item-no-popup.cpq-description-meta {
  margin-top: 4px;
  padding: 4px 0 0;
  border-top: 1px solid #edebe9;
  color: #605e5c;
  font-size: 11px;
  line-height: 1.35;
}

#results-table tbody td.col-description {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#results-table thead th.col-description {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#results-table tbody tr.total {
    background-color: #f3f2f1;
    font-weight: 600;
    border-top: 2px solid #004e52;
}

#results-table tbody tr.total th {
    padding: 9px 10px;
    border-top: 2px solid #004e52;
    border-bottom: 1px solid #f0efee;
}

/* ── Routes Table ── */
#routes-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #323130;
}

#routes-table thead tr {
    background-color: #004e52;
    color: #ffffff;
}

#routes-table thead th {
    padding: 9px 10px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
    white-space: nowrap;
    border: none;
}

#routes-table tbody tr {
    border-bottom: 1px solid #f0efee;
    transition: background-color 0.1s;
}

#routes-table tbody tr:nth-child(even) {
    background-color: #faf9f8;
}

#routes-table tbody tr:hover {
    background-color: #e8f4f4;
}

#routes-table tbody td {
    padding: 7px 10px;
    vertical-align: middle;
    white-space: nowrap;
}

#routes-table tfoot tr {
    background-color: #f3f2f1;
    font-weight: 600;
}

#routes-table tfoot td {
    padding: 9px 10px;
    border-top: 2px solid #004e52;
    border-bottom: 1px solid #f0efee;
}

/* ── Totals table wrapper ── */
#cpq-totals-wrapper {
    border: 1px solid #e1dfdd;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* ── Totals table ── */
#totals-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #323130;
    margin-bottom: 0;
}

#totals-table thead tr {
    background-color: #004e52;
    color: #ffffff;
}

#totals-table thead th {
    padding: 9px 12px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .03em;
    text-transform: uppercase;
    border: none;
}

#totals-table tbody tr {
    border-bottom: 1px solid #f0efee;
}

#totals-table tbody tr:nth-child(even) {
    background-color: #faf9f8;
}

#totals-table tbody tr:last-child {
    border-bottom: none;
}

#totals-table tbody th {
    padding: 7px 12px;
    color: #605e5c;
    font-weight: 600;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
    width: 65%;
    vertical-align: middle;
    border: none;
}

#totals-table tbody td {
    padding: 7px 12px;
    vertical-align: middle;
    border: none;
}

/* ── Inline inputs ── */
#results-table td input[type="text"],
#results-table td input[type="number"],
#results-table td select,
#totals-table input[type="text"],
#totals-table input[type="number"],
#totals-table select,
.line-discount-amount,
.line-discount-type,
.line-costup-amount,
#total-discount-amount,
#total-discount-type {
    background-color: #ffffff;
    border: 1px solid #c8c6c4;
    border-radius: 2px;
    color: #323130;
    font-size: 12px;
    line-height: 1.2;
    min-height: 28px;
    padding: 3px 6px;
    box-shadow: none;
    transition: border-color 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
}

#results-table td input[type="text"]:focus,
#results-table td input[type="number"]:focus,
#results-table td select:focus,
#totals-table input[type="text"]:focus,
#totals-table input[type="number"]:focus,
#totals-table select:focus,
.line-discount-amount:focus,
.line-discount-type:focus,
.line-costup-amount:focus,
#total-discount-amount:focus,
#total-discount-type:focus {
    border-color: #004e52;
    box-shadow: 0 0 0 1px #004e52;
    outline: none;
}

.line-discount-amount,
.line-costup-amount {
    width: 60px !important;
}

.line-discount-type {
    width: 54px !important;
}



#total-discount-amount {
    min-width: 96px;
}

/* ── Action buttons ── */
#cpq-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 0 4px;
}

.btn.al-button-secondary,
.btn.al-button-primary,
#saveButton,
#quoteSubmitButton,
#documentButton,
#uploadButton,
#projectButton,
#addtocartButton,
#CancelButton {
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    min-height: 32px;
    padding: 6px 16px;
    cursor: pointer;
    transition: background-color 0.12s ease-in-out, border-color 0.12s ease-in-out, box-shadow 0.12s ease-in-out;
}

.btn.al-button-primary,
#saveButton,
#quoteSubmitButton,
#documentButton,
#uploadButton,
#projectButton,
#addtocartButton {
    background-color: #004e52;
    border: 1px solid #004e52;
    color: #ffffff;
    box-shadow: none;
}

.btn.al-button-primary:hover,
#saveButton:hover,
#quoteSubmitButton:hover,
#documentButton:hover,
#uploadButton:hover,
#projectButton:hover,
#addtocartButton:hover {
    background-color: #003b3e;
    border-color: #003b3e;
    color: #ffffff;
}

.btn.al-button-primary:active,
#saveButton:active,
#quoteSubmitButton:active,
#documentButton:active,
#uploadButton:active,
#projectButton:active,
#addtocartButton:active {
    background-color: #002e30;
    border-color: #002e30;
}

.btn.al-button-secondary,
#CancelButton {
    background-color: #ffffff;
    border: 1px solid #8a8886;
    color: #323130;
}

.btn.al-button-secondary:hover,
#CancelButton:hover {
    background-color: #f3f2f1;
    border-color: #605e5c;
}

.btn.al-button-secondary:focus,
.btn.al-button-primary:focus,
#saveButton:focus,
#quoteSubmitButton:focus,
#documentButton:focus,
#uploadButton:focus,
#projectButton:focus,
#addtocartButton:focus,
#CancelButton:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #004e52;
}

.cpq-bc-shell {
  --bc-bg: #f4f6fb;
  --bc-surface: #ffffff;
  --bc-border: #dde3ed;
  --bc-row: #fcfdff;
  --bc-row-soft: #f6f9ff;
  --bc-row-hover: #edf4ff;
  --bc-row-selected: #dfeeff;
  --bc-text: #1a2433;
  --bc-muted: #5a6b85;
  --bc-primary: #0066b8;
  --bc-primary-strong: #004a8b;
  --bc-danger: #c0392b;
  --bc-shadow: 0 1px 2px rgba(21, 38, 62, 0.06), 0 6px 16px rgba(21, 38, 62, 0.06);
  background: linear-gradient(180deg, #f8f9fc 0%, var(--bc-bg) 100%);
  color: var(--bc-text);
  border-radius: 10px;
  padding: 18px 16px 20px;
}

.cpq-bc-shell .bc-list {
  background: var(--bc-surface);
  border: 1px solid var(--bc-border);
  border-radius: 8px;
  box-shadow: var(--bc-shadow);
  overflow: visible;
}

.cpq-bc-shell .bc-section-title {
  margin: 0;
  padding: 10px 12px;
  background: #eef3fb;
  border-bottom: 1px solid var(--bc-border);
  color: #22324a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.cpq-bc-shell .bc-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(140px, 1.2fr) minmax(140px, 1.2fr) minmax(120px, 1fr) auto auto auto auto;
  gap: 8px;
  color: var(--bc-muted);
  font-size: 13px;
  background: var(--bc-row);
  border-bottom: 1px solid #e7edf6;
  transition: background-color 140ms ease;
}

.cpq-bc-shell .bc-row > .cell {
  padding: 8px 0;
}

.cpq-bc-shell .bc-row.header {
  background: var(--bc-row-soft);
  color: #425672;
  border-bottom: 1px solid #d6e1f0;
}

.cpq-bc-shell .bc-list .bc-row:not(.header):hover {
  background: var(--bc-row-hover);
}

.bc-row.bc-row-item {
  background: var(--bc-row);
  color: #2f425f;
}

.cpq-bc-shell .bc-row.bc-row-item.selected {
  background: var(--bc-row-selected);
  border-bottom-color: #b6cde9;
  box-shadow: inset 2px 0 0 var(--bc-primary);
}

.cpq-bc-shell .action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.cpq-bc-shell .action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cfd8e6;
  color: #1f314c;
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.cpq-bc-shell .action:hover {
  background: #f2f7ff;
  border-color: #9fbce0;
}

.cpq-bc-shell .action:disabled,
.cpq-bc-shell .action.disabled {
  background: #f3f5f8;
  border-color: #d4dbe6;
  color: #7d8798;
  cursor: not-allowed;
  opacity: 0.7;
}

.cpq-bc-shell .action:disabled:hover,
.cpq-bc-shell .action.disabled:hover {
  background: #f3f5f8;
  border-color: #d4dbe6;
}

.cpq-bc-shell .action .label {
  font-size: 13px;
  font-weight: 600;
}

.cpq-bc-shell .bc-action-btn {
  border: 1px solid #c9d5e6;
  border-radius: 4px;
  background: #fff;
  color: #22344f;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  cursor: pointer;
}

.cpq-bc-shell .bc-action-btn:hover {
  background: #f2f7ff;
  border-color: #9fbce0;
}

.cpq-bc-shell .bc-action-btn.quick {
  color: #0d5ea6;
  border-color: #bcd2eb;
  background: #f5faff;
}

.cpq-bc-shell .bc-action-btn.quick:hover {
  background: #e9f3ff;
  border-color: #8eb7e1;
}

.cpq-bc-shell .bc-action-btn.disabled,
.cpq-bc-shell .bc-action-btn:disabled {
  background: #f3f5f8;
  border-color: #d4dbe6;
  color: #7d8798;
  cursor: not-allowed;
}

.cpq-bc-shell .bc-action-btn.delete {
  color: var(--bc-danger);
  border-color: #e6c8c4;
  background: #fffafa;
}

.cpq-bc-shell .bc-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.cpq-bc-shell .bc-error-note {
  margin: 10px 12px 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e6b8b2;
  background: #fff5f4;
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.45;
}

.cpq-bc-shell .bc-error-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.cpq-bc-shell .bc-status-note {
  margin: 10px 12px 12px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #bfd3ea;
  background: #f4f8fd;
  color: #1f4268;
  font-size: 12px;
  line-height: 1.45;
}

.cpq-bc-shell .bc-status-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.cpq-bc-shell .bom-panel {
  width: 100%;
  border: 1px solid #dbe4f2;
  border-radius: 6px;
  background: #fbfdff;
  margin: 2px 0 8px;
  display: none;
}

.cpq-bc-shell .quick-config-panel {
  display: none;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  position: relative;
  z-index: 120;
}

.cpq-bc-shell .quick-config-panel.open {
  display: block;
}

.cpq-bc-shell .quick-config-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--bc-border);
  background: linear-gradient(180deg, #f8fbff 0%, #eef3fb 100%);
}

.cpq-bc-shell .quick-config-title {
  font-weight: 700;
  color: var(--bc-text);
}

.cpq-bc-shell .quick-config-meta {
  font-size: 12px;
  color: var(--bc-muted);
  margin-top: 2px;
}

.cpq-bc-shell .quick-config-frame {
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  max-height: none;
  border: 0;
  background: #ffffff;
}

.cpq-bc-shell .bom-line:last-child {
  border-bottom: none;
}

.cpq-bc-shell .bom-line.header {
  text-transform: uppercase;
  font-weight: 600;
  color: #4f6684;
  font-size: 11px;
}

.cpq-bc-shell .bom-total {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1d3552;
  text-align: right;
}

.cpq-bc-shell .bc-primary-btn,
.cpq-bc-shell .bc-secondary-btn {
  border-radius: 5px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.cpq-bc-shell .bc-primary-btn {
  background: var(--bc-primary);
  color: #fff;
  border-color: var(--bc-primary);
}

.cpq-bc-shell .bc-primary-btn:hover {
  background: var(--bc-primary-strong);
  border-color: var(--bc-primary-strong);
}

.cpq-bc-shell .bc-secondary-btn {
  background: #ffffff;
  color: #22344f;
  border-color: #c9d5e6;
}

.cpq-bc-shell .bc-secondary-btn:hover {
  background: #f2f7ff;
  border-color: #9fbce0;
}

@media (max-width: 991px) {
  .cpq-bc-shell .bc-row {
      grid-template-columns: 1fr 1fr;
      gap: 6px 10px;
  }

  .cpq-bc-shell .bc-row .code {
      justify-self: start;
  }
}

@media (max-width: 640px) {
  .cpq-bc-shell {
      padding: 12px 10px 14px;
  }

  .cpq-bc-shell .bc-row {
      grid-template-columns: 1fr;
  }

  .cpq-bc-shell .cell.desc {
      white-space: normal;
  }

  .cpq-bc-shell .bom-line {
      grid-template-columns: 1fr;
      gap: 4px;
  }
}

.quick-configure-container {
    width: 100%;
    overflow-x: auto;
}

.quick-configure-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.quick-configure-container table thead th {
    vertical-align: middle;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2b3a4d;
    background: #f7f9fc;
    border-bottom: 1px solid #d9e1ec;
    padding: 5px 5px;
    white-space: normal;
    word-break: break-word;
}

.quick-configure-container table tbody td {
    vertical-align: middle;
    padding: 0;
    border: 0;
    position: relative;
    overflow: visible;
}

.quick-configure-container table tbody tr {
    background: #fbfdff;
    border-bottom: 1px solid #e3eaf4;
    transition: background-color 140ms ease;
}

.quick-configure-container table tbody tr:hover {
    background: #eef4ff;
}

.quick-configure-container table tbody tr:last-child td {
    border-bottom: none;
}

.quick-configure-container table tbody td .input-table-control {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.quick-configure-container table tbody td .input-table-control > * {
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 0.8rem;
}

.quick-configure-container table tbody td .input-table-control .mb-3 {
    margin-bottom: 0 !important;
}

.quick-configure-container table tbody td .input-table-control .form-control {
    width: 100%;
    min-height: 38px;
    height: 38px;
    font-size: 0.8rem;
}

.quick-configure-container table tbody td .input-table-control select {
    width: 100%;
    height: 38px;
    font-size: 0.8rem;
    max-width: none;
}

.quick-configure-container table tbody td .input-table-control select:focus {
    width: max-content;
    min-width: min(420px, 75vw);
    position: relative;
    z-index: 20;
}

.quick-configure-container table tbody td .input-table-control .toggle-switch {
    display: flex;
    align-items: center;
}

.quick-configure-container table tbody td .input-table-control .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding-left: 3px;
    font-size: 0.7rem;
}

.quick-configure-container table tbody td .input-table-control .form-check input {
    margin: 0px;
}
.quick-configure-container table tbody td .input-table-control .form-check label {
    margin-left: 3px;
}

.quick-configure-container table tbody td .input-table-control .form-check-inline {
    margin-right: 1rem;
}

.quick-configure-container table tbody td .input-table-control textarea.form-control {
    min-height: 72px;
    height: auto;
    resize: vertical;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}

.table-container table thead th {
    vertical-align: middle;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #2b3a4d;
    background: #f7f9fc;
    border-bottom: 1px solid #d9e1ec;
    padding: 5px 5px;
    white-space: normal;
    word-break: break-word;
}

.table-container table tbody td {
    vertical-align: middle;
    padding: 0;
    border: 0;
    position: relative;
    overflow: visible;
}

.table-container table tbody tr {
    background: #fbfdff;
    border-bottom: 1px solid #e3eaf4;
    transition: background-color 140ms ease;
}

.table-container table tbody tr:hover {
    background: #eef4ff;
}

.table-container table tbody tr:last-child td {
    border-bottom: none;
}

.table-container table tbody td .input-table-control {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.table-container table tbody td .input-table-control > * {
    margin: 0;
    padding: 0;
    width: 100%;
    font-size: 0.8rem;
}

.table-container table tbody td .input-table-control .mb-3 {
    margin-bottom: 0 !important;
}

.table-container table tbody td .input-table-control .form-control {
    width: 100%;
    min-height: 38px;
    height: 38px;
    font-size: 0.8rem;
}

.table-container table tbody td .input-table-control select {
    width: 100%;
    height: 38px;
    font-size: 0.8rem;
    max-width: none;
}

.table-container table tbody td .input-table-control select:focus {
    width: max-content;
    min-width: min(420px, 75vw);
    position: relative;
    z-index: 20;
}

.table-container table tbody td .input-table-control .toggle-switch {
    display: flex;
    align-items: center;
}

.table-container table tbody td .input-table-control .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding-left: 3px;
    font-size: 0.7rem;
}

.table-container table tbody td .input-table-control .form-check input {
    margin: 0px;
}
.table-container table tbody td .input-table-control .form-check label {
    margin-left: 3px;
}

.table-container table tbody td .input-table-control .form-check-inline {
    margin-right: 1rem;
}

.table-container table tbody td .input-table-control textarea.form-control {
    min-height: 72px;
    height: auto;
    resize: vertical;
}

.table-container table .action-cell {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
  padding: 0;
  box-sizing: border-box;
  white-space: nowrap;
  text-align: right;
}

.table-container table .action-buttons {
  display: flex;
  width: 72px;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.table-container table thead th.action-header {
  text-align: right;
}

.table-container table .action-icon-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  background: #fff;
  color: #344054;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.table-container table .action-icon-btn:hover {
  background: #f9fafb;
}

.table-container table .action-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.table-container table .btn-delete-row {
  color: #b42318;
  border-color: #fda29b;
}

.table-container table .btn-delete-row:hover {
  background: #fef3f2;
}