/* Zusätzliche Styles für die Rechnungsfunktionalität */

/* Rechnungshistorie-Tabelle */
.table-container {
    overflow-x: auto;
}

table#invoice-history {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table#invoice-history th,
table#invoice-history td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

table#invoice-history th {
    background-color: var(--dark);
    color: white;
    font-weight: bold;
}

table#invoice-history tr:hover {
    background-color: #f5f5f5;
}

/* Aktions-Buttons */
.action-btn {
    padding: 5px 10px;
    margin-right: 5px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.view-invoice {
    background-color: var(--primary);
    color: white;
}

.view-invoice:hover {
    background-color: #2980b9;
}

.send-invoice {
    background-color: var(--secondary);
    color: white;
}

.send-invoice:hover {
    background-color: #27ae60;
}

/* Radio-Buttons Styling */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
}

.radio-group input[type="radio"] {
    margin-right: 5px;
    width: auto;
}

/* Datei-Upload Styling */
input[type="file"] {
    padding: 8px 0;
}

/* Farb-Auswahl Styling */
input[type="color"] {
    padding: 2px;
    width: 50px;
    height: 30px;
}

/* Buttons im Rechnungs-Tab */
.text-center button {
    margin: 0 5px;
}

/* Logo-Vorschau */
.logo-preview {
    max-width: 200px;
    max-height: 80px;
    margin-top: 10px;
    border: 1px solid #ddd;
    padding: 5px;
    display: none;
}

.logo-preview.visible {
    display: block;
}


/* Zusätzlicher Style für den Löschen-Button */
.delete-invoice {
    background-color: #e74c3c;
    color: white;
}

.delete-invoice:hover {
    background-color: #c0392b;
}

/* Aktionsspalte breiter machen für mehr Buttons */
table#invoice-history td:last-child {
    min-width: 220px;
}

/* Buttons in der Aktionsspalte besser ausrichten */
.action-btn {
    padding: 5px 8px;
    margin: 2px;
    font-size: 12px;
}