/* Contract Form Styling - Completerra Design */

/* Form Field Spacing */
#contract-form .fusion-form-field {
    margin-bottom: 10px;
}

/* Fix voor textarea - zorg dat deze onder label komt */
#contract-form .fusion-form-textarea-field {
    display: block;
}

#contract-form .fusion-form-textarea-field label,
#contract-form .fusion-form-textarea-field textarea {
    display: block;
    width: 100%;
}

/* Fix voor select dropdowns */
#contract-form .fusion-select-wrapper {
    display: block;
    width: 100%;
}

#contract-form .fusion-select-wrapper select {
    width: 100%;
    display: block;
}

/* Radio button spacing */
#contract-form .fusion-form-radio-field fieldset {
    display: block;
}

#contract-form .fusion-form-radio {
    margin-bottom: 10px;
}

/* Signature Canvas */
.signature-canvas {
    border: 1px solid #ccc;
    display: block;
    margin-bottom: 10px;
}

/* Terms checkbox wrapper */
.terms-checkbox-wrapper {
    margin: 20px 0;
}

/* Hidden class */
.hidden {
    display: none !important;
}
.manure-specification-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.manure-specification-table th {
    background: #f5f5f5;
    color: #333333;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.manure-specification-table thead tr:first-child th {
    font-size: 15px;
    font-weight: 600;
}

.manure-specification-table thead tr:nth-child(2) th {
    font-size: 13px;
    background: #ebebeb;
}

.manure-specification-table th small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px;
    opacity: 0.8;
}

.manure-specification-table td {
    padding: 8px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.manure-specification-table input[type="text"],
.manure-specification-table input[type="number"],
.manure-specification-table select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
}

.manure-specification-table input[type="text"]:focus,
.manure-specification-table input[type="number"]:focus,
.manure-specification-table select:focus {
    background: #ebebeb;
    outline: none;
}

.manure-specification-table input::placeholder {
    color: #999;
    font-size: 13px;
}


/* Mestspecificatie Tabel Styling */
.manure-specification-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.manure-specification-table th {
    background: #f5f5f5;
    color: #333333;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.manure-specification-table thead tr:first-child th {
    font-size: 15px;
    font-weight: 600;
}

.manure-specification-table thead tr:nth-child(2) th {
    font-size: 13px;
    background: #ebebeb;
}

.manure-specification-table th small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    margin-top: 3px;
    opacity: 0.8;
}

.manure-specification-table td {
    padding: 8px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}

.manure-specification-table input[type="text"],
.manure-specification-table input[type="number"],
.manure-specification-table select {
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
}

.manure-specification-table input[type="text"]:focus,
.manure-specification-table input[type="number"]:focus,
.manure-specification-table select:focus {
    background: #ebebeb;
    outline: none;
}

.manure-specification-table input::placeholder {
    color: #999;
    font-size: 13px;
}

#manure_table_container {
    margin: 20px 0;
    overflow-x: auto;
}

.manure-row {
    transition: background-color 0.2s ease;
}

.manure-row:hover {
    background-color: #f8f9fa;
}

/* Responsive tabel */
@media (max-width: 1200px) {
    .manure-specification-table {
        font-size: 13px;
    }
    
    .manure-specification-table th {
        padding: 10px 6px;
        font-size: 13px;
    }
    
    .manure-specification-table td {
        padding: 6px;
    }
    
    .manure-specification-table input,
    .manure-specification-table select {
        font-size: 13px;
        padding: 6px 4px;
    }
}

@media (max-width: 768px) {
    #manure_table_container {
        overflow-x: visible;
    }
    
    .manure-specification-table thead {
        display: none;
    }
    
    .manure-specification-table {
        width: 100%;
        min-width: auto;
        font-size: 14px;
        box-shadow: none;
    }
    
    .manure-specification-table tbody {
        display: block;
    }
    
    .manure-specification-table tbody tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 15px;
        background: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }
    
    .manure-specification-table tbody tr:hover {
        background-color: white;
    }
    
    .manure-specification-table tbody td {
        display: block;
        width: 100% !important;
        border: none;
        padding: 8px 0;
        text-align: left;
    }
    
    .manure-specification-table tbody td:before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #333333;
        margin-bottom: 5px;
        font-size: 13px;
    }
    
    .manure-specification-table input[type="text"],
    .manure-specification-table input[type="number"],
    .manure-specification-table select {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
        margin-bottom: 0;
    }
    
    .manure-specification-table.single-row tbody td:nth-child(8) {
        display: none !important;
    }
}

/* Extra styling voor form velden binnen tabel */
.manure-specification-table input[type="number"]::-webkit-inner-spin-button,
.manure-specification-table input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
}

/* Verberg acties kolom wanneer er maar 1 rij is - Desktop */
.manure-specification-table.single-row thead tr:first-child th:last-child,
.manure-specification-table.single-row tbody td:last-child {
    display: none !important;
}

/* Readonly velden - subtiele grijze achtergrond */
.manure-specification-table input[readonly] {
    background: #e8e8e8;
    cursor: not-allowed;
}
