.djtios-wrap .djtios-card,
.djtios-shortcode .djtios-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #dcdcde;
    border-radius: 10px;
    margin-top: 20px;
}

.djtios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.djtios-field-span-2 {
    grid-column: span 2;
}

@media (max-width: 900px) {
    .djtios-field-span-2 {
        grid-column: span 1;
    }
}

.djtios-grid label,
.djtios-field-full label {
    display: block;
    margin-bottom: 8px;
}

.djtios-grid input[type="text"],
.djtios-grid input[type="password"],
.djtios-grid input[type="search"],
.djtios-grid input[type="date"],
.djtios-grid input[type="month"],
.djtios-grid select,
.djtios-grid textarea,
.djtios-search-form input[type="search"],
.djtios-shortcode input[type="text"],
.djtios-shortcode input[type="password"],
.djtios-shortcode input[type="search"],
.djtios-shortcode input[type="date"],
.djtios-shortcode input[type="month"],
.djtios-shortcode select,
.djtios-shortcode textarea {
    width: 100%;
    max-width: 100%;
}

.djtios-field-full {
    margin-bottom: 18px;
}

.djtios-search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.djtios-search-form input[type="search"] {
    max-width: 420px;
}

.djtios-subtext {
    color: #50575e;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
}

.djtios-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
}

.djtios-status-lager {
    background: #e7f7ed;
    color: #12733c;
}

.djtios-status-ausgebucht {
    background: #fff3cd;
    color: #8a5b00;
}

.djtios-signature-box {
    margin-top: 16px;
}

.djtios-signature-canvas {
    width: 100%;
    max-width: 700px;
    height: 220px;
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    background: #fff;
    display: block;
    touch-action: none;
}

.djtios-signature-actions {
    margin-top: 10px;
}

.djtios-signature-preview-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.djtios-signature-preview {
    width: 100%;
    max-width: 360px;
    height: auto;
    border: 1px solid #dcdcde;
    background: #fff;
}

.djtios-table {
    display: block;
    overflow-x: auto;
}

.djtios-table code {
    white-space: nowrap;
}

.djtios-shortcode {
    max-width: 1080px;
    margin: 0 auto;
}

.djtios-shortcode .button {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #c3c4c7;
    background: #f6f7f7;
    color: #1d2327;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
}

.djtios-shortcode .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

.djtios-shortcode .button-secondary {
    background: #fff;
}

.djtios-front-notice {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 0 0 20px;
    border: 1px solid #dcdcde;
}

.djtios-front-notice-success {
    background: #edf7ed;
    border-color: #9bd3a5;
}

.djtios-front-notice-error {
    background: #fcf0f1;
    border-color: #e6a5aa;
}

.djtios-shortcode-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.djtios-inline-form {
    margin: 0;
}

.djtios-inline-help {
    min-height: 20px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.djtios-inline-help.is-success {
    color: #12733c;
}

.djtios-inline-help.is-error {
    color: #b32d2e;
}

.djtios-inline-help.is-warning {
    color: #8a5b00;
}

.djtios-inline-help.is-neutral {
    color: #50575e;
}

.djtios-shortcode input[readonly] {
    background: #f6f7f7;
}

.djtios-customer-picker {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 14px;
    background: #fbfbfb;
}

.djtios-customer-picker-shell {
    position: relative;
    z-index: 20;
}

.djtios-scanner-shell {
    position: relative;
    z-index: 10;
}

.djtios-process-shell {
    position: relative;
    z-index: 15;
}


.djtios-customer-picker select {
    min-height: 160px;
}

.djtios-scanner-shell {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 14px;
    background: #fbfbfb;
}

.djtios-scan-input {
    font-size: 18px !important;
    min-height: 46px;
    -webkit-user-select: text;
    user-select: text;
}

.djtios-scanner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.djtios-scan-preview-empty {
    margin-top: 12px;
    color: #50575e;
}

.djtios-scan-preview {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.djtios-scan-item {
    display: grid;
    grid-template-columns: minmax(120px, 180px) 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}

.djtios-scan-item-success {
    border-color: #9bd3a5;
    background: #f4fbf4;
}

.djtios-scan-item-error {
    border-color: #e6a5aa;
    background: #fff7f7;
}

.djtios-scan-item-warning {
    border-color: #f0c36d;
    background: #fff9ee;
}

.djtios-scan-item-neutral {
    border-color: #dcdcde;
}

.djtios-scan-code {
    font-family: Consolas, Monaco, monospace;
    font-weight: 600;
    word-break: break-word;
}

.djtios-scan-meta {
    color: #50575e;
    font-size: 13px;
}

.djtios-scan-remove {
    border: 0;
    background: transparent;
    color: #b32d2e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}

@media (max-width: 782px) {
    .djtios-scan-item {
        grid-template-columns: 1fr auto;
    }

    .djtios-scan-code {
        grid-column: 1 / -1;
    }
}

.djtios-process-shell {
    border: 1px solid #dcdcde;
    border-radius: 8px;
    padding: 14px;
    background: #fbfbfb;
}

.djtios-grid-compact {
    margin-bottom: 0;
}


.djtios-conditional-field.is-hidden {
    display: none;
}

.djtios-visually-hidden-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
