html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
}
/*Accent Color ist #ff6-600 */
body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

h1, h2, h3 {
    margin: 0;
}

select, input {
    font-size: 18px;
}

input {
    width: 45mm;
}

input[type="submit"] {
    background-color: #333333;
    color: #fff;
    border-radius: 5px;
}

input[type="radio"] {
    width: 5mm;
}

input[type="radio"]:checked {
    accent-color: #ff6600;
    color: #fff;
}

button {
    font-size: 18px;
    /*background-color: rgb(92, 84, 84);*/
    background-color: #333333;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
}

.button { /*zusätzlich als Klasse*/
    font-size: 18px;
    /*background-color: rgb(92, 84, 84);*/
    background-color: #333333;
    color: #fff;
    border-radius: 5px;
    padding: 5px 10px;
    margin-top: 9px;
    margin-bottom: -8px;
}

button a {
    font-size: 18px;
    /*font-weight: 500;*/
    color: white;
    text-decoration: none;
}

.button-speichern {
    background: url(/img/speichern.svg) no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    background-color: #00000011;
}

.button-download {
    display: inline-block;
    background: url(/img/download.svg) no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    background-color: #00000011;
    width: 24px;
    height: 24px;
}

.button-löschen {
    background: url(/img/delete.svg) no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    background-color: #00000011;
}

.button-mglass {
    background: url(/img/mglass.svg) no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    background-color: #00000011;
}

a {
    color: #ff6600;
}

#logoutbutton {
    position: absolute;
    bottom: 2mm;
    right: 20mm;
    padding-left: 2mm;
    padding-right: 2mm;
    background-color: #333333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    z-index: 9999; /* Setze einen höheren Wert als die anderen Elemente */
    font-size: 20px;
}

#logo {
    position: absolute;
    width: 14mm;
    z-index: 9999;
}

.toggle-button {
    width: 10mm;
    margin-right: 3mm;
    padding: 1mm;
    height: 13mm;
}

.PDFanzeigen {
    display: inline-block; /* Damit der Inhalt auf einer Linie bleibt */
    width: auto; /* Oder, falls notwendig: width: 100%; */
    white-space: nowrap; /* Verhindert den automatischen Zeilenumbruch */
}

#objektschließen {
    position: absolute;
    bottom: 2mm;
    left: 2mm;
    background-color: #333333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    height: min-content;
    padding-left: 2mm;
    padding-right: 2mm;
    z-index: 9999; /* Setze einen höheren Wert als die anderen Elemente */
    font-size: 20px;
}

#objektschließenoben {
    margin-left: 3mm;
    padding: 2px;
    background-color: #c0c0c0;
    border: 1px solid #414141;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    height: min-content;
    padding-left: 2mm;
    padding-right: 2mm;
    z-index: 9999; /* Setze einen höheren Wert als die anderen Elemente */
    font-size: 18px;
}


#all-up {
    flex: 1;
    min-width: calc(95vw - 200px); /* 90% der Browserbreite minus der Sidebar */
    margin: 0 auto;
    padding: 14px;
    overflow-y: auto;
    position: relative;
    margin-left: 66mm; /* Platz für die Sidebar */
    padding: 20px;
    padding-top: 15mm; /* Platz für die obere Navbar */
}

#nachObenButton {
    display: none; /* Den Button standardmäßig ausblenden */
    position: fixed;
    bottom: 7mm;
    right: 7mm;
    padding: 10px;
    background-color: #222222;
    color: #fff;
    font-size: 32px;
    text-decoration: none;
    border-radius: 5px;
    height: 30px;
    width: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* Setze einen höheren Wert als die anderen Elemente */
}

.page-break {
    page-break-before: always; /* Oder: page-break-after */
}

.error-message {
    color: red;
    display: block; /* Sicherstellen, dass die Fehlermeldung angezeigt wird */
    margin-top: 20px;
}

.error-message-klein {
    color: red;
    display: block; /* Sicherstellen, dass die Fehlermeldung angezeigt wird */
}

.success-message {
    color: green;
    font-weight: 900;
    display: block; /* Sicherstellen, dass die Erfolgsmeldung angezeigt wird */
    /*margin-top: 20px;*/
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.success-tooltip,
.error-tooltip {
    position: fixed;
    top: 20mm;
    right: 30mm;
    min-width: min-content;
    width: 60mm;
    height: auto;
    background-color: #3ea23e; /* Standard Hintergrund für Erfolg */
    color: white; /* Standard Schriftfarbe */
    padding: 10px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    z-index: 9999; /* Über anderen Inhalten anzeigen */
    opacity: 0; /* Unsichtbar bis zur Anzeige */
    visibility: hidden; /* Tooltip standardmäßig versteckt */
    transition: opacity 1.1s ease, visibility 1.1s ease; /* Sanfter Übergang */
}

/* Erfolgshintergrund */
.success-tooltip {
    background-color: #3ea23e;
}

/* Fehlerhintergrund */
.error-tooltip {
    background-color: #aa0f0f;
}

/* Sichtbarkeit aktivieren */
.success-tooltip.show,
.error-tooltip.show {
    visibility: visible; /* Tooltip sichtbar */
    opacity: 1; /* Voll sichtbar */
}

/* Unsichtbarkeit aktivieren */
.success-tooltip.hide,
.error-tooltip.hide {
    opacity: 0; /* Unsichtbar */
    visibility: hidden; /* Vollständig verstecken */
}

.error-tooltip-fest {
    position: fixed;
    top: 20mm;
    right: 30mm;
    min-width: min-content;
    width: 60mm;
    height: auto;
    background-color: #aa0f0f; /* Fehlerhintergrund */
    color: white; /* Schriftfarbe */
    padding: 10px; /* Innenabstand */
    border-radius: 5px; /* Abgerundete Ecken */
    z-index: 1000; /* Über anderen Inhalten anzeigen */
    display: block; /* Tooltip anfangs block anzeigen */
    opacity: 1; /* sichtbar */
    transition: opacity 3s; /* Sanfter Übergang */
}

.negative {
    color: red;
    font-weight: bold;
}

.ohne-differenz {
    color: #3ea23e;
    font-weight: bold;
}

.ergebnis-fett {
    font-weight: bolder;
}

/** nicht zu druckende Bereiche */
  @media print {
    .no-print {
        display: none !important;
    }
}

/*Status*/
.statusbox {
    display: flex;
    justify-content: flex-end;
    margin: 10px 0 10px auto;
    font-weight: bolder;
    border: 1px solid #d6d6d6;
    padding: 6px 10px;
    width: max-content;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    border-radius: 4px;
}

.statusklein {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    border-radius: 4px;
    white-space: nowrap;
}

.dot {
    width: 10px;
    height: 10px;
    margin-left: 8px;
    background: #2ecc71;
    border-radius: 50%;
    position: relative;
}


.dot::after { /* Puls-Effekt */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #2ecc71;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
    opacity: 0.6;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.status-error .dot {
    background: #e74c3c;
}

.status-error .dot::after {
    background: #e74c3c;
}

.status-warning .dot {
    background: #f1c40f;
}

.status-warning .dot::after {
    background: #f1c40f;
}
/*Ende Status*/


/*Abrechungszentrale*/
.abrechnung-button {
    width: 140px;
}
.abrechnung-schritte {
    background: #f0f0f0;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
    padding: 12px 15px;
}

.abrechnung-schritt {
    display: grid;
    grid-template-columns: 45px minmax(300px, 1fr) auto;
    align-items: center;
    min-height: 38px;
    border-bottom: 1px solid #d8d8d8;
}

.abrechnung-schritt:last-child {
    border-bottom: none;
}

.abrechnung-schritt-nr {
    font-weight: bold;
    color: #555;
}

.abrechnung-schritt-name {
    color: #333;
}

.abrechnung-schritt-status {
    min-width: 30px;
    text-align: center;
}

.abrechnung-problem {
    margin-top: 12px;
    padding: 12px 15px;
    background: #e7e7e7;
    border: 1px solid #c8c8c8;
    border-radius: 4px;
}

.abrechnung-problem-titel {
    font-weight: bold;
    margin-bottom: 8px;
}

.abrechnung-problem-details {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f5f5f5;
    border: 1px solid #d0d0d0;
}

.abrechnung-problem-summary {
    cursor: pointer;
    font-weight: normal;
}




 








/*alter Version*/
.abrechnung-erstellung {
    margin-top: 20px;
}

.abrechnung-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background: #f7f7f7;
}

.abrechnung-status-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #e5e5e5;

    font-size: 18px;
    font-weight: bold;
}

.abrechnung-status-inhalt {
    min-width: 0;
}

.abrechnung-status-titel {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.abrechnung-status-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.abrechnung-status-erfolg {
    background: #f1f8f2;
    border-color: #b9d8bd;
}

.abrechnung-status-erfolg .abrechnung-status-icon {
    background: #d7ebda;
    color: #28743c;
}

.abrechnung-status-laeuft {
    background: #f7f7f7;
    border-color: #d5d5d5;
}

.abrechnung-status-fehler {
    background: #fff4f4;
    border-color: #e0bcbc;
}

.abrechnung-status-fehler .abrechnung-status-icon {
    background: #f0d4d4;
    color: #a33a3a;
}


.abrechnung-start {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 18px;
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    background: #f7f7f7;
}

.abrechnung-start-text {
    min-width: 0;
}

.abrechnung-start-titel {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.abrechnung-start-beschreibung {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

@media (max-width: 700px) {

    .abrechnung-start {
        flex-direction: column;
        align-items: flex-start;
    }

}
/*Ende Abrechungszentrale*/



/*Login*/
.login-tab {
    width: 120mm;
    margin-left: 14%;
    margin-top: 10vh;
    background: linear-gradient(to bottom, #333333, #5f5f5f); /* Farbverlauf von Dunkelgrau nach Weiß */
    color: #fff;
}

.login-tab td {
    border: none;
}

.login-seite-bg {
    position: relative;              /* Ermöglicht die Positionierung des Pseudoelements */
    background-image: url('/img/bg.jpg');
    background-size: cover;          /* Skaliert das Bild */
    background-repeat: no-repeat;    /* Verhindert Wiederholung */
    background-position: center;     /* Zentriert das Bild */
    height: 100%;
    overflow: hidden;                /* Verhindert Überlauf des Pseudoelements */
}

.login-seite-bg::after {
    content: '';                     /* Pseudoelement erzeugen */
    position: absolute;              /* Absolut über das Eltern-Element legen */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ffffff21; /* Halbtransparente weiße Überlagerung */
    pointer-events: none;            /* Verhindert, dass die Überlagerung anklickbar ist */
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-tab {
        width: 90%;                  /* Reduziert die Breite für kleinere Bildschirme */
        margin-left: 1mm;             /* Kleinerer Abstand zum Rand */
        margin-top: 14mm;             /* Weniger vertikaler Abstand */
    }
}

@media (max-width: 480px) {
    .login-tab {
        width: 95%;                  /* Noch schmaler auf sehr kleinen Bildschirmen */
        margin-left: 2.5%;           /* Zentriert mit kleinerem Rand */
        margin-top: 14mm;             /* Weniger vertikaler Abstand */
    }
}


/* Beginn Footer */
.footer {
    position: fixed; /* Footer am unteren Rand fixieren */
    bottom: 0;
    left: 50%; /* Zentrum des Viewports */
    transform: translateX(-50%); /* Horizontal zentrieren */
    width: 94%; /* Gleiche Breite wie #all-up */
    max-width: 1600px; /* Gleiche maximale Breite wie #all-up */
    padding: 1px; /* Beispiel Innenabstand */
    z-index: 1000; /* Sicherstellen, dass der Footer über anderen Inhalten liegt */
}

.hauptdiv {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1mm;
}

.mobileinblenden {
    display: none !important; /* An kleinen Bildschirmen ausgeblendet */
}

.pceinblenden {
    display: block; /* An großen Bildschirmen eingeblendet */
}

/* Tabelle Einzelabrechnung */
table {
    width: 100%;
    border-collapse: collapse;
}
table, th, td {
    border: 1px solid black;
}
td {
    padding: 8px;
    text-align: left;
}


/*Bereich HKA Einzelabrechnung*/
.hka-einzeln-a4 {
    margin-left: 30mm;
    width: 210mm;
    height: 297mm;
    /*background-color: #f7f7f7;*/
}
.hka-einzeln-drei {
    width: 206mm;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2mm;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-kopf-adresse {
    flex: 1; /* Nimmt 1 Teil des verfügbaren Platzes ein */
    display: flex;
    flex-direction: column;
}

.hka-einzeln-kopf-mitte {
    flex: 1; /* Nimmt 1 Teil des verfügbaren Platzes ein */
    text-align: center; /* Text zentrieren */
    display: flex;
    flex-direction: column;
}

.hka-einzeln-kopf-rechts {
    flex: 1; /* Nimmt 1 Teil des verfügbaren Platzes ein */
    text-align: right; /* Text am rechten Rand ausrichten */
    display: flex;
    flex-direction: column;
}

.hka-einzeln-heizkosten {
    width: 100mm; 
    text-align: left; 
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.hka-einzeln-mitte-leer {
    width: 10mm; 
    background-color: #fff;
    text-align: left; /* Text am rechten Rand ausrichten */
    display: flex;
    flex-direction: column;
}

.hka-einzeln-wasserkosten {
    width: 100mm; 
    text-align: left; 
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.hka-einzeln-elf {
    width: 206mm;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    font-size: 4mm;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-1 {
    width: 12mm;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    text-align: right;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-2 {
    width: 35mm;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    /*text-align: right;*/
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-3 {
    width: 25mm;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    text-align: right;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-4 {
    width: 2mm;
    display: block; /* Verhindert Flexbox-Anordnung */
    text-align: right;
    padding: 2px;
    background-color: #fff;
    position: relative;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-4a {
    white-space: nowrap; /* Verhindert Zeilenumbrüche innerhalb des Divs */
    overflow: visible; /* Der Text wird über den Container hinaus angezeigt */
    display: block; /* Stellt sicher, dass der Text in einer neuen Zeile beginnt */
}

.hka-einzeln-berechnung-5 {
    width: 45mm;
    display: flex;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-6 {
    width: 22mm;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-7 {
    width: 28mm;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-8 {
    width: 23mm;
    justify-content: space-between; 
    align-items: flex-start; 
    padding: 2px;
    background-color: #fff;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
}

.hka-einzeln-berechnung-9 {
    width: 75mm;
    margin-left: auto; /* Verschiebt den div nach rechts */
    padding: 2px;
    background-color: #fff;
    margin-bottom: 15px; /* Optional: Abstand nach unten */
    margin-right: 15px; 
    text-align: right; /* Text innerhalb des div rechtsbündig */
}


/* Einzelabrechnung PDF – dynamische Seitenumbrüche */
.abrechnung-block {
    page-break-inside: avoid;
    break-inside: avoid;
}

/* Sortierbare Spalten */
.sortierbare-tabelle th.sortable:after {
    content: " ▼";
    font-size: 0.8em;
}
.sortierbare-tabelle th.sortable.asc:after {
    content: " ▲";
}


/*sonstiges*/
.feld-nuransicht input {
    background-color: #f0f0f0; /* Setzt die Hintergrundfarbe auf grau */
    width: 40mm; /* Setzt die Breite des Eingabefeldes auf 2 cm */
    border: 1px solid #ccc; /* Optional: fügt eine Rahmenfarbe hinzu */
    font-size: 14px;
}

.feld-nuransicht-weit input {
    background-color: #f0f0f0; /* Setzt die Hintergrundfarbe auf grau */
    width: 45mm; /* Setzt die Breite des Eingabefeldes auf 2 cm */
    border: 1px solid #ccc; /* Optional: fügt eine Rahmenfarbe hinzu */
    font-size: 18px;
}

.button-schloss { /*zusätzlich als Klasse*/
    font-size: 18px;
    background-color: #fff;
    border: 1px solid #fff;


}

#uebersicht {
    position: absolute;
    top: 2mm;
    right: 2mm;
    background-color: #e6e6e6;
    padding: 10px;
    border-radius: 5px;
    max-width: max-content;
    color: #333333;
}

/*Wasserkosten*/
.wasserkosten-tab {
    width: 100%;
    border: #333333;
}

.wasserkosten-tab tr:hover {
    background-color: #ff660017;
}

.wasserkosten-tab tr:hover .wasserkosten-tab-label {
    background-color: #ff660017; /* Überschreibt den Hintergrund von wasserkosten-tab-label im Hover */
}

.wasserkosten-tab-label {
    width: 130mm;
    background-color: #f5f5f5;
}

.wasserkosten-tab-netto {
    width: 35mm;
    text-align: right;
}

.wasserkosten-tab-mwst {
    width: 35mm;
    text-align: right;
}

.wasserkosten-tab-brutto {
    width: 35mm;
    text-align: right;
}

.wasserkosten-tab-luecke {
    width: 70mm;
}

.wasserkosten-tab-luecke-zum-vorjahr {
    width: 10mm;
    border: none;
}

.wasserkosten-tab-luecke-zum-vorjahr:hover {
    background-color: #fff;
}

.wasserkosten-abstand {
    border: none;
}

.wasserkosten-abstand:hover {
    background-color: #fff;
}
/* Ende Wasserkosten*/


/*Dienstleistung*/
.dienstleistung-tab-label {
    width: 110mm;
    background-color: #f5f5f5;
}

.dienstleistung-tab-luecke-zum-vorjahr {
    width: 10mm;
    border: none;
}

.dienstleistung-tab-input {
    width: 100mm;
}

.dienstleistung-tab tr:hover {
    background-color: #ff660010; 
}

.dienstleistung-tab tr:hover .dienstleistung-tab-label {
    background-color: #ff660017;
}
/*Ende Dienstleistung*/


/*Stammdaten*/
.stammdaten-tab th {
    background-color: #f5f5f5;
    height: 10mm;
}

.stammdaten-tab-summe {
    background-color: #f5f5f5;
    height: 8mm;
    font-weight: 900;
}

.stammdaten-einstellungen-monat {
    width: 45mm;
    background-color: #fff;
}

.stammdaten-einstellungen-monat-readonly {
    width: 45mm;
    background-color: #f5f5f5;
    border: 1px solid #8f8f9d;
    font-size: 18px;
    color: #2c2c2c;
    padding: 2px;
}

.stammdaten-einstellungen-readonly {
    background-color: #e9e9e9; /* Grauer Hintergrund für das Feld */
    border: 1px solid #2c1717; /* Grauer Rand */
    color: #6c6c6c;           /* Graue Schriftfarbe */
    pointer-events: none;     /* Deaktiviert Interaktionen */
}

    .stammdaten-tab-drucken {
        width: 100%;
        max-width: 210mm;
        border-collapse: collapse;
    }

    .stammdaten-tab-drucken th, .stammdaten-tab-drucken td {
        border: 2px solid #000;
        padding: 8px;
        text-align: left;
    }

    .stammdaten-tab-drucken th {
        background-color: #cccccc;
    }

/*Ende Stammdaten*/


/*Kostenaufstellung*/
.kostenaufstellung-tab {
    width: 290mm;
    border-collapse: collapse;
}

.kostenaufstellung-seite2 {
    font-weight: bold;
    writing-mode: vertical-lr;
    transform: rotate(180deg); 
    text-align: center;
    vertical-align: middle; /* Vertikale Zentrierung */
        white-space: nowrap;  
    width: 7mm;
    border: 1px solid black;
    padding: 0;
    position: relative;
    z-index: 1;
    line-height: 0.5; /* Zeilenhöhe auf Standard setzen */
    background-color: #3ea23e;
}

.kostenaufstellung-seite {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    width: 7mm;
    border: 1px solid black;
    padding: 0;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    font-weight: bold;
    height: 100%;
    position: relative;
}

.kostenaufstellung-seite-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    writing-mode: vertical-lr;
    white-space: nowrap;
}



.kostenaufstellung-seite::before {
    content: ''; /* Leeres Element */
    display: inline-block;
    height: 100%; /* Nimmt den verfügbaren Platz ein */
    padding-right: 2mm;
    vertical-align: middle; /* Zentrierung */
}

.kostenaufstellung-tab-label {
    width: 100mm;
    background-color: #f5f5f5;
}

.kostenaufstellung-seite-wärme {
    background-color: #ffc38c;
    padding: 0.1pt;
}

.kostenaufstellung-seite-wärme {
    background-color: #ffc38c;
    padding: 0.1pt;
}

.kostenaufstellung-seite-kaltwasser {
    background-color: #aee8ff;
}

.kostenaufstellung-seite-warmwasser {
    background: linear-gradient(to bottom, #aee8ff, #ffc38c);
}

.kostenaufstellung-seite-gartenwasser {
    background-color: #c7ffa7;
}

.kostenaufstellung-seite-lücke {
    border: 1px solid black;
}

.kostenaufstellung-tab tr:hover {
    background-color: #ff660010; 
}

.kostenaufstellung-tab tr:hover .kostenaufstellung-tab-label {
    background-color: #ff660017;
}

.kostenaufstellung-tab-gw {
    display: inline-block; /* Macht das Span-Element breitenfähig */
    width: 20mm; 
}
/*Ende Kostenaufstellung*/

/*WEG: Nutzer*/
.weg-nutzer-tab {
    width: 290mm;
    border-collapse: collapse;
}

.weg-nutzer-seite {
    font-weight: bold;
    writing-mode: vertical-lr;
    transform: rotate(180deg); 
    text-align: center;
    vertical-align: middle; /* Vertikale Zentrierung */
    width: 7mm;
    border: 1px solid black;
    padding: 0;
    position: relative;
    z-index: 1;
    line-height: 0.5; /* Zeilenhöhe auf Standard setzen */
}

.weg-nutzer-seite::before {
    content: ''; /* Leeres Element */
    display: inline-block;
    height: 100%; /* Nimmt den verfügbaren Platz ein */
    padding-right: 2mm;
    vertical-align: middle; /* Zentrierung */
}

.weg-nutzer-tab-label {
    width: 100mm;
    background-color: #f5f5f5;
}

.weg-nutzer-seite-lücke {
    border: 1px solid black;
}

.weg-nutzer-input {
    width: 173mm;
}

.weg-nutzer-tab tr:hover {
    background-color: #ff660010; 
}

.weg-nutzer-tab tr:hover .weg-nutzer-tab-label {
    background-color: #ff660017;
}

.weg-nutzer-tab th {
    background-color: #f5f5f5;
    height: 10mm;
}

.weg-nutzer-tab-buttons {
    /*display: flex;           /* Flexbox verwenden */
    justify-content: center; /* Horizontal zentrieren */
    align-items: center;     /* Vertikal zentrieren */
    height: 100%;            /* Stellt sicher, dass die Zelle ihre volle Höhe hat */
    padding: 1mm !important;
}

.weg-nutzer-button-grau {
    padding: 1mm !important;
    /*margin: -2mm !important;*/
    background-color: #222222 !important;
    width: max-content;
    height: 8.5mm;
    color: #ffffff;
    cursor: pointer;
}

.weg-nutzer-button-rot {
    background-color: #ff0000 !important;
    width: max-content;
    height: 8.5mm;
    color: #ffffff;
    cursor: pointer;
    margin-top: 3mm;
    padding: 1mm !important;
}

/* Eingabefeld im Lesemodus */
.weg-nutzer-input.readonly {
    background-color: #e9e9e9; /* Grauer Hintergrund für das Feld */
    border: 1px solid #d3d3d3; /* Grauer Rand */
    color: #6c6c6c;           /* Graue Schriftfarbe */
    pointer-events: none;     /* Deaktiviert Interaktionen */
}

.weg-nutzer-nebeneinander {
    display: flex;          /* Aktiviert Flexbox für nebeneinander liegende Elemente */
    gap: 20px;              /* Abstand zwischen den Buttons */
    justify-content: start; /* Optional: Ausrichtung der Buttons am Anfang */
    align-items: center;    /* Zentriert Buttons vertikal */
}

.weg-nutzer-nebeneinander {
    display: flex;          /* Aktiviert Flexbox für nebeneinander liegende Elemente */
    gap: 20px;              /* Abstand zwischen den Buttons */
    justify-content: start; /* Optional: Ausrichtung der Buttons am Anfang */
    align-items: center;    /* Zentriert Buttons vertikal */
}

.weg-nutzer-nebeneinander {
    display: flex; /* Felder nebeneinander anordnen */
    align-items: center; /* Vertikale Zentrierung */
    gap: 0; /* Abstand zwischen den Eingabefeldern */
    color: #6c6c6c; /* Graue Schriftfarbe */
    background-color: #e9e9e9; /* Grauer Hintergrund für readonly */
}

.weg-nutzer-mehrere-inputs {
    background-color: transparent; /* Hintergrundfarbe entfernen */
    border: none; /* Keine Rahmen */
    color: #6c6c6c; /* Graue Schriftfarbe */
    pointer-events: none; /* Deaktiviert Interaktionen */
    white-space: nowrap; /* Kein Zeilenumbruch */
}

.weg-nutzer-gruppen {
    font-weight: bold;
    background-color: #f2f2f2;
    text-align: center;
    padding: 7mm 1mm 1mm 1mm;
}

/*Ende WEG-Nutzer*/

/*Zählermiete*/
.zählermiete-tab {
    width: 220mm;
    border-collapse: collapse;
}

.zählermiete-seite {
    font-weight: bold;
    writing-mode: vertical-lr;
    transform: rotate(180deg); 
    text-align: center;
    vertical-align: middle; /* Vertikale Zentrierung */
    width: 7mm;
    border: 1px solid black;
    padding: 0;
    position: relative;
    z-index: 1;
    line-height: 0.5; /* Zeilenhöhe auf Standard setzen */
}

.zählermiete-seite::before {
    content: ''; /* Leeres Element */
    display: inline-block;
    height: 10%; /* Nimmt den verfügbaren Platz ein */
    vertical-align: middle; /* Zentrierung */
}

.zählermiete-tab-label {
    width: 100mm;
    background-color: #f5f5f5;
}

.zählermiete-seite-leer {
    padding: 0.1pt;
}

.zählermiete-seite-lücke {
    border: 1px solid black;
}

.zählermiete-tab tr:hover {
    background-color: #ff660010; 
}

.zählermiete-tab tr:hover .zählermiete-tab-label {
    background-color: #ff660017;
}
/*Ende Zählermiete*/


/*Kontrolle Zählermiete*/
.kontrolle-zählermiete-tab {
    width: 220mm;
    border-collapse: collapse;
}

.kontrolle-zählermiete-tab-label {
    width: 70mm;
    background-color: #f5f5f5;
}

.kontrolle-zählermiete-tab-objektlabel {
    width: 50mm;
    font-weight: bold;
    background-color: #f5f5f5;
    height: 12mm;;
}

.kontrolle-zählermiete-seite-leer {
    padding: 0.1pt;
}

.kontrolle-zählermiete-seite-lücke {
    border: 1px solid black;
}

.kontrolle-zählermiete-umlage {
    width: 20mm;
}

.kontrolle-zählermiete-kopf {
    background-color: #d8d8d8;
}

.kontrolle-zählermiete-brutto {
    background-color: #bdbcbc;
    text-align: right;
}

.kontrolle-zählermiete-netto {
    text-align: right;
}

.kontrolle-zählermiete-label-summe {
    text-align: right;
    background-color: #f5f5f5;
}

.kontrolle-zählermiete-tab tr:hover {
    background-color: #ff660010; 
}

.kontrolle-zählermiete-tab tr:hover .kontrolle-zählermiete-tab-label {
    background-color: #ff660017;
}

.kontrolle-zählermiete-tab tr:hover td.kontrolle-zählermiete-brutto {
    background-color: #ff660017; /* Ändert die Hintergrundfarbe beim Hover über die Zeile */
}

.kontrolle-zählermiete-tab tr:hover td.kontrolle-zählermiete-label-summe {
    background-color: #ff660017; /* Ändert die Hintergrundfarbe beim Hover über die Zeile */
}

.kontrolle-zählermiete-abstand {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.kontrolle-zählermiete-tab tr:hover .kontrolle-zählermiete-abstand {
    background-color: #fff;
}
/*Ende Kontrolle Zählermiete*/


/*Kontrolle Dienstleistung*/
.kontrolle-dienstleistung-tab {
    width: 240mm;
    border-collapse: collapse;
}

.kontrolle-dienstleistung-tab-label {
    width: 130mm;
    background-color: #f5f5f5;
}

.kontrolle-dienstleistung-tab tr:hover {
    background-color: #ff660017;
}

.kontrolle-dienstleistung-tab tr:hover .kontrolle-dienstleistung-tab-label {
    background-color: #ff660017; /* Überschreibt den Hintergrund im Hover */;
}

.kontrolle-dienstleistung-tab tr:hover td.kontrolle-dienstleistung-brutto {
    background-color: #ff660017; /* Ändert die Hintergrundfarbe beim Hover über die Zeile */
}

.kontrolle-dienstleistung-seite-leer {
    padding: 0.1pt;
}

.kontrolle-dienstleistung-seite-lücke2 {
    border: 1px solid black;
}

.kontrolle-dienstleistung-abstand {
    border-left: 1px solid #fff;
    border-right: 1px solid #fff;
}

.kontrolle-dienstleistung-tab tr:hover .kontrolle-dienstleistung-abstand {
    background-color: #fff;
}

.kontrolle-dienstleistung-umlage {
    width: 20mm;
}

.kontrolle-dienstleistung-kopf {
    background-color: #d8d8d8;
}

.kontrolle-dienstleistung-netto {
    width: 30mm;
    text-align: right;
}

.kontrolle-dienstleistung-brutto {
    background-color: #bdbcbc;
    width: 30mm;
    text-align: right;
}

.kontrolle-dienstleistung-label-summe {
    text-align: right;
    background-color: #f5f5f5;
}

.kontrolle-dienstleistung-tab tr:hover td.kontrolle-dienstleistung-label-summe {
    background-color: #ff660017; /* Ändert die Hintergrundfarbe beim Hover über die Zeile */
}

.kontrolle-dienstleistung-abk {
    text-align: right;
    display: inline-block;
    width: 98%;
    color: #333;
}
/*Ende Kontrolle Dienstleistung*/


/*Heizkosten*/
.heizkosten-tab {
    width: 100%;
    border: #333333;
}

.heizkosten-tab tr:hover {
    background-color: #ff660017;
}

.heizkosten-tab tr:hover .heizkosten-tab-label {
    background-color: #ff660017; /* Überschreibt den Hintergrund von heizkosten-tab-label im Hover */
}

.heizkosten-tab-label {
    width: 130mm;
    background-color: #f5f5f5;
}

.heizkosten-tab-brutto {
    width: 35mm;
    text-align: right;
}

.heizkosten-tab-luecke {
    width: 70mm;
}

.heizkosten-tab-luecke-zum-vorjahr {
    width: 10mm;
    border: none;
}

.heizkosten-tab-luecke-zum-vorjahr:hover {
    background-color: #fff;
}

.heizkosten-abstand {
    border: none;
}

.heizkosten-abstand:hover {
    background-color: #fff;
}
/* Ende Heizkosten*/


/* =========================================================
   FESTE NAVIGATION OBEN
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 13mm;

    background-color: #c0c0c0;

    z-index: 1000;

    display: flex;
    align-items: center;

    overflow-x: auto;
    overflow-y: hidden;
}


/* =========================================================
   INNERER NAVBAR-BEREICH
   ========================================================= */

.navbar-innen {
    display: flex;
    align-items: center;

    flex-wrap: nowrap;

    min-width: max-content;
    height: 100%;
}


/* =========================================================
   LOGO
   ========================================================= */

.navbar-logo {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    text-decoration: none;
}

#logo {
    display: block;
}


/* =========================================================
   OBJEKT AUSWAHL
   ========================================================= */

.objekt-auswahl-form {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    margin-left: 25mm;

    gap: 8px;

    white-space: nowrap;
}


/* =========================================================
   SELECT
   ========================================================= */

.navbar select {
    border: 2px solid #ff6600;
    border-radius: 5px;
}


/* =========================================================
   INPUT
   ========================================================= */

.navbar input {
    border: 2px solid #555;
    background-color: #ff66007e;
    border-radius: 5px;
}


/* =========================================================
   GEÖFFNETES OBJEKT
   ========================================================= */

.navbar-objekt-bereich {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    margin-left: 25mm;

    gap: 12px;

    white-space: nowrap;
}


.navbar-objekt {
    display: flex;
    align-items: center;

    gap: 5px;

    white-space: nowrap;
}


.navbar-objekt-label {
    font-weight: normal;
}


.navbar-objekt strong {
    font-weight: bold;
}


/* =========================================================
   OBJEKT WECHSELN
   ========================================================= */

.navbar-objekt-aendern {
    display: inline-block;

    flex: 0 0 auto;

    text-decoration: none;

    white-space: nowrap;
}


/* =========================================================
   ZULETZT GEÖFFNETE MENÜPUNKTE
   ========================================================= */

.navbar-recent-menu {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    margin-left: 25px;

    gap: 12px;

    white-space: nowrap;
}


.navbar-recent-title {
    flex: 0 0 auto;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;
}


.navbar-recent-items {
    display: flex;
    align-items: center;

    flex: 0 0 auto;

    gap: 6px;

    white-space: nowrap;
}


.navbar-recent-item {
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 130px;
    max-width: 220px;

    padding: 5px 9px;

    text-decoration: none;

    border: 1px solid #ccc;
    border-radius: 5px;

    background: #f7f7f7;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease;
}


.navbar-recent-item:hover {
    background: #e9e9e9;
    border-color: #999;
}


.navbar-recent-item-title {
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.navbar-recent-item-context {
    margin-top: 2px;

    font-size: 11px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   KLEINERE BILDSCHIRME
   ========================================================= */

@media (max-width: 1100px) {

    .navbar-recent-title {
        display: none;
    }

    .navbar-recent-item {
        min-width: 110px;
    }
}

.mitarbeiter-anzeigen {
    position: fixed;
    top: 1mm;
    right: 4mm;
    min-width: min-content;
    width: 30mm;
    height: 10mm;
    background-color: #9c9c9c;
    border: 1px solid #00000094;
    border-radius: 5px;
    z-index: 1000; 
    font-size: smaller;
    text-align: center;
}

.mitarbeiter-anzeigen a {
    text-decoration: none;
    color: #000;
}

/* Feste Navigation links */
.sidebar {
    position: fixed;
    top: 50px; /* Abstand zur oberen Navbar */
    left: 0;
    width: 68mm;
    height: 100vh;
    background-color: #c0c0c0;
    padding-top: 2mm;
    z-index: 999;
    overflow-y: auto; /* Scrollleiste bei Überlauf */
}

.sidebar ul {
    list-style-type: none;
    padding-left: 0;
}

.sidebar ul li {
    padding: 1px;
    text-align: left;
}

.sidebar ul li a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 4px 8px; /* 4px oben/unten, 8px links/rechts */
}

.sidebar a {
    display: block;
    color: #000;
    text-decoration: none;
    padding: 1px;
    text-align: left;
}

.sidebar ul li a:hover {
    background-color: #555;
    color: #fff;
}

.sidebar-menue {
    display: block;
    padding: 10px; 
    padding-bottom: 1px;
    border-bottom: 1px solid white;
    background-color: #9c9c9c;
    width: 61mm;
    height: max-content;
}

.sidebar-menue a.active {
    color:#ff6600;
    background-color:#555;
}

.sidebar-menue:hover {
    background-color:#5555551f;
    /*width: 69mm;*/
}

.sidebar-menue-unten {
    min-height: 25mm;
    position: sticky;
    bottom: 0;
}

.sidebar-objekt {
    display: block;
    padding: 0 10px 1px 0;
    border: 1mm solid #797979;
    /*background-color:#c0ff9b; /*#9c9c9c*/
    width: 63mm;
    height: max-content;
}

.sidebar-objekt .sidebar-menue {
    width: calc(100% - 10px);
    padding-left: 10px; 
}

.sidebar-abrechnung {
    display: block;
    padding: 0 10px 1px 0;
    border: 1mm solid #c4c3c2;
    /*background-color:#c0ff9b; /*#9c9c9c*/
    width: 57mm;
    height: max-content;
}

.sidebar-abrechnung .sidebar-menue {
    /*width: calc(100% - 10px);*/
    padding-left: 10px; 
}

.sidebar-abrechnung-anlegen {
    display: block;
    padding: 0 10px 1px 0;
    padding: 0;
    border: 1mm solid #ff6600;
    background-color:#ff6600;
    width: 66.2mm;
}

.sidebar-abrechnung-anlegen ul {
    margin: 0px;
    padding-left: 2px;
}

.sidebar-abrechnung-anlegen .sidebar-menue:hover {
    background-color: #9c9c9c;
}

.sidebar-admin {
    display: block;
    padding: 0 10px 1px 0;
    border: 1mm solid #797979;
    width: 64mm;
    height: max-content;
}

.sidebar-admin .sidebar-menue {
    width: calc(100% - 10px);
    padding-left: 10px; 
}

.sidebar-objekt:hover,
.sidebar-abrechnung:hover,
.sidebar-admin:hover {
    border: 1mm solid #ff6600;
    width: 63.5mm;
}

/*Ende sidebar*/


/*Footer*/
.footerbar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 13mm;
    background-color: #c0c0c0;
    border: 1pt solid white;
    z-index: 999;
}
/*Ende Footer*/


/*Seiten-Kontext*/
.heatms-seiten-kontext {
    width: 100%;
    box-sizing: border-box;
    margin: 0 0 24px 0;
    padding: 11px 16px;
    background: #f1f1f1;
    border-left: 4px solid #ff6600;
    border: 1px solid #c0c0c0;
    border-left: 4px solid #ff6600;
    border-radius: 6px;
    display: flex;
    align-items: center;
    min-height: 52px;
}

.heatms-seiten-kontext-status {
    width: 9px;
    height: 9px;
    margin-right: 13px;
    border-radius: 50%;
    background: #ff6600;
    flex: 0 0 auto;
}

.heatms-seiten-kontext-inhalt {
    display: flex;
    align-items: center;
    min-width: 0;
}

.heatms-seiten-kontext-objekt {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.heatms-seiten-kontext-status {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.heatms-seiten-kontext-bezeichnung {
    font-size: 15px;
    line-height: 18px;
    font-weight: 600;
    color: #333333;
}

.heatms-seiten-kontext-nummer {
    font-size: 11px;
    line-height: 14px;
    color: #777777;
}

.heatms-seiten-kontext-trenner {
    width: 1px;
    height: 30px;
    margin: 0 18px;
    background: #d0d0d0;
}

.heatms-seiten-kontext-zeitraum {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heatms-seiten-kontext-label {
    font-size: 10px;
    line-height: 14px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.38em;
}

.heatms-seiten-kontext-datum {
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    color: #333333;
}

.heatms-seiten-kontext-abrechnung {
    display: flex;
    align-items: center;
    gap: 7px;
}

.heatms-seiten-kontext-abrechnung-id {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: #333333;
}

.heatms-seiten-kontext-status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: #e5e5e5;
    color: #555555;
}

.heatms-seiten-kontext-status-entwurf {
    background: #fff0e6;
    color: #d95700;
}

.heatms-seiten-kontext-status-freigegeben {
    background: #e8f5e9;
    color: #287a32;
}

.heatms-seiten-kontext-status-storniert {
    background: #afafaf;
    color: #252525;
}

.heatms-seiten-kontext-detail {
    font-size: 11px;
    line-height: 14px;
    color: #777777;
    white-space: nowrap;
}

.heatms-seiten-kontext-abrechnung {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heatms-seiten-kontext-abrechnung-kopf {
    display: flex;
    align-items: center;
    gap: 7px;
}
/*Ende Seitenkontext*/

/*HKA einzeln: PDF-Ausgabe*/
.hka-einzeln-header {
    width: 203mm;
    border-top: 1mm solid #ff6600;
    border-left: 1mm solid #ff6600;
    height: 9mm;
    margin-bottom: 1mm;
    background-color: #dfdfdf;
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 18px;
    padding: 1mm 3mm;
}

.hka-einzeln-dummy {
    height: 50mm;
    background-color: #ffffff;
}

.hka-einzeln-kopf {
    max-width: 210mm;
    border-collapse: collapse;
    border: none;
    /*border-left: 1mm solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 5mm;
}

.hka-einzeln-kopf td {
    height: 5mm;
    padding: 2 5 2 5;
    border: none;
}

.hka-einzeln-kopf-a {
    width: 75mm;
}

.hka-einzeln-kopf-b {
    width: 5mm;
}

.hka-einzeln-kopf-c {
    width: 40mm;
    text-align: right;

}

.hka-einzeln-kopf-d {
    width: 90mm;
}

.hka-einzeln-abstand-0 {
    margin-bottom: 0;
}

.hka-einzeln-abstand-5 {
    margin-bottom: 5mm;
}

.hka-einzeln-abstand-10 {
    margin-bottom: 10mm;
}

.hka-einzeln-abstand-50 {
    margin-bottom: 50mm;
}

.hka-width-vw-80 {
    width: 80vw; 
}

.hka-einzeln-heizkosten {
    width: 210mm;
    border-collapse: collapse;
    border: 1px solid #fff;
    /*border: 1mm solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 5mm;
}

.hka-einzeln-heizkosten td {
    height: 5mm;
    padding: 2 5 2 5;
    border: 1px solid #fff;
}

.hka-einzeln-heizkosten-a {
    width: 50mm;

}

.hka-einzeln-heizkosten-b {
    width: 25mm;
    text-align: right;
}

.hka-einzeln-heizkosten-c {
    width: 20mm;
    /*background-color: #aa0f0f;*/
}

.hka-einzeln-heizkosten-d {
    width: 5mm;
}

.hka-einzeln-heizkosten-f {
    width: 67mm;
    /*background-color: #9b8686;*/
}

.hka-einzeln-heizkosten-g {
    width: 28mm;
    text-align: right;
    /*background-color: #aa0f0f;*/
}


.hka-einzeln-heizkosten-aufteilung {
    width: 210mm;
    border-collapse: collapse;
    border: none;
    /*border-bottom: 1px solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 3mm;
}

.hka-einzeln-heizkosten-aufteilung td {
    height: 5mm;
    padding: 2 5 2 5;
    border: none;
}

.hka-einzeln-heizkosten-aufteilung-a {
    width: 40mm;
}

.hka-einzeln-heizkosten-aufteilung-b {
    width: 20mm;
    text-align: right;
}

.hka-einzeln-heizkosten-aufteilung-c {
    width: 1mm;
    text-align: right;
}

.hka-einzeln-heizkosten-aufteilung-d {
    width: 50mm;
    text-align: right;
}

.hka-einzeln-heizkosten-aufteilung-e {
    width: 20mm;
    text-align: right;
}

.hka-einzeln-heizkosten-aufteilung-f {
    width: 7mm;
}

.hka-einzeln-heizkosten-aufteilung-g {
    width: 20mm;
}

.hka-einzeln-heizkosten-aufteilung-h td {
    border-bottom: 1px solid #ff6600;
}


.hka-einzeln-heizkosten-nutzerwechsel {
    width: 210mm;
    border-collapse: collapse;
    border: none;
    /*border-bottom: 1px solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 5mm;
}

.hka-einzeln-heizkosten-nutzerwechsel td {
    height: 5mm;
    padding: 2 5 2 5;
    border: none;
}

.hka-einzeln-heizkosten-nutzerwechsel-a {
    width: 180mm;
    text-align: right;
}

.hka-einzeln-heizkosten-nutzerwechsel-b {
    width: 30mm;
    text-align: right;
}


.hka-einzeln-heizkosten-summe {
    width: 210mm;
    border-collapse: collapse;
    border: none;
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 5mm;
}

.hka-einzeln-heizkosten-summe td {
    height: 5mm;
    padding: 2 5 2 5;
    /*border: none;*/
}

.hka-einzeln-heizkosten-summe-a {
    width: 142mm;
    text-align: right;
    border: 1px solid #fff;
}

.hka-einzeln-heizkosten-summe-b {
    width: 55mm;
    text-align: right;
    font-weight: bold;
    background-color: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-bottom: 2px solid #ff6600!important;
}

.hka-einzeln-heizkosten-summe-c {
    width: 25mm;
    text-align: right;
    font-weight: bold;
    background-color: #f7f7f7;
    border: 1px solid #f7f7f7;
    border-bottom: 2px solid #ff6600 !important;
    border-right: 2px solid #ff6600 !important;
}

.hka-einzeln-zaehlerstaende {
    width: 210mm;
    border-collapse: collapse;
    border: none;
    /*border-bottom: 1px solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 3mm;
}

.hka-einzeln-zaehlerstaende td {
    height: 5mm;
    padding: 2 5 2 5;
    border: none;
}

.hka-einzeln-zaehlerstaende-a {
    width: 30mm;
}

.hka-einzeln-zaehlerstaende-b {
    width: 25mm;
    /*text-align: right;*/
}

.hka-einzeln-zaehlerstaende-c {
    width: 45mm;
    width: max-content;
}

.hka-einzeln-zaehlerstaende-d {
    width: 40mm;
    text-align: right;
}

.hka-einzeln-zaehlerstaende-e {
    width: 30mm;
    text-align: right;
}

.hka-einzeln-zaehlerstaende-f {
    width: 30mm;
    text-align: right;
}

.hka-einzeln-kostenaufteilung {
    width: 210mm;
    border-collapse: collapse;
    border: none;
    /*border-bottom: 1px solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 3mm;
}

.hka-einzeln-kostenaufteilung td {
    height: 5mm;
    padding: 2 5 2 5;
    border: none;
}

.hka-einzeln-kostenaufteilung-a {
    width: 55mm;
}

.hka-einzeln-kostenaufteilung-b {
    width: 20mm;
    text-align: right;
    /*background-color: #126812b6;*/
}

.hka-einzeln-kostenaufteilung-c {
    width: 5mm;
}

.hka-einzeln-kostenaufteilung-d {
    width: 125mm;
    /*text-align: right;*/
}

.hka-einzeln-kw {
    width: 100mm; 
    text-align: left; 
    background-color: #fff;
    display: flex;
    flex-direction: column;
}

.hka-einzeln-kw {
    width: 210mm;
    border-collapse: collapse;
    border: none;
    /*border: 1mm solid #ff6600;*/
    /*background-color: #f5fdf5b6;*/
    font-family: sans-serif, 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial;
    font-size: 12px;
    margin-bottom: 5mm;
}

.hka-einzeln-kw td {
    height: 5mm;
    padding: 2 5 2 5;
    border: none;
}

.hka-einzeln-kw-a {
    width: 50mm;
    /*background-color: #aa0f0f;*/
}

.hka-einzeln-kw-b {
    width: 20mm;
    text-align: right;
}

.hka-einzeln-kw-c {
    width: 30mm;
    /*background-color: #bd8383;*/
}

.hka-einzeln-kw-d {
    width: 12mm;
   /* background-color: #aa0f0f;*/
}

.hka-einzeln-kw-f {
    width: 70mm;
    /*background-color: #a135c2;*/
}

.hka-einzeln-kw-g {
    width: 28mm;
    text-align: right;
}

.bold {
    font-weight: bold; 
}

.italic {
    font-style: italic; /* Kursiv */ 
}

.border-bottom-black {
    border-bottom: 1px solid #000 !important;
}

.bg-5c5454 {
    background-color: #5c5454;
    color: #fff;
}
/*Ende HKA einzeln*/


/*Kontrolle-Umlage*/
.hka-ansicht-alle-container {
    display: flex;
    flex-direction: column;
    /*gap: 1px; /* Abstand zwischen den Zeilen */
}

.hka-ansicht-alle-row {
    display: flex;
    width: 100%;
    /*justify-content: space-between; /* Boxen nebeneinander */
    align-items: stretch; /* Stellt sicher, dass alle inneren Container die gleiche Höhe haben */
    gap: 10px;
}

.hka-ansicht-alle-row > div {
    flex: 1; /* Sorgt dafür, dass die Breiten gleichmäßig verteilt werden */
}

.aufklappbuttonobjektdaten,
.aufklappbuttonwärme,
.aufklappbuttonkw,
.aufklappbuttongw {
    width: 100%;
    box-sizing: border-box;
    padding: 1mm;
    /*background-color: #f9f9f9; /* Optional: Hintergrund */
}

.hka-ansicht-alle-objektdaten-row,
.hka-ansicht-alle-wärme-row,
.hka-ansicht-alle-kw-row,
.hka-ansicht-alle-gw-row {
    display: flex;
    border: 1px solid #ccc; /* Optional: Rahmen */
}

.hka-ansicht-alle-objektdaten-a,
.hka-ansicht-alle-objektdaten-b,
.hka-ansicht-alle-objektdaten-c,
.hka-ansicht-alle-objektdaten-d,
.hka-ansicht-alle-wärme-a,
.hka-ansicht-alle-wärme-b,
.hka-ansicht-alle-wärme-c,
.hka-ansicht-alle-kw-a,
.hka-ansicht-alle-kw-b,
.hka-ansicht-alle-kw-c,
.hka-ansicht-alle-gw-a,
.hka-ansicht-alle-gw-b,
.hka-ansicht-alle-gw-c {
    /*flex: 1;*/
    padding: 1mm;
    text-align: left;
    border-right: 1px solid #ddd;
}

.hka-ansicht-alle-objektdaten-a {
    width: 30%;
    min-width: 40mm;
    font-size: small;
}
.hka-ansicht-alle-objektdaten-b {
    width: 20%;
    min-width: 40mm;
}
.hka-ansicht-alle-objektdaten-c {
    width: 10%;
    min-width: 20mm;
    text-align: right;
}

.hka-ansicht-alle-objektdaten-d { /*für zaehlerliste.php*/
    width: 16.6%;
    min-width: 20mm;
    text-align: right;
}

.hka-ansicht-alle-wärme-a {
    width: 10%;
    min-width: 40mm;
    font-size: small;
}
.hka-ansicht-alle-wärme-b {
    width: 10%;
    min-width: 20mm;
    text-align: right;
}

.hka-ansicht-alle-wärme-c {
    width: 12%;
    min-width: 25mm;
    text-align: right;
}

.hka-ansicht-alle-kw-a {
    width: 30%;
    min-width: 40mm;
    font-size: small;
}
.hka-ansicht-alle-kw-b {
    width: 15%;
    min-width: 20mm;
    text-align: right;
}

.hka-ansicht-alle-kw-c {
    width: 25%;
    min-width: 25mm;
    text-align: right;
}

.hka-ansicht-alle-kw-d {
    width: 100%;
    text-align: center;
    background-color: #c03737;
    color: #fff;
    font-size: 14px; 
}

.hka-ansicht-alle-kw-e {
    border-bottom: 2px solid #c03737;
}

.hka-ansicht-alle-kw-f {
    border-left: 2px solid #c03737;
}

.hka-ansicht-alle-kw-g {
    border-right: 2px solid #c03737;
}

.hka-ansicht-alle-kw-i {
    width: 26%;
    min-width: 25mm;
    text-align: right;
    background-color: #00000011;
}


.hka-ansicht-alle-gw-a {
    width: 30%;
    min-width: 40mm;
    font-size: small;
}
.hka-ansicht-alle-gw-b {
    width: 15%;
    min-width: 20mm;
    text-align: right;
}

.hka-ansicht-alle-gw-c {
    width: 25%;
    min-width: 25mm;
    text-align: right;
}

.hka-ansicht-alle-achtung {
    width: 2mm;
    text-align: left;
}

.hka-ansicht-alle-kontrolle {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Abstand zwischen den Zeilen */
    /*width: 200mm;*/
}

.hka-ansicht-alle-kontrolle-row {
    display: flex;
    gap: 1mm; /* Abstand zwischen den Spalten */
    margin-bottom: 1mm; /* Abstand nach unten */
}

.hka-ansicht-alle-kontrolle-a,
.hka-ansicht-alle-kontrolle-b,
.hka-ansicht-alle-kontrolle-c,
.hka-ansicht-alle-kontrolle-d,
.hka-ansicht-alle-kontrolle-e {
    /*flex: 1; /* Gleiche Breite für alle Spalten */
    padding: 5px;
    border: 1px solid #ccc; /* Rahmen für die Spalten */
    text-align: center; /* Text zentrieren */
    background-color: #f9f9f9; /* Hintergrundfarbe */
}

.hka-ansicht-alle-kontrolle-a {
    text-align: right;
    width: 75mm;
}

.hka-ansicht-alle-kontrolle-b,
.hka-ansicht-alle-kontrolle-c {
    text-align: right;
    width: 43mm;
}

.hka-ansicht-alle-kontrolle-d {
    text-align: left;
    width: 130mm;
}

.hka-ansicht-alle-kontrolle-e {
    text-align: right;
    width: 137.3mm;
}

.hka-ansicht-alle-objektdaten-überschrift {
    font-size: 1.5rem;
    font-weight: bold; 
    color: #5c5454;  
    margin-bottom: 10px;
    text-align: left; 
    border: 1px solid #5c5454;
    padding: 2mm;
}

.hka-ansicht-alle-kontrolle-svg-left {
    float: left;
}





/*HKA alle*/
.hka-alle-h2 {
    height: 20mm;
    line-height: 20mm;
}


/*globale Einstellungen*/
.globale-einstellungen-hka-box {
    border: 1px solid #ff6600; /* Optional: Rahmen */
    padding: 3mm;
    /*width: 50%;*/
    min-width: 213mm;
}

.globale-einstellungen-hka-a,
.globale-einstellungen-hka-b,
.globale-einstellungen-hka-c {
    /*flex: 1;*/
    padding: 1mm;
    text-align: left;
    border-right: 1px solid #ddd;
}

.globale-einstellungen-hka-a {
    width: 30%;
    min-width: 40mm;
    font-size: small;
}
.globale-einstellungen-hka-b {
    width: 20%;
    min-width: 40mm;
}
.globale-einstellungen-hka-c {
    width: 10%;
    min-width: 20mm;
    text-align: right;
}

.globale-einstellungen-container {
    display: flex;
    gap: 3mm;
}

.circle-container { /* Container für den Kreis */
    position: relative;
    width: 200px;
    height: 200px;
    margin: 20px auto;
    float: left; /* Stellt sicher, dass der Kreis linksbündig bleibt */
}

.circle {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: left;
    align-items: center;
    transition: background 0.3s;
}

.circle::after {
    content: attr(data-fertig) " fertig, " attr(data-unfertig) " nicht fertig";
    position: absolute;
    padding-left: 4mm;
    font-size: 16px;
    font-weight: bold;
    color: white;
    z-index: 2;
    opacity: 0; /* Anfangs unsichtbar */
    transition: opacity 0.3s;
}

.circle:hover::after {
    opacity: 1; /* Sichtbar beim Hover */
}

.circle:hover {
    background: conic-gradient(#9c9c9c 0%, #9c9c9c 100%, #ff6600 0% 100%);
}



.index-container { /*Index*/
    display: flex;
    flex-direction: row; /* Setzt die Kinder-Elemente nebeneinander */
    align-items: stretch; /* Sorgt dafür, dass alle Kinder die gleiche Höhe wie der Container haben */
    gap: 10px; /* Abstand zwischen den nebeneinanderstehenden Elementen */
}

.index-checked {
    width: 15mm;
    padding: 10px;
    text-align: center;
    flex-shrink: 0; /* Verhindert, dass dieses Element verkleinert wird */
    display: flex;
    align-items: center;
    justify-content: center; /* Zentriert den Inhalt innerhalb des Bereichs */
    background-color: transparent; /* Standard-Hintergrundfarbe */
}

.index-checked:hover {
    background-color: #f5f5f5;
}

.index-meldung {
    background-color: #f5f5f5;
    padding: 10px;
    flex-grow: 1; /* Nimmt den restlichen verfügbaren Platz ein */
    color: black;
    word-wrap: break-word; /* Zeilenumbruch für lange Inhalte */
}
/*Ende globale Einstellungen*/


/*Upload*/
.zaehlerlisten-upload {
    display: inline-block;
    padding: 5px 10px;
    background-color: #333333; /* Grauer Hintergrund */
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-size: 18px;
    color: #fff;
}

.zaehlerlisten-file-upload {
    display: none; /* Versteckt das originale Eingabefeld */
}

#zaehlerlisten-file-name {
    display: inline-block;
    margin-left: 10px;
    font-size: 18px;
    color: #333333;
    border: 1px solid #333333;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.zaehlerlisten-button-hochladen {
    background-color: #ff6600;
}
/*Ende Upload*/



/*FAQ*/
.faqtabs {
    display: flex;
    flex-wrap: wrap;
    background-color: #818181;
    overflow: hidden;
}

.faqtabs button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.5s;
    font-size: 17px;
}

.faqtabs button:hover {
    background-color: #ddd;
}

.faqtabs button.active {
    background-color: #ff6600;
}

.faqtabcontent .faqtab {
    display: none;
    padding: 6px 32px;
    border-top: none;
}

.faqantwort {
    background-color: #ddd;
    padding: 8px;
    margin-bottom: 5mm;
    width: 80%;
}

.faqbegriff {
    font-weight: bold;
}
/*Ende FAQ*/


/*DMS*/

.dms-tab td {
    padding: 2px 5px;
    align-items: center;
    justify-content: center;
}

.dms-abrechnung-okay {
    width: 20mm; 
    height: 10mm; 
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dms-abrechnung-okay.green {
    background-color: #3ea23e;
    color: white;
}

.dms-aktionen {
    white-space: nowrap;
}

.dms-aktionen form {
    display: inline;
    margin: 0;
}

.button-download,
.button-löschen {
    display: inline-block;
    vertical-align: middle;
}

/* Weniger Abstand zwischen den Kreisen */
.dms-radio-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding: 1px;
}

/* Radio-Buttons verstecken */
.dms-radio-label input[type="radio"] {
    display: none;
}

/* Die Kreise (inaktive Größe) */
.dms-circle {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-color: rgba(128, 128, 128, 0.507);
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

/* Randfarbe für inaktive Kreise */
.dms-red { border-color: red; }
.dms-orange { border-color: orange; }
.dms-green { border-color: green; }

/* Wenn ein Radio-Button aktiv ist → größer & farbig */
.dms-radio-label input[type="radio"]:checked + .dms-circle {
    background-color: inherit;
    transform: scale(1.2); /* Größerer Kreis */
}

/* Farben für aktive Kreise */
.dms-radio-label input[type="radio"]:checked[value="red"] + .dms-circle { background-color: red; }
.dms-radio-label input[type="radio"]:checked[value="orange"] + .dms-circle { background-color: orange; }
.dms-radio-label input[type="radio"]:checked[value="green"] + .dms-circle { background-color: green; }

.dms-tab-aktion {
    border-right: 2px solid #ff6600;
}

.dms-tab-aktion form {
    display: inline-block;
    margin-right: 5px; /* Abstand zwischen den Buttons */
}
.dms-zip-form {
    margin-bottom: 12px;
}

/*Ende DMS*/


/*Zählermanagement*/
.zm-alert {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #c0c0c0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
    max-width: 90%;
}

/* Hintergrund-Overlay, das erscheint, wenn das zm-alert angezeigt wird */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 50% transparente schwarze Farbe */
    backdrop-filter: blur(2px); /* Hintergrund unscharf machen */
    display: none;
    z-index: 9998; /* Etwas niedriger als das Alert-Fenster */
}


.zm-alert.success {
    border: 2px solid #ff6600;
}

.zm-alert.error {
    background-color: #f44336;
}

.zm-alert.warning {
    background-color: #ff9800;
}

.zm-alert .alert-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.zm-alert button {
    background-color: #333333;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    position: absolute;
    bottom: 1px;
    right: 1px;
}

.zm-alert button:hover {
    opacity: 0.8;
}

.zm-auswahl {
    background-color: #222222ad;
    color: #fff;
    width: max-content;
    padding: 3mm;
    border-radius: 3px;
}
.zm-filter-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.zm-filter-form {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.zm-filter-block {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.zm-checkbox-group {
    max-height: 40mm;
    overflow-y: auto;
    border: 1px solid #ccc;
    padding: 5px;
}

.zm-checkbox-group input{
    width: 20mm;
}


.zm-filter-block select,
.zm-filter-block input[type="checkbox"] {
    margin-top: 5px;
}

.zm-checkbox {
    display: block;
    margin-top: 3px;
}

.zm-ve-eins {
    background-color: #f5f5f5;
}

.zm-ve-zwei {
    background-color: #ffffff; /* weiß */
}

.zm-tab tr:hover {
    background-color: #ff660010 !important; /* Highlight beim Hover */
}

.zm-zaehler-nummer input{
    min-width: 90mm;
}


/* Vollflächiges Overlay mit Hinweis-Text */
#overlay-blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 90vh;
  background: transparent;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9990;
  display: none;
  pointer-events: auto;
  user-select: none;
  cursor: wait; /* Mauszeiger & Hinweis */
}



/* =========================================================
   SIDEBAR – EINHEITLICHE BOXBREITEN
   ========================================================= */

.sidebar,
.sidebar *,
.sidebar *::before,
.sidebar *::after {
    box-sizing: border-box;
}

/* Äußerer Sidebar-Bereich */
.sidebar {
    width: 68mm;
    padding: 0;
}

/* Äußere Bereichsboxen */
.sidebar-objekt,
.sidebar-abrechnung,
.sidebar-abrechnung-anlegen,
.sidebar-admin {
    width: 100%;
    margin: 0 0 0 0;
}

/* Innere Menüboxen */
.sidebar-menue {
    display: block;
    width: 100%;
    height: max-content;
    padding: 10px 8px 1px;
    margin: 0;
    border-bottom: 1px solid white;
    background-color: #9c9c9c;
}

/* Keine Breitenänderung beim Hover */
.sidebar-objekt:hover,
.sidebar-abrechnung:hover,
.sidebar-admin:hover {
    width: 100%;
}

/* Abrechnungszentrale hat keine innere sidebar-menue-Box */
.sidebar-abrechnung-anlegen ul {
    width: 100%;
    margin: 0;
    padding: 0 0 0 2px;
}

.sidebar-abrechnung-anlegen li {
    width: 100%;
    margin: 0;
    padding: 0;
}

.sidebar-abrechnung-anlegen a {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.sidebar-admin .sidebar-menue,
.sidebar-objekt .sidebar-menue {
    width: 64mm;
}