/* cin_laengenberechnung – CSS für JTL-Shop 5 / Nova
   @author Intellivision1 */

/* ── Gesamt-Länge-Feld (readonly) ───────────────────────────── */
.cin-total-field {
    background: #f5f5f5 !important;
    cursor: not-allowed !important;
    text-align: right;
}

/* ── Layout: Label links, Feld rechts (wie JTL4) ────────────── */
.cin-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}
.cin-row .cin-label {
    flex: 0 0 200px;
    font-weight: 600;
    font-size: 0.9em;
    color: #333;
}
.cin-row .cin-field-wrap {
    flex: 1;
}

/* ── Input-Group Wrapper ─────────────────────────────────────── */
.cin-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.cin-input-group .form-control {
    border-radius: 4px 0 0 4px !important;
    flex: 1;
}

/* ── Badge Basis ─────────────────────────────────────────────── */
.cin-unit-badge {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    border: 1px solid #ced4da;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    font-size: 0.875em;
    font-weight: 600;
    white-space: nowrap;
    min-width: 42px;
    justify-content: center;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

/* Neutral (Gesamt-Feld) */
.cin-badge-neutral {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
}
/* Leer → orange */
.cin-badge-empty {
    background: #fff3cd;
    color: #856404;
    border-color: #f0ad4e;
}
/* Ungültig → rot */
.cin-badge-error {
    background: #f8d7da;
    color: #dc3545;
    border-color: #dc3545;
}
/* Gültig → grün */
.cin-badge-ok {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

/* ── Min/Max-Box (kompakt, eine Zeile) ───────────────────────── */
#cin-lc-minmax {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
    padding: 6px 12px;
    margin-bottom: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.875em;
    line-height: 1.6;
}

/* ── Info-Box ────────────────────────────────────────────────── */
#cin-lc-infobox {
    margin: 4px 0 10px 0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    display: none;
}
#cin-lc-infobox.alert-warning {
    background: #fff3cd;
    border: 1px solid #f0ad4e;
    color: #856404;
}
#cin-lc-infobox.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    font-weight: 500;
}
#cin-lc-infobox.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    font-weight: 600;
}

/* ── Nova variation-wrapper: Label links, Feld rechts ────────── */
/* Überschreibt das Standard-Nova-Layout für cin-Felder */
.cin-variation-row {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 8px !important;
    flex-wrap: nowrap !important;
}
.cin-variation-row dt {
    flex: 0 0 200px !important;
    font-weight: 600 !important;
    font-size: 0.9em !important;
    margin: 0 10px 0 0 !important;
    line-height: 38px !important;
}
.cin-variation-row dd {
    flex: 1 !important;
    margin: 0 !important;
}
