/* CSS for Beleg-ControlPanel.html */

/* Main container styling */
#item-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Section headers */
#item-box h4 {
    color: #333;
    border-bottom: 2px solid #4285F4;
    padding-bottom: 8px;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Invoice summary section */
.invoice-summary {
    background-color: #f0f7ff;
    border-left: 4px solid #4285F4;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 4px 4px 0;
}

.invoice-summary h5 {
    margin: 5px 0;
    color: #333;
}

/* Customer and responsible person info */
.person-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.person-info svg {
    margin-right: 8px;
}

.person-info .vr {
    margin: 0 10px;
}

.person-info a {
    color: #4285F4;
}

/* Form row styling */
.form-row {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.form-row .col, 
.form-row .col-md-3 {
    padding: 0 10px;
    margin-bottom: 15px;
}

/* Form field styling */
.form-control {
    border-radius: 4px;
    border: 1px solid #ced4da;
    padding: 8px 12px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 0.2rem rgba(66, 133, 244, 0.25);
}

/* Checkbox styling */
.form-check {
    padding-left: 25px;
}

.form-check-input {
    margin-top: 0.3rem;
}

.form-check-input:checked {
    background-color: #4285F4;
    border-color: #4285F4;
}

/* Label styling */
label {
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

/* Button styling */
.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.form-actions .btn {
    padding: 8px 16px;
    font-weight: 500;
}

.btn-outline-info {
    color: #4285F4;
    border-color: #4285F4;
}

.btn-outline-info:hover {
    background-color: #4285F4;
    color: white;
}

.btn-danger {
    background-color: #EA4335;
    border-color: #EA4335;
}

.btn-danger:hover {
    background-color: #d33426;
    border-color: #d33426;
}

/* Items table styling */
#items_in_invoice {
    margin-top: 15px;
    margin-bottom: 30px;
}

#items_in_invoice table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

#items_in_invoice th {
    background-color: #f2f2f2;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

#items_in_invoice td {
    padding: 10px 15px;
    border-top: 1px solid #ddd;
}

#items_in_invoice tr:hover {
    background-color: #f5f5f5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .col {
        width: 100%;
        padding: 0;
    }
    
    .form-actions {
        flex-wrap: wrap;
    }
}
