/* marinero checklist - 2 columns per section */

.wp-checklist-container-v2 {
    font-family: Arial, sans-serif;
    font-size: 13px;
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-align: left;
}

/* Headings */
.wp-checklist-container-v2 h2 {
    color: #0056b3;
    font-size: 1.1em;
    margin: 15px 0 8px 0;
    padding-left: 5px;
    border-left: 4px solid #4CAF50;
}

/* group container - items inside will display as two columns */
.wp-checklist-group-v2 {
    display: block;
    padding: 6px 0;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eee;
}

/* For items inside a group we use CSS grid to create two columns */
.wp-checklist-group-v2 .wp-checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    align-items: start;
}

/* --- NEUE REGEL HINZUGEFÜGT --- */
/* Diese Klasse zwingt ein Element, beide Spalten im Grid zu belegen */
.wp-checklist-group-v2 .wp-checkbox-grid .grid-full-width {
    grid-column: 1 / -1;
}

/* Item style (single cell) */
.wp-checkbox-item-v3 {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: normal;
    word-break: break-word;
    font-size: 0.95em;
}

/* Narrow items (small labels) */
.wp-checkbox-item-v3.narrow {
    font-size: 0.95em;
}

/* --- NEUE REGEL HINZUGEFÜGT --- */
/* Styling für die 'data_label' Elemente */
.data-group-label {
    margin-top: 10px;
    font-weight: bold;
    color: #333;
    font-size: 0.95em;
}


/* Data group (labels + inputs) - keep inputs full width in their cell */
.data-group-v2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-top: 6px;
    font-size: 0.95em;
    align-items: center;
}
.data-group-v2 input[type="text"] {
    padding: 3px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 100%;
    box-sizing: border-box;
}

/* textareas */
.hull-textarea, .other-textarea-v2 {
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    margin-top: 6px;
}
/* KORREKTUR: Sicherstellen, dass Textarea-Inputs auch 100% Breite haben */
.other-textarea-v2 textarea {
    width: 100%;
    min-height: 60px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 3px 6px;
}


/* print styles for A4 - try to keep each section together */
@media print {
    body, html, .wp-checklist-container-v2 {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        background: white !important;
    }
    body * { visibility: hidden !important; }
    .wp-checklist-container-v2, .wp-checklist-container-v2 * { visibility: visible !important; }
    .wp-checklist-container-v2 {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 190mm !important;
        padding: 12mm !important;
        font-size: 10pt !important;
        line-height: 1.2 !important;
    }
    .print-button { display: none !important; }
    .wp-checklist-group-v2 .wp-checkbox-grid { grid-template-columns: 1fr 1fr !important; }
    h2, .wp-checklist-group-v2 { page-break-inside: avoid !important; }
}