/* Wrapper im Frontend */
.phoenix-rechnungen-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* Formular */
.phoenix-rechnung-form label {
    font-weight: 600;
}

.phoenix-rechnung-form input[type="text"],
.phoenix-rechnung-form input[type="number"],
.phoenix-rechnung-form input[type="date"],
.phoenix-rechnung-form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    margin-top: 3px;
}

/* Tabellen für Positionen */
.phoenix-items-table,
.phoenix-rechnungen-liste {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 20px 0;
}

.phoenix-items-table th,
.phoenix-items-table td,
.phoenix-rechnungen-liste th,
.phoenix-rechnungen-liste td {
    border: 1px solid #ddd;
    padding: 6px 8px;
    text-align: left;
}

.phoenix-items-table th,
.phoenix-rechnungen-liste th {
    background-color: #f5f5f5;
}

/* Summen-Anzeige */
#phoenix-total-net,
#phoenix-total-vat,
#phoenix-total-gross {
    font-weight: bold;
}

/* Entfernen-Button in der Positionstabelle */
button.phoenix-remove-row,
.button.phoenix-remove-row {
    background: #cc0000;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 2px 8px;
    cursor: pointer;
}

button.phoenix-remove-row:hover,
.button.phoenix-remove-row:hover {
    background: #a00000;
}

/* Meldungen im Frontend */
.phoenix-success {
    border: 1px solid #46b450;
    background: #ecf7ed;
    color: #2f6f31;
    padding: 10px 12px;
    margin-bottom: 15px;
}

.phoenix-error {
    border: 1px solid #dc3232;
    background: #fbeaea;
    color: #a12a2a;
    padding: 10px 12px;
    margin-bottom: 15px;
}

/* Liste der Rechnungen */
.phoenix-rechnungen-liste tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.phoenix-rechnungen-liste .phoenix-row-final {
    background: #e7f6ea;
}

.phoenix-rechnungen-liste .phoenix-row-draft {
    background: #fff3e0;
}

.phoenix-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.phoenix-inline-form {
    margin: 0;
    display: inline;
}

.phoenix-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    min-height: 0;
    height: auto;
}

.phoenix-actions .phoenix-action-btn,
button.phoenix-action-btn {
    background: #f0f0f0 !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    padding: 4px 10px !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
    height: auto !important;
}

.phoenix-action-btn:hover {
    background: #e2e2e2;
    text-decoration: none;
}

.phoenix-action-btn--danger {
    background: #f0f0f0;
    border-color: #ccc;
    color: #000;
}

.phoenix-action-btn--danger:hover {
    background: #e2e2e2;
}

/* Button im Frontend */
.phoenix-rechnung-form button[type="submit"],
#phoenix-add-row {
    padding: 6px 14px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #0073aa;
    color: #fff;
    cursor: pointer;
}

.phoenix-rechnung-form button[type="submit"]:hover,
#phoenix-add-row:hover {
    background: #006097;
}

.phoenix-tabs .button.is-active{
  border-color:#2271b1;
  box-shadow: inset 0 0 0 1px #2271b1;
  font-weight:600;
}

.phoenix-link-word {
    color: #000000 !important; /* Erzwingt die schwarze Farbe */
    text-decoration: none !important; /* Erzwingt das Entfernen der Unterstreichung */
}

/* Optional: Auch den Hover-Effekt erzwingen */
.phoenix-link-word:hover {
    color: #333333 !important;
}

.phoenix-link-pdf {
    color: #000000 !important; /* Erzwingt die schwarze Farbe */
    text-decoration: none !important; /* Erzwingt das Entfernen der Unterstreichung */
}

/* Optional: Auch den Hover-Effekt erzwingen */
.phoenix-link-pdf {
    color: #333333 !important;
}
