/* style.css - Globales Styling für die Kundenverwaltung */

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    flex: 1;
    margin-top: 50px;
    max-width: 900px;
    padding-bottom: 60px; /* Platz für den Footer */
}

h1 {
    color: #007bff;
}

h2 {
    color: #007bff;
}

h3 {
    color: #007bff;
}

/* Anpassung für das Suchfeld */
input[name="search"] {
    width: 350px; /* Breiteres Suchfeld */
}

/* Tabellen-Styling */
.table th {
    background-color: #007bff;
    color: white;
    text-align: left; /* Standard linksbündig für alle Spalten */
}

.table td {
    vertical-align: middle;
    text-align: left; /* Standard linksbündig */
}

/* Zentrierung nur für die Buttons in der Spalte "Aktionen" */
.action-buttons {
    text-align: center !important;
}

/* Styling für Buttons */
.icon-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 5px;
}

.icon-btn img {
    width: 24px;
    height: 24px;
}

.icon-btn:hover img {
    opacity: 0.8;
}

.tooltip-inner {
    font-size: 14px;
}

/* Styling für das Kundenbearbeitungsformular */
.card {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.card h2 {
    color: #007bff;
}

.form-control {
    border-radius: 5px;
}

.btn-primary {
    background-color: #007bff;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

button:focus {
    outline: none;
}

/* Header fixieren */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 1000;
}

/* Footer fixieren */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    z-index: 1000;
}

.footer span {
    margin-left: 10px;
}

.footer div {
    margin-right: 10px;
}

/* Inhalt anpassen, damit er nicht von Header/Footer überlagert wird */
.main-content {
    padding-top: 60px; /* Platz für den fixierten Header */
    padding-bottom: 80px; /* Platz für den fixierten Footer */
    flex-grow: 1;
    overflow-y: auto;
}

.no-underline {
    color: inherit; /* Nimmt die Standardfarbe des Textes */
    text-decoration: none; /* Entfernt den Unterstrich */
}

.no-underline:hover {
    text-decoration: none; /* Auch beim Hover kein Unterstrich */
}

/* index.php */
.akku-ok {
    color: #28a745;
}
.akku-warning-index {
    color: #ffc107;
}
.akku-critical-index {
    color: #dc3545;
}
.company-icon {
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
}

/* kundenprofil.php */
.akku-overdue {
    background-color: #ffcccc;
    color: #dc3545;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}
.akku-critical {
    background-color: #fff3cd;
    color: #dc3545;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}
.akku-warning {
    background-color: #fff3cd;
    color: #fd7e14;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}
.akku-days-info {
    font-size: 0.9rem;
    margin-left: 10px;
}
