.confizz-dlc-v2,
.confizz-dlc-admin-page {
    box-sizing: border-box;
}

.confizz-dlc-v2-tabs,
.confizz-dlc-toolbar,
.confizz-dlc-actions,
.confizz-dlc-shop-filter,
.confizz-dlc-encoder-controls,
.confizz-dlc-encoder-footer,
.confizz-dlc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.confizz-dlc-v2-tabs {
    margin: 0 0 14px;
    border-bottom: 1px solid #dcdcde;
}

.confizz-dlc-tab {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.confizz-dlc-tab.is-active {
    color: #2271b1;
    box-shadow: inset 0 -3px 0 #2271b1;
}

.confizz-dlc-panel {
    display: none;
}

.confizz-dlc-panel.is-active {
    display: block;
}

.confizz-dlc-toolbar {
    justify-content: space-between;
    margin: 0 0 12px;
}

.confizz-dlc-checkbox {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    font-weight: 600;
}

.confizz-dlc-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.confizz-dlc-table,
.confizz-dlc-encoder-table {
    min-width: 1180px;
}

.confizz-dlc-table th,
.confizz-dlc-table td,
.confizz-dlc-encoder-table th,
.confizz-dlc-encoder-table td {
    white-space: nowrap;
    vertical-align: middle;
}

.confizz-dlc-table th.sortable {
    cursor: pointer;
}

.confizz-dlc-shop-btn.is-active {
    box-shadow: inset 0 0 0 2px #2271b1;
}

.confizz-dlc-legend {
    margin: 0 0 12px;
}

.legend-item {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 4px;
    border: 2px solid transparent;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

button.legend-item {
    appearance: none;
}

.legend-item.is-active {
    border-color: #1d2327;
    box-shadow: 0 0 0 1px #fff inset;
}

.legend-expired,
.confizz-dlc-row.status-expired td {
    background: #000 !important;
    color: #fff !important;
}

.legend-red,
.confizz-dlc-row.status-red td {
    background: #ffdddd !important;
    color: #7a0000;
}

.legend-orange,
.confizz-dlc-row.status-orange td {
    background: #ffe7c2 !important;
    color: #704000;
}

.legend-blue,
.confizz-dlc-row.status-blue td {
    background: #dcecff !important;
    color: #114b7a;
}

.legend-green,
.confizz-dlc-row.status-green td {
    background: #dff5df !important;
    color: #0d5d27;
}

.confizz-dlc-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 18px;
    margin: 18px 0;
}

.confizz-dlc-admin-card {
    background: #fff;
    border: 1px solid #dcdcde;
    padding: 18px;
}

.confizz-dlc-encoder-controls,
.confizz-dlc-encoder-footer {
    margin: 0 0 12px;
}

.confizz-dlc-encoder label {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
}

.confizz-dlc-barcode-field {
    flex: 1 1 280px;
}

.confizz-dlc-barcode-field input {
    width: 100%;
}

.confizz-dlc-message {
    min-height: 22px;
    margin-top: 8px;
    font-weight: 600;
}

.confizz-dlc-message.is-ok {
    color: #0d6b2f;
}

.confizz-dlc-message.is-error {
    color: #b32d2e;
}

.confizz-dlc-tutorial {
    max-width: 760px;
}

.confizz-dlc-tutorial li {
    margin: 8px 0;
}

@media (max-width: 1100px) {
    .confizz-dlc-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .confizz-dlc-v2-tabs,
    .confizz-dlc-toolbar,
    .confizz-dlc-legend,
    .confizz-dlc-delete-row {
        display: none !important;
    }
}
