/* ===== BID ROOM ESTIMATE CENTER PANEL (PR505) ===== */
.bre-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  font-family: inherit;
  font-size: 13px;
  color: #28251D;
}

.bre-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.bre-title {
  font-size: 16px;
  font-weight: 700;
  color: #1A1A2E;
}
.bre-add-btn {
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.bre-add-btn:hover { background: #e55e00; }
.bre-breakdown-btn {
  background: #1A1A2E;
  color: #FF6B00;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.bre-breakdown-btn:hover { background: #0f0f1e; }
.bre-locked-badge {
  font-size: 12px;
  font-weight: 700;
  color: #437A22;
  background: #E8F5E2;
  padding: 4px 10px;
  border-radius: 12px;
}

/* Table wrapper — scrollable */
.bre-table-wrap {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  border: 1px solid #D4D1CA;
  border-radius: 8px;
  background: #fff;
}

/* Table */
.bre-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.bre-th {
  background: #F7F6F2;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7A7974;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #D4D1CA;
  position: sticky;
  top: 0;
  z-index: 1;
}
.bre-th-drag  { width: 24px; }
.bre-th-cc    { width: 80px; }
.bre-th-desc  { min-width: 160px; }
.bre-th-qty   { width: 64px; }
.bre-th-unit  { width: 64px; }
.bre-th-uc    { width: 96px; }
.bre-th-total { width: 96px; text-align: right; }
.bre-th-del   { width: 28px; }

.bre-row {
  border-bottom: 1px solid #F0EFEC;
}
.bre-row:last-child { border-bottom: none; }
.bre-row:hover { background: #FAFAF8; }
.bre-td {
  padding: 6px 10px;
  vertical-align: middle;
}
.bre-td-desc { min-width: 160px; }
.bre-total-cell { text-align: right; font-weight: 600; }
.bre-drag-handle {
  cursor: grab;
  color: #BAB9B4;
  font-size: 14px;
  text-align: center;
  user-select: none;
}

/* Inputs */
.bre-input, .bre-select {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 13px;
  font-family: inherit;
  background: transparent;
  color: #28251D;
  transition: border-color 0.15s, background 0.15s;
  box-sizing: border-box;
}
.bre-input:focus, .bre-select:focus {
  outline: none;
  border-color: #FF6B00;
  background: #fff;
}
.bre-input:disabled, .bre-select:disabled {
  background: transparent;
  color: #7A7974;
  cursor: default;
}

/* Delete button */
.bre-del-btn {
  background: none;
  border: none;
  color: #BAB9B4;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  font-family: monospace;
  transition: color 0.15s;
}
.bre-del-btn:hover { color: #A12C7B; }

/* Grand total */
.bre-tfoot-row {
  background: #F7F6F2;
  border-top: 2px solid #D4D1CA;
}
.bre-grand-label {
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  color: #1A1A2E;
}
.bre-grand-total {
  padding: 10px;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  color: #1A1A2E;
}

/* TRai Insight Bar */
.bre-insight-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1A1A2E;
  border-radius: 0 0 8px 8px;
  flex-shrink: 0;
  margin-top: 0;
  min-height: 44px;
}
.bre-insight-label {
  font-size: 11px;
  font-weight: 700;
  color: #FF6B00;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.bre-insight-msg {
  flex: 1;
  font-size: 12px;
  color: #CDCCCA;
  line-height: 1.4;
}
.bre-insight-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.bre-insight-action-btn {
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.bre-insight-action-btn:hover { background: #e55e00; }
