/* Basissyles für das Digitale‑Arbeitszeit‑Dashboard */

.da-dashboard {
    margin: 20px 0;
    font-family: sans-serif;
}

.da-location-info {
    background: #f7f7f7;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.da-controls {
    margin-bottom: 20px;
}

.da-btn {
    background-color: #0073aa;
    color: #ffffff;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 6px;
    margin-bottom: 6px;
}
.da-btn:hover {
    background-color: #006799;
}

.da-btn-small {
    padding: 6px 10px;
    font-size: 12px;
}

.da-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.da-dashboard-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.da-logout-link {
    text-decoration: none;
}

.da-absence-tabs {
    margin-bottom: 10px;
}

.da-absence-tabs .da-btn {
    margin-right: 4px;
}

.da-settings-submenu {
    margin-bottom: 15px;
}


.da-message {
    margin-top: 10px;
    padding: 10px;
    background: #eafbe7;
    border: 1px solid #a8e6a3;
    color: #2d602d;
    border-radius: 4px;
}

.da-summary {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.da-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.da-summary-list li {
    margin-bottom: 4px;
}

.da-management-block {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.da-form label {
    display: block;
    margin-bottom: 8px;
}

.da-form input[type="text"],
.da-form input[type="email"],
.da-form input[type="date"],
.da-form input[type="number"],
.da-form select {
    width: 100%;
    max-width: 300px;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.da-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.da-table th,
.da-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.da-table th {
    background: #f1f1f1;
}

/* Styles für die Login‑Seite */
.da-login-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
    max-width: 360px;
    margin: 40px auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.da-login-container form input[type="text"],
.da-login-container form input[type="password"],
.da-login-container form input[type="number"],
.da-login-container form input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.da-login-container form button {
    width: 100%;
}
.da-login-container .da-error,
.da-login-container .da-message,
.da-login-container .da-notice {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
}
.da-login-container .da-error {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a94442;
}
.da-login-container .da-message,
.da-login-container .da-notice {
    background: #eafbe7;
    border: 1px solid #a8e6a3;
    color: #2d602d;
}

/* Login‑Titel und Links */
.da-login-title {
    margin-bottom: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}
.da-login-links {
    text-align: center;
    margin-top: 10px;
}
.da-login-container .da-captcha-input {
    width: 70px;
    max-width: 80px;
}

/* Warnhinweise */
.da-warning {
    background-color: #fff4e5;
}

/* Größere Buttons im Modus‑Selector für Personal Management */
.da-pm-selector .da-btn {
    font-size: 16px;
    padding: 14px 24px;
}

/* Kleine Buttons für Personal‑Management‑Aktionen in der Mitarbeiterzuordnung */
.da-small-btn {
    font-size: 12px;
    padding: 4px 8px;
    margin-right: 4px;
}

/* Modus‑Auswahl für Personal Management */
.da-pm-selector-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.da-btn.da-btn-large {
    font-size: 16px;
    padding: 14px 24px;
}

/* Mobile Darstellung: Buttons untereinander und volle Breite */
@media (max-width: 600px) {
    .da-pm-selector-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .da-pm-selector-buttons .da-btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

/* Umschaltbox für Personal‑Management im Dashboard */
.da-pm-switch {
    background: #f7f7f7;
    border-left: 4px solid #0073aa;
    padding: 12px 15px;
    margin-bottom: 15px;
}
.da-pm-switch p {
    margin: 0 0 8px 0;
}

.da-btn-secondary {
    background-color: #fff;
    color: #0073aa;
    border: 1px solid #0073aa;
}
.da-btn-secondary:hover {
    background-color: #0073aa;
    color: #fff;
}


/* Accordion styles for dashboard sections */
.da-dashboard h3,
.da-dashboard h4 {
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 8px;
}

.da-accordion-header {
    background: #f0f0f0;
    padding: 10px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.da-accordion-header span.da-accordion-title {
    font-weight: 600;
}

.da-accordion-header span.da-accordion-toggle {
    font-size: 18px;
    line-height: 1;
}

.da-accordion-body {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .da-accordion-header {
        padding: 12px 14px;
    }
}


/* Hilfe-Icon und Infobox im Dashboard */
.da-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.da-dashboard-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.da-help-toggle {
    border: none;
    border-radius: 999px;
    width: 32px;
    height: 32px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    background: #f0f0f0;
}

.da-help-box {
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    padding: 10px 12px;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.da-help-box ul {
    margin-top: 6px;
    padding-left: 18px;
}

@media (max-width: 600px) {
    .da-dashboard-header {
        flex-direction: row;
        gap: 8px;
    }
    .da-dashboard-title {
        font-size: 1rem;
    }
    .da-help-toggle {
        width: 30px;
        height: 30px;
    }
}


/* Hinweisbox für Personal-Management Modus-Umschalter */
.da-pm-switch {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 6px;
    background: #eef6ff;
    border-left: 3px solid #0073aa;
}

.da-pm-switch-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1 1 auto;
}

.da-pm-switch-text strong {
    font-weight: 600;
}

.da-pm-switch-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.da-pm-switch .da-btn-secondary {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .da-pm-switch {
        flex-direction: column;
        align-items: stretch;
    }
    .da-pm-switch-actions {
        width: 100%;
        margin-top: 4px;
    }
    .da-pm-switch .da-btn-secondary {
        width: 100%;
        text-align: center;
    }
}


/* Rechtsgrundlagen-Hinweis im Mitarbeiter-Dashboard */
.da-legal-hint {
    margin-top: 16px;
}

.da-legal-toggle {
    width: 100%;
    text-align: left;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    background: #f4f4f4;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
}

.da-legal-toggle:hover {
    background: #e9e9e9;
}

.da-legal-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fbfbfb;
    border-left: 3px solid #0073aa;
    font-size: 0.9rem;
    line-height: 1.4;
}

.da-legal-box ul {
    margin-top: 6px;
    padding-left: 18px;
}

@media (max-width: 600px) {
    .da-legal-toggle {
        font-size: 0.9rem;
    }
    .da-legal-box {
        font-size: 0.9rem;
    }
}


/* Responsive Tabelle für Arbeitszeiten-Ansicht */
.da-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.da-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

@media (max-width: 900px) {
    .da-management-block .da-table th,
    .da-management-block .da-table td {
        font-size: 0.85rem;
        padding: 4px;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .da-management-block .da-table th,
    .da-management-block .da-table td {
        font-size: 0.8rem;
        padding: 3px;
    }
}


.da-live-status .da-status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
}
.da-status-ok {
    background: #2e7d32;
}
.da-status-warn {
    background: #f9a825;
}
.da-status-critical {
    background: #c62828;
}

.da-heatmap {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
    font-size: 0.8rem;
}
.da-heatmap th,
.da-heatmap td {
    border: 1px solid #ddd;
    text-align: center;
    padding: 4px;
}
.da-heatmap-cell-0 {
    background: #f9f9f9;
}
.da-heatmap-cell-1 {
    background: #e3f2fd;
}
.da-heatmap-cell-2 {
    background: #bbdefb;
}
.da-heatmap-cell-3 {
    background: #90caf9;
}
.da-heatmap-cell-4 {
    background: #42a5f5;
}
.da-heatmap-cell-5 {
    background: #1e88e5;
    color: #fff;
}

.da-btn-secondary {
    background-color: #ffffff;
    color: #0073aa;
    border: 1px solid #0073aa;
}

.da-btn-secondary:hover {
    background-color: #f0f6fb;
    color: #005b8a;
}

.da-logout-link {
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(0, 115, 170, 0.2);
}
