.barcode-create-panel,
.barcode-selection-card,
.barcode-collection-panel {
    padding: 12px 14px;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #fff;
}

.barcode-create-panel { border-color: #ef9dc7; background: #fff8fc; }
.barcode-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.barcode-section-heading h3, .barcode-section-heading p { margin: 0; }
.barcode-section-heading h3 { color: #202635; font-size: 13px; font-weight: 700; line-height: 1.3; }
.barcode-section-heading p { margin-top: 3px; color: #7c8798; font-size: 9px; line-height: 1.45; }
.barcode-section-heading > span, .barcode-section-heading div > span { color: #75839a; font-size: 9px; font-weight: 700; }

.barcode-type-control { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 6px 0 10px; }
.barcode-type-control button { display: grid; justify-items: center; min-width: 0; gap: 3px; padding: 8px 4px; border: 1px solid #d8e0ea; border-radius: 7px; background: #fff; color: #18263a; text-align: center; }
.barcode-type-control button:hover, .barcode-type-control button.is-active { border-color: #ec168c; background: #fff2f8; }
.barcode-type-control strong { overflow: hidden; max-width: 100%; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.barcode-type-control small { overflow: hidden; max-width: 100%; color: #78869a; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.barcode-type-icon { position: relative; width: 30px; height: 24px; background: repeating-linear-gradient(90deg, #304760 0 2px, transparent 2px 4px, #304760 4px 7px, transparent 7px 9px); }
.barcode-type-icon--matrix { width: 25px; height: 25px; background: repeating-conic-gradient(#304760 0 25%, transparent 0 50%) 0 / 6px 6px; }
.barcode-type-icon--matrix::before, .barcode-type-icon--matrix::after { position: absolute; content: ""; width: 7px; height: 7px; border: 2px solid #304760; background: #fff; }
.barcode-type-icon--matrix::before { top: 1px; left: 1px; }.barcode-type-icon--matrix::after { right: 1px; bottom: 1px; }
.barcode-type-icon--ean { background-size: auto 19px; border-bottom: 3px solid #304760; }
.barcode-check-control { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 8px 9px; border: 1px solid #dce3ec; border-radius: 6px; background: #fff; }
.barcode-check-control input { margin-top: 2px; accent-color: #ec168c; }
.barcode-check-control span { display: grid; gap: 2px; }.barcode-check-control strong { font-size: 9px; }.barcode-check-control small { color: #78869a; font-size: 8px; line-height: 1.4; }
.barcode-create-panel > .btn { margin-top: 11px; }

.barcode-selection-card { min-height: 92px; overflow: hidden; }
.barcode-selection-card:not(.is-empty) { border-color: #f06aaa; box-shadow: 0 10px 30px rgba(26, 40, 61, .08); }
.barcode-selection-empty { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.barcode-selection-empty div { display: grid; gap: 2px; }.barcode-selection-empty strong { font-size: 11px; }.barcode-selection-empty small { color: #77859a; font-size: 9px; line-height: 1.4; }
.barcode-empty-visual { width: 43px; height: 31px; flex: 0 0 43px; border: 1px dashed #91a4bd; border-radius: 5px; background: repeating-linear-gradient(90deg, transparent 0 3px, #91a4bd 3px 5px, transparent 5px 7px); }
.barcode-section-heading--selected { align-items: center; }
.barcode-section-heading--selected h3 { margin-top: 2px; overflow-wrap: anywhere; font-size: 15px; }
.barcode-type-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: #e9f2fc; color: #275a91 !important; font-size: 9px !important; }

.barcode-object-visual { display: grid; place-items: center; min-height: 76px; margin-bottom: 10px; padding: 9px 10px; border-radius: 6px; background: var(--barcode-background, #fff); box-shadow: inset 0 0 0 1px #e1e6ed; }
.barcode-object-visual__code { width: 76%; height: 39px; background: repeating-linear-gradient(90deg, var(--barcode-foreground, #1f2937) 0 2px, transparent 2px 4px, var(--barcode-foreground, #1f2937) 4px 8px, transparent 8px 10px); }
.barcode-object-visual[data-family="matrix"] .barcode-object-visual__code { width: 45px; height: 45px; background: repeating-conic-gradient(var(--barcode-foreground, #1f2937) 0 25%, transparent 0 50%) 0 / 8px 8px; }
.barcode-object-visual small { max-width: 100%; overflow: hidden; color: #748299; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.barcode-property-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #e0e6ef; border-radius: 6px; background: #e0e6ef; }
.barcode-property-grid div { display: grid; min-width: 0; gap: 2px; padding: 8px 10px; background: #f9fbfd; }
.barcode-property-grid span { color: #78869a; font-size: 9px; }.barcode-property-grid strong { overflow: hidden; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.barcode-format-controls { display: grid; gap: 9px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e4e9f0; }
.barcode-format-controls .demo-field-label { margin-top: 0; font-size: 9px; }
.barcode-format-controls .barcode-check-control { margin-top: 0; }
.barcode-format-controls .demo-action-grid { margin-top: 0; }

.barcode-collection-list { display: grid; gap: 7px; }
.barcode-collection-list > p { margin: 0; color: #7b889b; font-size: 9px; }
.barcode-collection-item { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f9fbfd; color: #18263a; text-align: left; }
.barcode-collection-item:hover, .barcode-collection-item:focus-visible, .barcode-collection-item.is-active { border-color: #ec168c; background: #fff4fa; outline: 0; }
.barcode-collection-item__icon { width: 32px; height: 24px; background: repeating-linear-gradient(90deg, #456780 0 2px, transparent 2px 4px, #456780 4px 7px, transparent 7px 9px); }
.barcode-collection-item[data-family="matrix"] .barcode-collection-item__icon { width: 24px; height: 24px; margin-inline: 4px; background: repeating-conic-gradient(#456780 0 25%, transparent 0 50%) 0 / 6px 6px; }
.barcode-collection-item > span:last-child { display: grid; min-width: 0; gap: 2px; }
.barcode-collection-item strong, .barcode-collection-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barcode-collection-item strong { font-size: 10px; }.barcode-collection-item small { color: #77859a; font-size: 8px; }

@media (max-width: 620px) {
    .barcode-type-control { grid-template-columns: 1fr; }
    .barcode-type-control button { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; column-gap: 8px; text-align: left; }
    .barcode-type-icon { grid-row: 1 / 3; }.barcode-type-control strong, .barcode-type-control small { grid-column: 2; }
    .barcode-property-grid { grid-template-columns: 1fr; }
}
