#tbs-item-panel {
  position: fixed;
  z-index: 2147483000;
  max-height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #c5d0c2;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20, 53, 44, 0.22);
  pointer-events: auto;
}

#tbs-item-panel[hidden] {
  display: none !important;
}

.tbs-item-list {
  overflow: auto;
  max-height: 250px;
}

.tbs-item-empty {
  padding: 12px 14px;
  color: #5a6b63;
  font-size: 13px;
}

.tbs-item-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 0;
  background: #fff;
  color: #1f2e28;
  text-align: left;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
}

.tbs-item-row:hover {
  background: #e8f2e1;
}

.tbs-item-price {
  color: #5a6b63;
  font-variant-numeric: tabular-nums;
}

.tbs-create-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-top: 1px solid #dcecd5;
  background: #e8f2e1;
  color: #1a4338;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  text-align: left;
}

.tbs-create-item:hover {
  background: #c9ddb8;
}

.tbs-create-plus {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1a4338;
  color: #fff;
  font-size: 14px;
}

body.tbs-picker-open .cdk-overlay-container,
body.tbs-picker-open .cdk-overlay-pane,
body.tbs-picker-open .mat-mdc-autocomplete-panel,
body.tbs-picker-open .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.cdk-overlay-container {
  z-index: 100000000 !important;
}

.table-pos {
  background: #fff !important;
}

#tbs-create-item-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 53, 44, 0.45);
  z-index: 200000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.tbs-modal {
  background: #fff;
  width: min(520px, 100%);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 16px 40px rgba(20, 53, 44, 0.28);
}

.tbs-modal h3 {
  margin: 0 0 14px;
  color: #1a3d32;
}

.tbs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #1a3d32;
}

.tbs-field input,
.tbs-field select {
  height: 36px;
  border: 1px solid #c5d0c2;
  border-radius: 8px;
  padding: 0 10px;
}

.tbs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tbs-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.tbs-cancel,
.tbs-save {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}

.tbs-cancel {
  background: #e8f2e1;
  color: #1a4338;
}

.tbs-save {
  background: #1a4338;
  color: #fff;
}

.tbs-error {
  color: #8b2332;
  margin: 8px 0 0;
}
