/**
 * SVE Tool Calculator - Frontend Styles
 * Helles Design mit Akzentfarben: #303030 #34495E #E17A00 #3D3D3D
 */

/* === Safari/WebKit Browser Fixes === */
/* Globaler Fix für alle Inputs - verhindert Text-Verschiebung in Safari */
.sve-calculator-wrapper input,
.sve-calculator-wrapper select,
.sve-calculator-wrapper textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: normal;
    vertical-align: middle;
}

/* Number-Input Spinner komplett entfernen (Safari/Chrome) */
.sve-calculator-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.sve-calculator-wrapper input[type="number"]::-webkit-inner-spin-button,
.sve-calculator-wrapper input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
    display: none;
}

/* Safari-spezifischer Fix für Input-Height */
@supports (-webkit-touch-callout: none) {
    .sve-calculator-wrapper input[type="text"],
    .sve-calculator-wrapper input[type="number"],
    .sve-calculator-wrapper input[type="email"] {
        line-height: 1.2;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* === Main Container === */
.sve-calculator-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    min-height: 100vh;
}

.sve-calculator-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 0;
    min-height: 100vh;
}

/* === Sidebar (Lizenz-Info) === */
.sve-calculator-sidebar {
    width: 150px;
    min-width: 150px;
    background: #ffffff;
    border-right: 2px solid #e0e0e0;
    padding: 15px 12px;
    position: sticky;
    top: 0;
    height: auto;
    max-height: calc(100vh - 32px); /* WordPress Admin Bar beruecksichtigen */
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Kein margin-left noetig bei sticky */

.sve-license-card {
    background: #ffffff;
    border: 2px solid #E17A00;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sve-license-card h3 {
    margin: 0 0 10px 0;
    color: #303030;
    font-size: 14px;
}

/* Kompakte Lizenz-Karte am unteren Rand */
.sve-license-card.sve-license-compact {
    padding: 12px;
}

.sve-license-card.sve-license-bottom {
    margin-top: 20px;
}

.sve-license-card .sve-license-name {
    font-weight: 700;
    font-size: 12px;
    color: #E17A00;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}

.sve-license-card .sve-license-valid-label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
}

.sve-license-card .sve-license-expiry {
    font-weight: 700;
    font-size: 14px;
    color: #303030;
}

.sve-license-details {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sve-license-details p {
    margin: 4px 0;
    color: #666;
    font-size: 12px;
}

.sve-sidebar-warning {
    background: #fff3cd;
    padding: 8px;
    border-radius: 4px;
    font-size: 10px;
    color: #856404;
    margin-top: 8px;
}

/* === Main Calculator === */
.sve-calculator-main {
    flex: 1;
    background: #f5f5f5;
    padding: 30px 40px;
    overflow-x: auto;
    min-height: 100vh;
}

.sve-calculator-main h2 {
    margin: 0 0 10px 0;
    color: #303030;
    font-size: 32px;
}

.sve-readonly-banner {
    background: #fff3cd;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
    margin: 20px 0;
    color: #856404;
}

/* Read-Only Modus Styling */
.sve-readonly-mode input:disabled,
.sve-readonly-mode select:disabled,
.sve-readonly-mode textarea:disabled,
.sve-controlling-ist-input:disabled,
.sve-controlling-table input:disabled,
.sve-absence-input:disabled {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.8;
}

.sve-readonly-mode .sve-employee-input:disabled,
.sve-readonly-mode .sve-service-input:disabled,
.sve-readonly-mode .sve-input-number:disabled,
.sve-controlling-ist-input:disabled,
.sve-absence-input:disabled {
    color: #333 !important;
}

/* === Form Sections === */
.sve-form-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sve-form-section h3 {
    margin: 0 0 20px 0;
    color: #34495E;
    font-size: 20px;
}

/* === Form Fields === */
.sve-form-field {
    margin-bottom: 25px;
}

.sve-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #303030;
    font-size: 15px;
}

.sve-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.sve-input:focus {
    outline: none;
    border-color: #E17A00;
    box-shadow: 0 0 0 3px rgba(225, 122, 0, 0.1);
}

.sve-input:disabled,
.sve-input-locked {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.sve-field-help {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #666;
}

/* === Locked Fields === */
.sve-field-locked {
    position: relative;
}

.sve-lock-notice {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    transform: translateY(-50%);
    text-align: center;
    font-size: 13px;
    color: #666;
    z-index: 10;
}

.sve-lock-notice a {
    color: #E17A00;
    text-decoration: none;
    font-weight: 600;
}

.sve-lock-notice a:hover {
    text-decoration: underline;
}

.sve-locked-field-placeholder {
    padding: 15px;
    background: #f8f9fa;
    border: 2px dashed #d0d0d0;
    border-radius: 6px;
    text-align: center;
    color: #999;
    margin: 15px 0;
}

/* === Buttons === */
.sve-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.sve-button {
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.sve-button-primary {
    background: #E17A00;
    color: #ffffff;
}

.sve-button-primary:hover {
    background: #c66900;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 122, 0, 0.3);
}

.sve-button-secondary {
    background: #34495E;
    color: #ffffff;
}

.sve-button-secondary:hover {
    background: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 73, 94, 0.3);
}

.sve-button-disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}

.sve-button-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* === Result Box === */
.sve-result-box {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #E17A00;
    border-radius: 12px;
}

.sve-result-box h3 {
    margin: 0 0 20px 0;
    color: #303030;
    font-size: 24px;
}

#sve-result-content {
    font-size: 16px;
    line-height: 1.6;
    color: #303030;
}

#sve-result-content .result-value {
    font-size: 32px;
    font-weight: 700;
    color: #E17A00;
    margin: 15px 0;
}

/* === Saved Calculations === */
.sve-saved-calculations {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.sve-saved-calculations h3 {
    margin: 0 0 20px 0;
    color: #303030;
    font-size: 22px;
}

#sve-calculations-list {
    display: grid;
    gap: 15px;
}

.sve-calculation-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #34495E;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sve-calculation-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.sve-calculation-data {
    font-size: 14px;
    color: #303030;
}

/* === Loading State === */
.sve-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.sve-loading::after {
    content: "⏳";
    font-size: 48px;
    display: block;
    margin-top: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* === No Access === */
.sve-no-access {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border-radius: 12px;
}

/* === Calculator Header === */
.sve-calculator-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.sve-calculator-header h2 {
    margin: 0;
    flex-shrink: 0;
}

/* Button Container */
.sve-header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.sve-guide-button {
    display: inline-block;
    padding: 10px 20px;
    background: #E17A00;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(225, 122, 0, 0.3);
}

.sve-guide-button:hover {
    background: #c66900;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 8px rgba(225, 122, 0, 0.4);
}

.sve-guide-button:active {
    box-shadow: 0 1px 2px rgba(225, 122, 0, 0.3);
}

/* Header Buttons - Mobile */
@media (max-width: 600px) {
    .sve-calculator-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sve-calculator-header h2 {
        width: 100%;
    }

    .sve-header-buttons {
        width: 100%;
    }

    .sve-guide-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* === Calculator Sections === */
.sve-calc-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.sve-calc-section h3 {
    margin: 0 0 20px 0;
    color: #303030;
    font-size: 20px;
    border-bottom: 2px solid #E17A00;
    padding-bottom: 10px;
}

/* === Tables === */
.sve-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.sve-data-table th,
.sve-data-table td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: middle;
}

.sve-data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #303030;
    padding: 6px 12px;
}

.sve-data-table input[type="text"],
.sve-data-table input[type="number"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 32px;
    box-sizing: border-box;
}

.sve-data-table input[type="text"]:focus,
.sve-data-table input[type="number"]:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.sve-input-number {
    width: 100%;
    max-width: 200px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: normal;
}

/* Tabellen-Inputs rechtsbündig */
.sve-data-table input[type="number"],
.sve-employees-params input[type="number"] {
    text-align: right;
    padding-right: 8px;
}

.sve-calculated-value {
    font-weight: 600;
    color: #303030;
}

/* === Employee Management === */
/* Wrapper für horizontales Scrollen */
.sve-employees-wrapper {
    overflow-x: auto;
    overflow-y: visible;
}

.sve-employee-row {
    display: grid;
    grid-template-columns: minmax(120px, 2fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(70px, 1fr) minmax(70px, 1fr) minmax(90px, 1fr) 40px;
    gap: 10px;
    align-items: stretch;
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    min-width: 1000px;
}

.sve-employee-row > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Vertikale Trennlinien zwischen Spalten */
.sve-employee-row > div:nth-child(2),
.sve-employee-row > div:nth-child(3),
.sve-employee-row > div:nth-child(4),
.sve-employee-row > div:nth-child(5),
.sve-employee-row > div:nth-child(6) {
    border-left: 1px solid #e0e0e0;
    padding-left: 15px;
    margin-left: 5px;
}

/* Bruttogehalt-Spalte (2. Spalte) rechtsbündig */
.sve-employee-row > div:nth-child(2) {
    justify-content: flex-end;
}

/* zusätzl. Leistung-Spalte (3. Spalte) rechtsbündig */
.sve-employee-row > div:nth-child(3) {
    justify-content: flex-end;
}

/* Std/Woche-Spalte (4. Spalte) rechtsbündig */
.sve-employee-row > div:nth-child(4) {
    justify-content: flex-end;
}

/* Stundenlohn-Spalte (5. Spalte) zentrieren */
.sve-employee-row > div:nth-child(5) {
    justify-content: center;
    text-align: center;
}

/* Lohnkosten-Spalte (6. Spalte) zentrieren */
.sve-employee-row > div:nth-child(6) {
    justify-content: center;
    text-align: center;
}

.sve-employee-row input[type="text"],
.sve-employee-row input[type="number"],
.sve-employee-input {
    width: 100px;
    flex: none;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    box-sizing: border-box;
    text-align: right;
}

/* Explizit für sve-employee-input Klasse */
input.sve-employee-input {
    text-align: right !important;
}

/* Name-Input breiter und linksbündig */
.sve-employee-row > div:nth-child(1) input[type="text"],
.sve-employee-row > div:nth-child(1) input.sve-employee-input {
    width: 100%;
    flex: 1;
    text-align: left !important;
}

.sve-employee-row input[type="text"]:focus,
.sve-employee-row input[type="number"]:focus {
    outline: none;
    border-color: #E17A00;
    box-shadow: 0 0 0 2px rgba(225, 122, 0, 0.1);
}

.sve-employee-row span:not(.sve-employee-cost) {
    white-space: nowrap;
    font-size: 14px;
    color: #666;
    min-width: fit-content;
}

.sve-employee-cost {
    font-weight: 600;
    color: #303030;
    font-size: 14px;
}

.sve-employee-header {
    display: grid;
    grid-template-columns: minmax(120px, 2fr) minmax(80px, 1fr) minmax(80px, 1fr) minmax(70px, 1fr) minmax(70px, 1fr) minmax(90px, 1fr) 40px;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #303030;
    border-bottom: 2px solid #E17A00;
    align-items: stretch;
    min-width: 1000px;
}

.sve-employee-header > div {
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

/* Vertikale Trennlinien im Header */
.sve-employee-header > div:nth-child(2),
.sve-employee-header > div:nth-child(3),
.sve-employee-header > div:nth-child(4),
.sve-employee-header > div:nth-child(5),
.sve-employee-header > div:nth-child(6) {
    border-left: 1px solid #d0d0d0;
    padding-left: 15px;
    margin-left: 5px;
}

/* Header: Leere 7. Spalte gleiche Breite wie Löschen-Button */
.sve-employee-header > div:nth-child(7) {
    min-width: 38px;
}

.sve-header-with-info {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.sve-header-with-info > span:first-child {
    white-space: nowrap;
}

.sve-employee-header .sve-tooltip {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.sve-employee-header .sve-tooltip:hover {
    z-index: 10000;
}

/* Tooltips im Mitarbeiter-Header nach unten anzeigen */
.sve-employee-header .sve-tooltip .sve-tooltip-text {
    bottom: auto;
    top: 125%;
    left: auto;
    right: 0;
    transform: none;
    width: 280px;
    max-width: 280px;
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sve-employee-header .sve-tooltip .sve-tooltip-text::after {
    top: auto;
    bottom: 100%;
    left: auto;
    right: 10px;
    margin-left: 0;
    border-color: transparent transparent #333 transparent;
}

.sve-employee-header .sve-info-icon {
    margin-left: 0;
}

.sve-employee-actions {
    display: flex;
    gap: 5px;
}

.sve-btn-delete {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.sve-btn-delete:hover {
    background: #c82333;
}

.sve-btn-add {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 15px;
}

.sve-btn-add:hover {
    background: #218838;
}

/* === Results Display === */
.sve-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 15px 0;
}

.sve-result-card {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 6px;
}

.sve-result-card h4 {
    margin: 0 0 6px 0;
    color: #666;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sve-result-card .value {
    font-size: 18px;
    font-weight: 700;
    color: #303030;
    line-height: 1.2;
}

/* === No License Message === */
.sve-no-license-message {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    padding: 40px 20px;
}

.sve-no-license-content {
    max-width: 600px;
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sve-no-license-content h2 {
    color: #303030;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.sve-no-license-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.sve-btn-license {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #E17A00;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.sve-btn-license:hover {
    background: #c96a00;
    color: #fff;
}

/* === Disabled Button === */
.sve-btn-add.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #6c757d !important;
}

.sve-btn-add.disabled:hover {
    background: #6c757d !important;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .sve-calculator-container {
        flex-direction: column;
    }
    
    .sve-calculator-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }
    
    .sve-calculator-main {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .sve-calculator-main {
        padding: 25px;
    }
    
    .sve-form-section {
        padding: 20px;
    }
    
    .sve-form-actions {
        flex-direction: column;
    }
    
    .sve-button {
        width: 100%;
    }
}

/* === Feature Boxes === */
.sve-feature-box {
    padding: 20px;
    margin: 15px 0;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.sve-feature-unlocked {
    border-color: #28a745;
    background: #f8fff9;
}

.sve-feature-locked {
    border-color: #dc3545;
    background: #fff5f5;
}

.sve-upgrade-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #E17A00;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s;
}

.sve-upgrade-btn:hover {
    background: #c66900;
}

/* === Chef Row (nur Stunden editierbar) === */
.sve-employee-chef {
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Deaktivierte Input-Felder in Chef-Zeile */
.sve-employee-chef input:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #ced4da;
}

.sve-employee-chef input:disabled::placeholder {
    color: #999;
    text-align: center;
}

/* Chef: Leere Actions-Spalte gleiche Breite wie Löschen-Button */
.sve-employee-chef .sve-employee-actions {
    min-width: 38px;
}

/* === Azubi Toggle === */
.sve-employee-name-cell {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
}

.sve-employee-name-cell input[type="text"],
.sve-employee-name-cell input.sve-employee-input[data-field="name"] {
    flex: 0 0 85% !important;
    width: 85% !important;
    max-width: 85% !important;
}

.sve-azubi-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    flex-shrink: 0;
}

.sve-azubi-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.sve-azubi-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 20px;
}

.sve-azubi-slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.sve-azubi-toggle input:checked + .sve-azubi-slider {
    background-color: #E17A00;
}

.sve-azubi-toggle input:checked + .sve-azubi-slider:before {
    transform: translateX(16px);
}

.sve-azubi-toggle:hover .sve-azubi-slider {
    background-color: #aaa;
}

.sve-azubi-toggle input:checked:hover + .sve-azubi-slider {
    background-color: #c66900;
}

/* Azubi Toggle Tooltip */
.sve-azubi-toggle::after {
    content: "Azubi";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}

.sve-azubi-toggle::before {
    content: "";
    position: absolute;
    bottom: calc(125% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 100;
}

.sve-azubi-toggle:hover::after,
.sve-azubi-toggle:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Stundenlohn ausblenden wenn Azubi */
.sve-hourly-rate-cell.sve-azubi-hidden {
    visibility: hidden;
}

/* === Info Icon mit Tooltip === */
.sve-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #666;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
    position: relative;
}

.sve-info-icon:hover {
    background: #E17A00;
}

.sve-tooltip {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.sve-tooltip:hover {
    z-index: 9999;
}

.sve-tooltip .sve-tooltip-text {
    visibility: hidden;
    width: 280px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 10px 12px;
    position: absolute;
    z-index: 10000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.sve-tooltip .sve-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.sve-tooltip:hover .sve-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.sve-tooltip-warning {
    color: #ffc107;
    font-weight: 600;
    display: block;
    margin-top: 8px;
}

/* === Ergebnis-Tabelle === */
.sve-results-table {
    margin-top: 10px;
    border-collapse: collapse;
}

.sve-results-table th {
    font-size: 13px;
    padding: 10px 40px;
}

.sve-results-table td {
    padding: 10px 40px;
}

/* Erste Spalte (Label) weniger Padding rechts */
.sve-results-table th:first-child,
.sve-results-table td:first-child {
    padding-left: 12px;
    padding-right: 20px;
}

/* Responsive: Spaltenabstand reduzieren auf Tablet */
@media (max-width: 1024px) {
    .sve-results-table th,
    .sve-results-table td {
        padding: 10px 25px;
    }
    .sve-results-table th:first-child,
    .sve-results-table td:first-child {
        padding-left: 10px;
        padding-right: 15px;
    }
}

/* Responsive: Spaltenabstand minimal auf Mobil */
@media (max-width: 768px) {
    .sve-results-table th,
    .sve-results-table td {
        padding: 8px 12px;
    }
    .sve-results-table th:first-child,
    .sve-results-table td:first-child {
        padding-left: 8px;
        padding-right: 8px;
    }
}

@media (max-width: 480px) {
    .sve-results-table th,
    .sve-results-table td {
        padding: 6px 6px;
    }
    .sve-results-table th:first-child,
    .sve-results-table td:first-child {
        padding-left: 6px;
        padding-right: 4px;
    }
}

.sve-results-highlight {
    background: #E17A00 !important;
    color: #fff;
}

.sve-results-highlight td {
    border-bottom-color: #c66900;
}

.sve-results-highlight strong {
    color: #fff;
}

/* Leichteres Orange für Netto-Zeile */
.sve-results-highlight-light {
    background: #F5A54A !important;
    color: #fff;
}

.sve-results-highlight-light td {
    border-bottom-color: #e89535;
}

.sve-results-highlight-light strong {
    color: #fff;
}

.sve-results-table tbody tr:not(.sve-results-highlight):hover {
    background: #f8f9fa;
}

/* === DL-Preis Kalkulation === */
.sve-dl-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .sve-dl-price-grid {
        grid-template-columns: 1fr;
    }
}

.sve-dl-price-column {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.sve-dl-price-table {
    width: 100%;
    margin: 0;
}

.sve-dl-price-table td {
    padding: 8px 12px;
    font-size: 14px;
}

.sve-dl-price-table td:first-child {
    color: #34495E;
}

.sve-dl-price-table td:last-child {
    min-width: 80px;
    white-space: nowrap;
}

.sve-dl-price-settings {
    border: 1px solid #cce5ff;
}

.sve-dl-price-settings label {
    color: #34495E;
}

/* Ergebnis-Box */
.sve-dl-price-result {
    background: #E17A00;
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.sve-dl-price-result-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.sve-dl-utilization {
    font-weight: 700;
    font-size: 18px;
}

.sve-dl-price-result-final {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
}

.sve-dl-price-result-final span:last-child {
    font-size: 24px;
    font-weight: 700;
}

/* === Dienstleistungen Tabelle === */
.sve-services-wrapper {
    overflow-x: auto;
}

.sve-services-table {
    width: 100%;
    min-width: 1200px;
    table-layout: fixed;
}

.sve-services-table thead tr:first-child th {
    background: #f8f9fa;
    border-bottom: none;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #34495E;
}

.sve-services-table thead tr:first-child th:first-child {
    border-top-left-radius: 6px;
}

.sve-services-table thead tr:first-child th:last-child {
    border-top-right-radius: 6px;
}

.sve-th-group {
    text-align: center !important;
    border-left: 2px solid #dee2e6;
}

.sve-th-group:first-child {
    border-left: none;
}

.sve-th-loss {
    background: #f8d7da !important;
    color: #721c24 !important;
}

.sve-th-profit {
    background: #d4edda !important;
    color: #155724 !important;
}

.sve-th-loss-col {
    background: #fef0f0 !important;
}

.sve-services-table thead tr:nth-child(2) th {
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.sve-services-table tbody td {
    padding: 6px 8px;
    vertical-align: middle;
}

/* Number-Input Spinner-Pfeile entfernen */
.sve-services-table input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.sve-services-table input[type="number"]::-webkit-outer-spin-button,
.sve-services-table input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sve-services-table .sve-service-name {
    width: 140px;
    min-width: 120px;
}

.sve-services-table .sve-service-time,
.sve-services-table .sve-service-count {
    width: 45px;
    text-align: center;
}

.sve-services-table .sve-service-price {
    width: 60px;
}

/* Berechnete Werte - feste Breiten für stabile Layout */
.sve-services-table .sve-service-required-price,
.sve-services-table .sve-service-adjustment {
    min-width: 70px;
    white-space: nowrap;
}

.sve-services-table .sve-service-result-single {
    min-width: 80px;
    white-space: nowrap;
}

/* Verlust/Gewinn-Zellen - breitere feste Breiten */
.sve-loss-cell {
    text-align: right;
    font-weight: 500;
    transition: background-color 0.3s ease;
    min-width: 100px;
    white-space: nowrap;
}

.sve-loss-cell.sve-loss-negative {
    background: #f8d7da !important;
    color: #721c24;
}

.sve-loss-cell.sve-loss-positive {
    background: #d4edda !important;
    color: #155724;
}

/* Preisanpassung Markierung */
.sve-service-adjustment.sve-negative {
    color: #dc3545;
    font-weight: 600;
}

.sve-service-adjustment.sve-positive {
    color: #28a745;
    font-weight: 600;
}

/* Summen-Zeile im Footer */
.sve-services-total {
    background: #f8f9fa;
    border-top: 2px solid #dee2e6;
}

.sve-services-total td {
    padding: 10px 8px !important;
    font-weight: 600;
}

.sve-services-total {
    border-top: 3px solid #333 !important;
    background-color: #f0f0f0 !important;
}

.sve-services-total td {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.sve-services-total #sve-loss-footer-label {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.sve-services-total .sve-loss-cell {
    font-weight: 700;
    font-size: 18px !important;
}

/* Status-Box */
.sve-loss-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.sve-loss-status.sve-loss-negative {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.sve-loss-status.sve-loss-positive {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Puls-Animation beim Statuswechsel */
@keyframes sve-status-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px 5px currentColor;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 currentColor;
    }
}

.sve-loss-status.sve-status-pulse {
    animation: sve-status-pulse 0.6s ease-out;
}

.sve-loss-status.sve-loss-negative.sve-status-pulse {
    box-shadow: 0 0 20px 5px rgba(114, 28, 36, 0.4);
}

.sve-loss-status.sve-loss-positive.sve-status-pulse {
    box-shadow: 0 0 20px 5px rgba(21, 87, 36, 0.4);
}

.sve-loss-icon {
    font-size: 24px;
}

.sve-loss-text {
    /* Text nicht mehr flex: 1, damit Icon und Text zusammen zentriert bleiben */
}

/* ============================================
   TAB NAVIGATION
   ============================================ */

.sve-tab-navigation {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 20px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sve-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 10px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

.sve-tab-btn:hover {
    background: #e8f4fc;
    border-color: #3498db;
    color: #3498db;
}

.sve-tab-btn.active {
    background: #3498db;
    border-color: #3498db;
    color: #fff;
}

.sve-tab-icon {
    font-size: 14px;
}

.sve-tab-label {
    flex: 1;
}

/* Tab Content */
.sve-tab-content {
    display: none;
}

.sve-tab-content.active {
    display: block;
}

/* ============================================
   CONTROLLING TAB
   ============================================ */

/* Header mit Jahresziel */
.sve-controlling-header {
    margin-bottom: 30px;
}

.sve-year-goal {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 100%);
    border: 1px solid #d0e3f0;
    border-radius: 12px;
    padding: 24px;
}

.sve-year-goal-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.sve-year-goal-label strong {
    font-size: 24px;
    color: #2c3e50;
}

.sve-year-goal-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.sve-year-goal-progress {
    flex: 1;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.sve-year-goal-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    border-radius: 12px;
    transition: width 0.5s ease;
    position: relative;
}

.sve-year-goal-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
    border-radius: 12px 12px 0 0;
}

.sve-year-goal-percent {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
    min-width: 60px;
    text-align: right;
}

.sve-year-goal-current {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.sve-year-goal-current strong {
    font-size: 18px;
    color: #2c3e50;
}

.sve-year-goal-diff {
    color: #e74c3c;
    font-weight: 600;
}

.sve-year-goal-diff.positive {
    color: #27ae60;
}

/* Controlling Tabelle - Horizontales Layout (Monate als Spalten) */
.sve-controlling-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.sve-controlling-table.sve-controlling-horizontal {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.sve-controlling-table.sve-controlling-horizontal th,
.sve-controlling-table.sve-controlling-horizontal td {
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    text-align: right;
    white-space: nowrap;
}

/* Header */
.sve-controlling-table.sve-controlling-horizontal th {
    background: #34495e;
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.sve-controlling-table.sve-controlling-horizontal th.sve-controlling-label-cell {
    width: 130px;
    min-width: 130px;
}

.sve-controlling-table.sve-controlling-horizontal th.sve-controlling-month-col {
    width: 85px;
    min-width: 85px;
}

.sve-controlling-table.sve-controlling-horizontal th.sve-controlling-total-col {
    background: #27ae60;
    width: 80px;
    min-width: 80px;
}

/* Label-Spalte (erste Spalte) */
.sve-controlling-table.sve-controlling-horizontal td.sve-controlling-label {
    text-align: left;
    font-weight: 500;
    background: #f8f9fa;
    color: #34495e;
}

/* Reset-Button im Controlling */
.sve-reset-controlling-btn {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    cursor: pointer;
    vertical-align: middle;
}

.sve-reset-controlling-btn:hover {
    background: #c0392b;
}

/* Soll-Zeilen */
.sve-controlling-row-soll td {
    background: #f0f7ff;
}

.sve-controlling-row-soll td.sve-controlling-label {
    background: #e3eef8;
}

/* Ist-Zeilen */
.sve-controlling-row-ist td {
    background: #fff;
}

.sve-controlling-row-ist td.sve-controlling-label {
    background: #f8f9fa;
}

/* Ist-Input-Felder */
.sve-controlling-ist-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: right;
    font-size: 14px;
    -moz-appearance: textfield;
}

/* Pfeile bei number-Inputs entfernen */
.sve-controlling-ist-input::-webkit-outer-spin-button,
.sve-controlling-ist-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sve-controlling-ist-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Diff-Zeilen */
.sve-controlling-row-diff td {
    font-weight: 600;
    background: #fafafa;
}

.sve-controlling-row-diff td.sve-controlling-label {
    background: #f0f0f0;
}

/* Diff positive/negative Farben */
.sve-controlling-diff-cell.positive,
.sve-controlling-diff-total.positive,
.sve-controlling-gesamt-diff-cell.positive,
.sve-controlling-gesamt-diff-total.positive {
    color: #27ae60;
    background: #e8f8f0 !important;
}

.sve-controlling-diff-cell.negative,
.sve-controlling-diff-total.negative,
.sve-controlling-gesamt-diff-cell.negative,
.sve-controlling-gesamt-diff-total.negative {
    color: #e74c3c;
    background: #fdf2f2 !important;
}

/* Trennlinien zwischen Personen */
.sve-controlling-separator td {
    padding: 0;
    height: 8px;
    background: #e8ecef;
    border-left: none;
    border-right: none;
}

.sve-controlling-separator-total td {
    height: 12px;
    background: #34495e;
}

/* Gesamt-Zeilen am Ende */
.sve-controlling-gesamt td {
    font-weight: 700;
}

.sve-controlling-gesamt.sve-controlling-row-soll td {
    background: #e3eef8;
}

.sve-controlling-gesamt.sve-controlling-row-ist td {
    background: #f0f7ff;
}

.sve-controlling-gesamt.sve-controlling-row-diff td {
    background: #eef2f5;
}

/* Gesamt-Totals (letzte Spalte) */
.sve-controlling-soll-total,
.sve-controlling-ist-total,
.sve-controlling-diff-total,
.sve-controlling-gesamt-soll-total,
.sve-controlling-gesamt-ist-total,
.sve-controlling-gesamt-diff-total {
    font-weight: 700;
    background: #f5f5f5 !important;
    border-left: 2px solid #34495e !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sve-controlling-table {
        font-size: 11px;
    }

    .sve-controlling-table th,
    .sve-controlling-table td {
        padding: 6px 8px;
    }

    .sve-controlling-table .sve-controlling-ist input {
        width: 70px;
        font-size: 11px;
    }
}

/* ============================================
   MITARBEITER-ANSICHT (Employee View)
   ============================================ */

/* Trennlinie vor Mitarbeiter-Tabs */
.sve-employee-tabs-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 15px 0;
}

/* Mitarbeiter-Tabs Container */
.sve-employee-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Mitarbeiter-Tab-Buttons */
.sve-employee-tab-btn {
    font-size: 11px !important;
    padding: 8px 8px !important;
}

.sve-employee-tab-btn .sve-tab-icon {
    font-size: 12px;
}

/* Mitarbeiter-Ansicht Layout */
.sve-employee-view {
    padding-bottom: 30px;
}

.sve-employee-view h2 {
    margin-bottom: 25px;
    color: #303030;
    font-size: 24px;
    border-bottom: 2px solid #E17A00;
    padding-bottom: 10px;
}

/* Mitarbeiter-Daten Zeile oben */
.sve-employee-data-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sve-emp-data-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sve-emp-data-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.sve-emp-data-value {
    font-size: 16px;
    font-weight: 600;
    color: #303030;
}

.sve-emp-data-item.sve-emp-data-highlight {
    padding: 8px 15px;
    background: #e8f4fc;
    border-radius: 6px;
    margin: -8px 0;
}

.sve-emp-data-item.sve-emp-data-highlight .sve-emp-data-label {
    color: #2980b9;
}

.sve-emp-data-item.sve-emp-data-highlight .sve-emp-data-value {
    color: #2980b9;
    font-size: 18px;
}

/* Mitarbeiter Fortschrittsbalken */
.sve-employee-progress-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.sve-employee-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.sve-employee-progress-label {
    font-size: 14px;
    color: #555;
}

.sve-employee-progress-label strong {
    color: #34495e;
    font-size: 16px;
}

.sve-employee-progress-current {
    font-size: 14px;
    color: #555;
}

.sve-employee-progress-current strong {
    color: #2980b9;
    font-size: 16px;
}

.sve-emp-progress-diff {
    font-size: 14px;
    margin-left: 5px;
}

.sve-emp-progress-diff.positive {
    color: #27ae60;
}

.sve-emp-progress-diff.negative {
    color: #e74c3c;
}

.sve-employee-progress-bar-container {
    background: #e0e0e0;
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.sve-employee-progress-bar {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    transition: width 0.5s ease, background 0.3s ease;
    min-width: 0;
}

.sve-employee-progress-percent {
    text-align: right;
    margin-top: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

@media (max-width: 600px) {
    .sve-employee-data-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* Kombinierte Tabelle: Zielerreichung + Abwesenheit */
.sve-employee-combined-section {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow-x: auto;
}

.sve-employee-combined-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    font-size: 14px;
}

.sve-employee-combined-table th {
    background: #34495e;
    color: #fff;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.sve-employee-combined-table th.col-monat {
    text-align: left;
    min-width: 80px;
}

.sve-employee-combined-table th.col-soll,
.sve-employee-combined-table th.col-ist,
.sve-employee-combined-table th.col-diff {
    min-width: 75px;
}

.sve-employee-combined-table th.col-perh {
    min-width: 60px;
}

.sve-employee-combined-table th.col-urlaub,
.sve-employee-combined-table th.col-krank,
.sve-employee-combined-table th.col-uestd {
    background: #2980b9;
    min-width: 70px;
}

.sve-employee-combined-table th.col-kommentar {
    background: #7f8c8d;
    min-width: 200px;
    text-align: left;
    padding-left: 12px;
}

.sve-employee-combined-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
    white-space: nowrap;
}

.sve-employee-combined-table td.col-monat {
    text-align: left;
    color: #333;
    font-weight: 500;
}

.sve-employee-combined-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.sve-employee-combined-table tbody tr:hover {
    background: #f0f7ff;
}

/* Input-Felder in der kombinierten Tabelle */
.sve-employee-combined-table td.col-urlaub,
.sve-employee-combined-table td.col-krank,
.sve-employee-combined-table td.col-uestd {
    background: #f8fbff;
    text-align: center;
    padding: 3px 4px;
}

.sve-employee-combined-table .sve-absence-input {
    width: 100%;
    max-width: 55px;
    padding: 4px 4px;
    border: 1px solid #ccc;
    border-radius: 3px;
    text-align: center;
    font-size: 13px;
    -moz-appearance: textfield;
}

.sve-employee-combined-table .sve-absence-input::-webkit-outer-spin-button,
.sve-employee-combined-table .sve-absence-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sve-employee-combined-table .sve-absence-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Summen-Zeile */
.sve-combined-totals {
    background: #e8ecef !important;
    border-top: 3px solid #34495e;
}

.sve-combined-totals td {
    padding: 12px 10px !important;
    font-weight: 600;
}

.sve-combined-totals td.col-urlaub,
.sve-combined-totals td.col-krank,
.sve-combined-totals td.col-uestd {
    background: #dce8f4 !important;
}

/* Kommentar-Spalte */
.sve-employee-combined-table td.col-kommentar {
    text-align: left;
    padding: 6px 12px;
    vertical-align: middle;
    white-space: normal;
}

.sve-employee-combined-table .sve-comment-input {
    width: 100%;
    min-height: 24px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    font-family: inherit;
    background: #fafafa;
    resize: none;
    overflow: hidden;
    box-sizing: border-box;
}

.sve-employee-combined-table .sve-comment-input:focus {
    outline: none;
    border-color: #7f8c8d;
    background: #fff;
}

/* Notizen-Bereich */
.sve-employee-notes-section {
    margin-top: 20px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sve-employee-notes-section label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #34495e;
    margin-bottom: 10px;
}

.sve-employee-notes {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    background: #fafafa;
    resize: vertical;
    box-sizing: border-box;
}

.sve-employee-notes:focus {
    outline: none;
    border-color: #3498db;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sve-employee-notes::placeholder {
    color: #999;
    font-style: italic;
}

/* Farben fuer positive/negative Werte */
.sve-emp-goal-diff.positive,
.sve-emp-goal-perh.positive {
    color: #27ae60;
    font-weight: 600;
}

.sve-emp-goal-diff.negative,
.sve-emp-goal-perh.negative {
    color: #e74c3c;
    font-weight: 600;
}

/* Abwesenheits-Zusammenfassung */
.sve-absence-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.sve-absence-summary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 18px;
    border-radius: 8px;
    background: #f5f5f5;
}

.sve-absence-summary-urlaub {
    background: #e8f4fc;
    border: 1px solid #bee5eb;
}

.sve-absence-summary-krank {
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.sve-absence-summary-krank.warning {
    background: #fff3cd;
    border: 1px solid #f39c12;
}

.sve-absence-summary-uestd {
    background: #f5f5f5;
    border: 1px solid #ddd;
}

.sve-absence-summary-uestd.warning {
    background: #fff3cd;
    border: 1px solid #f39c12;
}

.sve-absence-summary-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sve-absence-summary-input label {
    font-weight: 600;
    font-size: 13px;
    color: #34495e;
}

.sve-absence-summary-input input {
    width: 50px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    -moz-appearance: textfield;
}

.sve-absence-summary-input input::-webkit-outer-spin-button,
.sve-absence-summary-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sve-absence-summary-value {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sve-absence-summary-label {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.sve-absence-summary-number {
    font-size: 20px;
    font-weight: 700;
    color: #2980b9;
}

.sve-absence-summary-urlaub .sve-absence-summary-number {
    color: #27ae60;
}

.sve-absence-summary-urlaub .sve-absence-summary-number.negative {
    color: #e74c3c;
}

.sve-absence-summary-krank .sve-absence-summary-number {
    color: #333;
}

.sve-absence-summary-krank .sve-absence-summary-number.warning {
    color: #f39c12;
}

.sve-absence-summary-uestd .sve-absence-summary-number {
    color: #333;
}

.sve-absence-summary-uestd .sve-absence-summary-number.warning {
    color: #f39c12;
}

/* Legacy Abwesenheits-Header (fuer Kompatibilitaet) */
.sve-absence-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 12px;
    background: #e8f4fc;
    border-radius: 6px;
    flex-wrap: wrap;
}

.sve-absence-header label {
    font-weight: 600;
    font-size: 13px;
    color: #34495e;
}

.sve-absence-header input {
    width: 50px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}

.sve-absence-vacation-rest {
    margin-left: auto;
    font-size: 13px;
    color: #666;
}

.sve-absence-vacation-rest strong {
    color: #27ae60;
    font-size: 14px;
}

.sve-absence-vacation-rest strong.negative {
    color: #e74c3c;
}

/* Abwesenheits-Tabelle */
.sve-employee-absence-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.sve-employee-absence-table th {
    background: #34495e;
    color: #fff;
    padding: 8px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
}

.sve-employee-absence-table th:first-child {
    text-align: left;
}

.sve-employee-absence-table td {
    padding: 4px 6px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
}

.sve-employee-absence-table td:first-child {
    text-align: left;
    color: #666;
}

.sve-employee-absence-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.sve-employee-absence-table input {
    width: 45px;
    padding: 4px 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-align: center;
    font-size: 11px;
}

.sve-employee-absence-table input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Summen-Zeile */
.sve-absence-totals {
    background: #f5f5f5 !important;
    border-top: 2px solid #34495e;
}

.sve-absence-totals td {
    padding: 8px 6px !important;
}

.sve-absence-totals strong {
    color: #303030;
}

/* ================================================
   MOBILE OPTIMIERUNG
   ================================================ */

/* Mobile Sidebar Toggle Button - standardmäßig versteckt */
.sve-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sve-sidebar-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.sve-sidebar-toggle:active {
    transform: scale(0.95);
}

/* Sidebar Overlay Backdrop */
.sve-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sve-sidebar-overlay.active {
    opacity: 1;
}

/* Tablet und kleiner */
@media (max-width: 1024px) {
    /* Container Layout anpassen */
    .sve-calculator-container {
        flex-direction: column;
    }

    /* Sidebar als Overlay */
    .sve-calculator-sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        height: 100%;
        max-height: 100vh;
        max-height: 100dvh; /* Dynamic viewport height - berücksichtigt mobile Browser UI */
        z-index: 1002;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding: 20px 15px;
        box-shadow: 2px 0 15px rgba(0,0,0,0.3);
        display: flex;
        flex-direction: column;
    }

    /* WordPress Admin Bar berücksichtigen */
    .admin-bar .sve-calculator-sidebar {
        top: 32px;
        height: calc(100% - 32px);
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }

    /* Mobile Admin Bar ist kleiner */
    @media (max-width: 782px) {
        .admin-bar .sve-calculator-sidebar {
            top: 46px;
            height: calc(100% - 46px);
            max-height: calc(100vh - 46px);
            max-height: calc(100dvh - 46px);
        }
    }

    .sve-calculator-sidebar.open {
        left: 0;
    }

    /* Toggle Button anzeigen */
    .sve-sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Overlay anzeigen */
    .sve-sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sve-sidebar-overlay.active {
        pointer-events: auto;
    }

    /* Tab Navigation vertikal */
    .sve-tab-navigation {
        flex-direction: column;
        gap: 8px;
    }

    .sve-tab-btn {
        width: 100%;
        text-align: left;
        padding: 12px 15px;
    }

    /* Lizenz-Card */
    .sve-license-card.sve-license-bottom {
        margin-top: auto;
    }

    /* Main Content nimmt volle Breite */
    .sve-calculator-main {
        width: 100%;
        min-width: 0;
    }
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    /* Main Content */
    .sve-calculator-main {
        padding: 15px;
    }

    .sve-calculator-main h2 {
        font-size: 20px;
    }

    .sve-calc-section h3 {
        font-size: 14px;
    }

    /* Employees Wrapper - kein horizontales Scrollen auf Mobile */
    .sve-employees-wrapper {
        overflow-x: visible;
        overflow-y: visible;
        width: 100%;
        max-width: 100%;
    }

    /* Planzahlen Tabelle - Input mit Euro inline */
    .sve-data-table {
        font-size: 13px;
    }

    .sve-data-table th,
    .sve-data-table td {
        padding: 8px 6px;
    }

    .sve-data-table th:first-child,
    .sve-data-table td:first-child {
        min-width: 90px;
    }

    /* Input-Wrapper für Euro inline */
    .sve-data-table td {
        white-space: nowrap;
    }

    .sve-input-number {
        width: 70px;
        padding: 6px 8px;
        font-size: 13px;
    }

    .sve-data-table .currency-suffix {
        display: inline;
        margin-left: 4px;
    }

    /* Mitarbeiter Section */
    .sve-employees-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sve-employees-params {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }

    .sve-employees-params .sve-param {
        flex: 1 1 45%;
        min-width: 0;
    }

    /* Faktor/Arbeitswochen Settings Box - Text umbrechen */
    .sve-employee-settings {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .sve-employee-settings > div {
        flex-wrap: wrap !important;
        width: 100%;
    }

    .sve-employee-settings label {
        white-space: normal !important;
        flex: 1 1 100%;
        margin-bottom: 5px;
    }

    /* Mitarbeiter Tabellen-Header - auf Mobil ausblenden */
    .sve-employees-table-header,
    .sve-employee-header {
        display: none !important;
    }

    /* Mitarbeiter Zeilen - Mobile Card Layout - Einspaltiges Layout */
    .sve-employee-row {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 10px;
        padding: 15px;
        margin-bottom: 12px;
        background: #fff;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-shadow: 0 1px 3px rgba(0,0,0,0.08);
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box;
    }

    .sve-employee-row > div {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
        box-sizing: border-box;
        /* Desktop-Trennlinien entfernen */
        border-left: none !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .sve-employee-row > div::before {
        font-weight: 600;
        color: #666;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        flex-shrink: 0;
        min-width: 70px;
    }

    /* Name - volle Breite oben */
    .sve-employee-row > div:nth-child(1) {
        flex-direction: column;
        align-items: stretch;
    }
    .sve-employee-row > div:nth-child(1)::before { content: "NAME"; display: block; margin-bottom: 5px; }

    /* Name-Zelle mit Azubi-Toggle - Mobile Layout */
    .sve-employee-row .sve-employee-name-cell {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .sve-employee-row .sve-employee-name-cell input[type="text"] {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    /* Azubi Toggle Mobile - kleiner und kompakter */
    .sve-employee-row .sve-azubi-toggle {
        flex-shrink: 0 !important;
        width: 32px !important;
        height: 18px !important;
    }

    .sve-employee-row .sve-azubi-slider:before {
        height: 12px !important;
        width: 12px !important;
        left: 3px !important;
        bottom: 3px !important;
    }

    .sve-employee-row .sve-azubi-toggle input:checked + .sve-azubi-slider:before {
        transform: translateX(14px) !important;
    }

    /* Azubi Tooltip auf Mobile ausblenden */
    .sve-employee-row .sve-azubi-toggle::after,
    .sve-employee-row .sve-azubi-toggle::before {
        display: none !important;
    }

    /* Alle Felder untereinander mit Label links, Wert rechts */
    .sve-employee-row > div:nth-child(2)::before { content: "BRUTTO"; }
    .sve-employee-row > div:nth-child(3)::before { content: "ZUSATZ"; }
    .sve-employee-row > div:nth-child(4)::before { content: "STD/W"; }
    .sve-employee-row > div:nth-child(5)::before { content: "STD-LOHN"; }

    /* Kosten - mit Trennlinie */
    .sve-employee-row > div:nth-child(6) {
        padding-top: 10px;
        border-top: 1px solid #eee;
        margin-top: 5px;
    }
    .sve-employee-row > div:nth-child(6)::before { content: "LOHNKOSTEN"; }

    /* Actions-Button - rechtsbündig */
    .sve-employee-row > div:nth-child(7) {
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #eee;
        margin-top: 4px;
    }
    .sve-employee-row > div:nth-child(7)::before { display: none; }

    /* Inputs - flexible Breite */
    .sve-employee-row input[type="text"],
    .sve-employee-row input[type="number"] {
        width: auto;
        min-width: 80px;
        max-width: 120px;
        flex-shrink: 0;
        text-align: right !important;
    }

    /* Name Input - volle Breite */
    .sve-employee-row > div:nth-child(1) input[type="text"] {
        text-align: left !important;
        font-weight: 600;
        font-size: 15px;
        padding: 10px 12px;
        width: 100% !important;
        max-width: none !important;
    }

    /* Name-Zelle: Input nimmt restlichen Platz, Toggle bleibt rechts */
    .sve-employee-row .sve-employee-name-cell input.sve-employee-input[data-field="name"] {
        flex: 1 1 0 !important;
        width: 0 !important;
        min-width: 0 !important;
    }

    /* Einheiten (€, Std) inline anzeigen - Input und Einheit zusammenhalten */
    .sve-employee-row > div > span {
        flex-shrink: 0;
        font-size: 13px;
        color: #666;
    }

    /* Input und Einheit zusammen in einer Gruppe */
    .sve-employee-row > div {
        flex-wrap: wrap;
    }

    .sve-employee-row > div input,
    .sve-employee-row > div > span:not(:first-child) {
        flex-shrink: 0;
    }

    /* Std-Lohn und Kosten als Text */
    .sve-employee-row > div:nth-child(5),
    .sve-employee-row > div:nth-child(6) {
        font-weight: 600;
        color: #333;
    }

    /* Chef-Zeile */
    .sve-employee-chef .sve-employee-row {
        background: #f5f5f5;
        border-color: #ccc;
    }

    /* Gesamt-Zeile Mitarbeiter */
    .sve-employees-total {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .sve-employees-total > div {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    /* Ergebnisse Tabelle - Horizontal scroll */
    .sve-calc-section:has(.sve-results-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sve-results-table {
        font-size: 12px;
        min-width: 580px;
    }

    .sve-results-table th,
    .sve-results-table td {
        padding: 8px 10px;
        white-space: nowrap;
    }

    /* DL-Preis Kalkulation */
    .sve-dl-price-grid {
        grid-template-columns: 1fr;
    }

    /* DL-Preis Eingabefelder - Inputs schmaler und mit Einheit zusammenhalten */
    .sve-dl-price-settings {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .sve-dl-price-settings > div {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 5px;
    }

    .sve-dl-price-settings label {
        white-space: normal !important;
        flex: 1 1 100%;
        margin-bottom: 2px;
    }

    .sve-dl-price-settings input {
        width: 70px !important;
        flex-shrink: 0;
    }

    .sve-dl-price-settings span {
        flex-shrink: 0;
    }

    /* Controlling Tabelle - Horizontal scroll */
    .sve-controlling-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .sve-controlling-table.sve-controlling-horizontal {
        min-width: 1100px;
        width: max-content;
        font-size: 11px;
        table-layout: fixed;
    }

    .sve-controlling-table.sve-controlling-horizontal th,
    .sve-controlling-table.sve-controlling-horizontal td {
        padding: 5px 4px;
        white-space: nowrap;
        min-width: 70px;
    }

    .sve-controlling-table.sve-controlling-horizontal th:first-child,
    .sve-controlling-table.sve-controlling-horizontal td:first-child {
        min-width: 90px;
        position: sticky;
        left: 0;
        background: inherit;
        z-index: 1;
    }

    .sve-controlling-table.sve-controlling-horizontal th:first-child {
        background: #34495e;
    }

    .sve-controlling-table.sve-controlling-horizontal td.sve-controlling-label {
        background: #fff;
    }

    .sve-controlling-table.sve-controlling-horizontal input {
        width: 50px;
        font-size: 10px;
        padding: 3px;
    }

    /* Dienstleistungen Tabelle - Horizontal scroll */
    .sve-calc-section:has(.sve-services-table) {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sve-services-table {
        min-width: 700px;
        font-size: 12px;
    }

    .sve-services-table th,
    .sve-services-table td {
        padding: 6px 4px;
    }

    .sve-services-table input {
        width: 60px;
        font-size: 12px;
        padding: 4px;
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    /* Toggle Button kleiner */
    .sve-sidebar-toggle {
        width: 48px;
        height: 48px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }

    /* Sidebar schmaler */
    .sve-calculator-sidebar {
        width: 240px;
        left: -250px;
        padding: 15px 12px;
    }

    .sve-tab-btn {
        font-size: 12px;
        padding: 10px 12px;
    }

    .sve-tab-btn .sve-tab-icon {
        display: none;
    }

    /* Main Content */
    .sve-calculator-main {
        padding: 10px;
    }

    .sve-calculator-main h2 {
        font-size: 18px;
    }

    .sve-calc-section {
        padding: 12px;
    }

    .sve-calc-section h3 {
        font-size: 13px;
    }

    /* Planzahlen Tabelle noch kompakter */
    .sve-data-table {
        font-size: 12px;
    }

    .sve-data-table th,
    .sve-data-table td {
        padding: 6px 4px;
    }

    .sve-data-table th:first-child,
    .sve-data-table td:first-child {
        min-width: 70px;
        font-size: 11px;
    }

    .sve-input-number {
        width: 55px;
        padding: 5px 6px;
        font-size: 12px;
    }

    .sve-data-table .currency-suffix {
        font-size: 11px;
    }

    /* Mitarbeiter Cards noch kompakter */
    .sve-employee-row {
        padding: 10px;
        gap: 6px 8px;
    }

    .sve-employee-row > div::before {
        font-size: 10px;
        min-width: 55px;
    }

    .sve-employee-row input[type="text"],
    .sve-employee-row input[type="number"] {
        max-width: 100px;
        font-size: 13px;
    }

    /* Name-Zelle mit Azubi auf kleinen Screens */
    .sve-employee-row .sve-employee-name-cell {
        gap: 8px !important;
    }

    .sve-employee-row .sve-employee-name-cell input[type="text"] {
        font-size: 14px !important;
        padding: 8px 10px !important;
    }

    /* Azubi Toggle noch kleiner auf 480px */
    .sve-employee-row .sve-azubi-toggle {
        width: 28px !important;
        height: 16px !important;
    }

    .sve-employee-row .sve-azubi-slider:before {
        height: 10px !important;
        width: 10px !important;
        left: 3px !important;
        bottom: 3px !important;
    }

    .sve-employee-row .sve-azubi-toggle input:checked + .sve-azubi-slider:before {
        transform: translateX(12px) !important;
    }

    /* Feature Boxen */
    .sve-feature-box {
        padding: 15px;
    }

    /* Buttons */
    .sve-btn-add {
        font-size: 13px;
        padding: 10px 16px;
    }

    .sve-button {
        font-size: 14px;
        padding: 12px 20px;
    }

    /* Ergebnisse */
    .sve-results-highlight {
        padding: 15px;
    }

    .sve-results-highlight .value {
        font-size: 20px;
    }
}

/* === Zusaetzliche Kosten Icon und Popup === */
.sve-service-name-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
}

.sve-service-name-wrapper .sve-service-name {
    flex: 1;
    min-width: 0;
}

.sve-additional-cost-btn {
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f0f0f0;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.sve-additional-cost-btn:hover {
    background: #e0e0e0;
    border-color: #aaa;
    color: #666;
}

.sve-additional-cost-btn.has-cost {
    background: #FFC107;
    border-color: #E17A00;
    color: #333;
}

.sve-additional-cost-btn.has-cost:hover {
    background: #FFD54F;
}

.sve-cost-icon {
    font-style: normal;
    font-weight: bold;
}

/* Popup fuer zusaetzliche Kosten */
.sve-additional-cost-popup {
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    z-index: 1000;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-left: 8px;
    white-space: nowrap;
}

.sve-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #f5f5f5;
    border-bottom: 1px solid #ddd;
    border-radius: 6px 6px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    gap: 10px;
}

.sve-popup-close {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    padding: 0;
    line-height: 1;
}

.sve-popup-close:hover {
    color: #333;
}

.sve-popup-body {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sve-popup-input {
    width: 75px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    text-align: right;
}

.sve-popup-input:focus {
    outline: none;
    border-color: #E17A00;
    box-shadow: 0 0 0 2px rgba(225, 122, 0, 0.2);
}

.sve-popup-save {
    background: #E17A00;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.sve-popup-save:hover {
    background: #c96900;
}
