/* Koffey 1.0 - Externes CSS */
/* Gemeinsame Styles für alle kleinen Seiten */

body {
    font-family: sans-serif;
    background-color: #6f4e37; /* Dunkelbraun */
    margin: 0;
    padding: 20px;
    text-align: center;
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 100px; /* Kleinere Logo-Größe wie einzahlungen.html */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
}

.kassenstand {
    background-color: #e0e0e0; /* Hellgrau */
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.kassenstand h2 {
    margin: 0 0 5px 0;
    color: #4e342e; /* Dunkles Kaffeebraun */
}

.kassenstand p {
    font-size: 2em;
    font-weight: bold;
    color: #4e342e; /* Dunkles Kaffeebraun */
    margin: 0;
}

#kassenstand {
    color: #4e342e;
}

/* Mitarbeiter Detail Ansicht */
.mitarbeiter-detail {
    text-align: left;
}

/* Einheitlicher Überschrift-Stil */
.section-title {
    color: #4e342e;
    font-size: 1.3em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff8c00;
    text-align: left;
    margin-top: 0;
}

.mitarbeiter-card {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.mitarbeiter-card h4 {
    color: #ff8c00;
    margin-top: 0;
    margin-bottom: 5px;
}

.mitarbeiter-card p {
    margin: 0;
    font-size: 0.9em;
}

.mitarbeiter-card ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    font-size: 0.85em;
}

.mitarbeiter-card ul li {
    background-color: #e0e0e0;
    padding: 5px;
    margin-bottom: 3px;
    border-radius: 3px;
}

/* Suchfeld und Dropdown */
#mitarbeiter-select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #4e342e;
    font-weight: bold;
    text-align: left;
}

/* Mitarbeiter Salden Tabelle/Liste */
.mitarbeiter-salden {
    text-align: left;
    max-height: 300px; /* Scrollable area for many employees */
    overflow-y: auto;
}

/* Status-Seite spezifische Styles */
.status-list {
    text-align: left;
}

.status-item {
    background-color: #f8f8f8;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.status-item h4 {
    color: #ff8c00;
    margin-top: 0;
    margin-bottom: 5px;
}

.status-item p {
    margin: 5px 0;
    font-size: 0.9em;
}

.status-item .status-positiv {
    color: green;
    font-weight: bold;
}

.status-item .status-negativ {
    color: red;
    font-weight: bold;
}

/* Upload-Seite spezifische Styles */
.form-group {
    margin-bottom: 15px;
}

input[type="number"],
input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

input[type="file"] {
    padding: 5px;
}

.btn-submit {
    background-color: #4e342e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s;
    width: 100%;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #ff8c00;
}

/* Alert/Message Area */
#message-area {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Einzahlungen-App spezifische Styles */
.mitarbeiter-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.mitarbeiter-button {
    background-color: #4e342e;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.2s;
    text-align: center;
}

.mitarbeiter-button:hover {
    background-color: #ff8c00;
}

.mitarbeiter-button.disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 350px;
    text-align: left;
}

.modal-content h3 {
    margin-top: 0;
    color: #4e342e;
}

.modal-content label {
    display: block;
    margin-top: 15px;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4e342e;
}

.modal-content input[type="text"],
.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: normal;
}

.modal-actions .btn-primary {
    background-color: #ff8c00;
    color: white;
}

.modal-actions .btn-secondary {
    background-color: #e0e0e0;
    color: #4e342e;
}

.modal-actions .btn-danger {
    background-color: #d32f2f;
    color: white;
}

#inputModal input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#confirmationModal .modal-content,
#alertModal .modal-content {
    text-align: center;
}

#confirmationModal p,
#alertModal p {
    font-size: 1.1em;
    color: #4e342e;
}

#confirmationModal .modal-actions,
#alertModal .modal-actions {
    justify-content: center;
}

/* Copyright Styling */
.copyright {
    margin-top: 30px;
    font-size: 0.8em;
    color: #e0e0e0; /* Hellgrau auf dem braunen Body-Hintergrund */
}


/* ========================================
   EINZAHLUNGEN.HTML SPEZIFISCHE STYLES
   ======================================== */

/* Hauptcontainer für Desktop-Verwaltung */
.main-container {
    width: 1500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Header für Desktop-Verwaltung */
.header {
    text-align: center;
    margin-bottom: 30px;
    font-family: sans-serif;
}

.header h1 {
    color: #4e342e;
    margin-bottom: 20px;
    font-family: sans-serif;
}

/* Kassenstand-Header für einzahlungen.html (größer als kleine Seiten) */
.kassenstand-header {
    background-color: #e0e0e0;
    padding: 15px; /* Größer als kleine Seiten (15px) */
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    min-width: 350px; /* Breitere Box */
}

.kassenstand-header h2 {
    color: #4e342e;
    font-size: 1.6em;
    margin: 0 0 3px 0;
}

.kassenstand-header p {
    font-size: 2.2em;
    font-weight: bold;
    color: #4e342e;
    margin: 0;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.nav-button {
    background-color: #4e342e;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: normal;
    transition: background-color 0.2s;
}

.nav-button:hover {
    background-color: #ff8c00;
}

.nav-button.active {
    background-color: #ff8c00;
}

/* Tab Content */
.tab-content {
    display: none;
    min-height: 400px;
}

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

/* Grid Layout für Einzahlungen */
.mitarbeiter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 20px;
    max-width: 1420px;
}

.mitarbeiter-card {
    background-color: #4e342e;
    color: white;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mitarbeiter-card:hover {
    background-color: #ff8c00;
    transform: translateY(-2px);
}

.mitarbeiter-card h3 {
    margin: 0;
    font-size: 1em;
    font-weight: normal;
}

.mitarbeiter-card p {
    font-size: 0.85em;
    opacity: 0.9;
    margin: 0;
}

/* Upload Formular */
.upload-form {
    max-width: 1420px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input-wrapper input[type=file] {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 2px dashed #ccc;
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
}

/* Salden Tabelle */
.salden-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.salden-table th,
.salden-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.salden-table th {
    background-color: #4e342e;
    color: white;
    font-weight: bold;
}

/* Details Tabelle (weiße Header) */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    text-align: center;
    table-layout: fixed;
}

.details-table th,
.details-table td {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.details-table th {
    background: none;
    color: #000;
    font-weight: bold;
}

.salden-table tr:hover {
    background-color: #f5f5f5;
}

.salden-table td.positive {
    color: #000;
    font-weight: bold;
}

.salden-table td.negative {
    color: #dc3545;
    font-weight: bold;
}

/* Letzte Einzahlungen */
.letzte-einzahlungen {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.letzte-einzahlungen-list {
    list-style: none;
    padding-left: 0;
}

.letzte-einzahlungen-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Refresh Button - eigenständige Klasse */
.refresh-button {
    background-color: #4e342e;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.5em; /* Größeres Icon für ⟳ */
    font-weight: normal;
    transition: background-color 0.2s;
}

.refresh-button:hover {
    background-color: #ff8c00;
}

/* Übersicht Chart Container */
.chart-container {
    margin-top: 30px;
}

.chart-container canvas {
    max-height: 400px;
}

/* === ZUSÄTZLICHE UTILITY-KLASSEN === */

/* Error Message */
.error-message {
    display: none;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    text-align: center;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    margin-bottom: 20px;
}

.password-input-container input {
    width: 100%;
    padding: 10px;
    padding-right: 45px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.password-toggle-button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
}

/* Login Footer Text */
.login-footer-text {
    text-align: center;
    color: #666;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Button Width Variants */
.btn-submit.btn-auto {
    width: auto;
    padding: 10px 30px;
}

.btn-submit.btn-full {
    width: 100%;
}

/* Textarea Full Width */
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    font-family: sans-serif;
}

/* Table Full Width */
.table-full {
    width: 95%;
}

/* Horizontal Divider */
.hr-divider {
    margin: 40px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* Detail View Container */
.detail-view-container {
    margin-top: 20px;
}

/* OCR Status */
.ocr-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}

/* Small Text */
.small-text {
    color: #666;
    font-size: 0.9em;
}

/* Text Alignment Utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Color Utilities */
.text-red {
    color: red;
}

.text-green {
    color: green;
}

.text-gray {
    color: #666;
}

/* Margin Utilities */
.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* Input Width Utility */
.input-small {
    width: 80px;
    text-align: center;
}

/* Refresh Button for einzahlungen_app.html */
.refresh-btn {
    background: #4e342e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    padding: 10px 30px;
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.refresh-btn:hover {
    background-color: #ff8c00 !important;
}

/* Button Group for einzahlungen_app.html */
.button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* Prognose Box Styling */
.prognose-container {
    background-color: #e0e0e0; /* Hellgrau wie Kassenstand */
    padding: 15px 20px;
    border-radius: 5px;
    margin: 30px auto;
    max-width: 90%;
    text-align: center;
}

.prognose-container .prognose-title {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #4e342e; /* Dunkles Kaffeebraun */
    margin-bottom: 8px;
}

.prognose-container .prognose-content {
    font-family: sans-serif;
    font-size: 14px;
    color: #4e342e;
}

.prognose-container .prognose-content strong {
    font-weight: bold;
}

/* Drag & Drop Zone */
.drop-zone {
    border: 3px dashed #6f4e37;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.drop-zone:hover {
    background-color: #f0f0f0;
    border-color: #4e342e;
}

.drop-zone-active {
    background-color: #e8f5e9;
    border-color: #4caf50;
    border-style: solid;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.drop-zone-content svg {
    color: #6f4e37;
    opacity: 0.6;
}

.drop-zone-text {
    font-size: 16px;
    font-weight: 600;
    color: #4e342e;
    margin: 0;
}

.drop-zone-hint {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6f4e37 0%, #4e342e 100%);
    width: 0%;
    transition: width 0.3s ease;
}
