﻿
.login-page * { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

.login-page body { 
    font-family: Arial, sans-serif; 
    background: #f5f5f5;
    line-height: 1.6;
    color: #333;
}

.login-page .container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 20px; 
}

.login-page .header { 
    background: #2c3e50; 
    color: white; 
    padding: 1rem 0; 
    margin-bottom: 2rem;
}

.login-page .header h1 { 
    text-align: center; 
    font-size: 1.8rem;
}

.login-page .login-container,
.login-page .dashboard { 
    max-width: 500px; 
    margin: 2rem auto; 
    padding: 2rem; 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
}

.login-page .error { 
    color: #d63031; 
    background: #ffeaa7; 
    padding: 12px; 
    border-radius: 4px; 
    margin: 1rem 0; 
    border-left: 4px solid #d63031;
}

.login-page .info { 
    color: #00b894; 
    background: #55efc4; 
    padding: 12px; 
    border-radius: 4px; 
    margin: 1rem 0; 
    border-left: 4px solid #00b894;
}

.login-page .form-group { 
    margin: 1.5rem 0; 
}

.login-page label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: bold; 
    color: #2d3436;
}

.login-page input[type="email"], 
.login-page input[type="text"],
.login-page input[type="password"],
.login-page select { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid #ddd; 
    border-radius: 4px; 
    font-size: 16px; 
    transition: border-color 0.3s;
}

.login-page input:focus, 
.login-page select:focus {
    border-color: #3498db;
    outline: none;
}

.login-page button { 
    width: 100%; 
    padding: 14px; 
    background: #3498db; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    font-size: 16px; 
    cursor: pointer; 
    transition: background 0.3s;
}

.login-page button:hover { 
    background: #2980b9; 
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #fafafa;
    color: #2d2d2d;
    font-size: 13px;
}


.dashboard-layout {
    display: grid;
    grid-template-areas: 
        "top-left top-right"
        "nav      main";
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr;
    min-height: 100vh;
    gap: 0.5rem;
    padding: 0.5rem;
}


.area-top-left {
    grid-area: top-left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.session-box {
    background: #ffe7c2;
    color: #4b2e05;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    height: 80px;
}

.session-timer {
    background: #e07a6a;
    color: #ffffff;
    padding: 0.3rem;
    border-radius: 3px;
    font-family: monospace;
    text-align: center;
    font-size: 12px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.7rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
}

.user-info button {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}


.mandant-box {
    background: #ffffff;
    color: #2d2d2d;
    padding: 0.75rem;
    border-radius: 6px;
    height: 160px;
}

.mandant-box h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.mandant-box select {
    width: 100%;
    padding: 0.3rem;
    margin-bottom: 0.3rem;
    border-radius: 3px;
    border: none;
    background: #f3f4f6;
    color: #2d2d2d;
}


.area-top-right {
    grid-area: top-right;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.header-box {
    background: #eaf2f8;
    color: #2d2d2d;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 80px;
}

.title-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.title-section h2 {
    font-size: 1.2rem;
    margin-left: 0.2rem;
    white-space: nowrap;
}
.powered-by {
    text-align: right;
    margin-top: -10px;
    font-size: 16px; 
}

.powered-text {
    font-size: 0.9em;  
    font-weight: 300;
    color: #666;
    letter-spacing: 0.5px;
}

.futurvision {
    font-size: 1.2em;  
    font-weight: 600;
    color: #2c3e50;
    font-style: italic;
    letter-spacing: 1px;
    margin-left: 5px;
}

.search-integrated {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.search-integrated input {
    width: 180px;
    padding: 0.3rem;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #ffffff;
    color: #2d2d2d;
    font-size: 12px;
}

.search-integrated select {
    width: 140px;
    padding: 0.3rem;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #ffffff;
    color: #2d2d2d;
    font-size: 12px;
}

.search-btn {
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    font-size: 12px;
}


.erfassung-box {
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    height: 160px;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.middle-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}



.erfassung-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 350px;
}

.form-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    display: block;
    color: #2d2d2d;
}


.erfassung-rechts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 430px !important;
}

.top-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.bottom-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.checkbox-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.checkbox-column span {
    font-size: 0.7rem;
    font-weight: bold;
    color: #2d2d2d;
}


.clear-btn-square {
    background: #3498db; 
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    height: 44px;        
    width: 75px;         
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    font-size: 0.7rem;
    opacity: 0.9;
}

.clear-btn-square:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}


.save-btn-square {
    background: #27ae60;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    height: 44px;        
    width: 75px;         
    display: flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb;
    font-size: 0.8rem;
}

.save-btn-square:hover {
	transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background: #219652;
}


.auto-booking-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 3px;
    padding: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    height: 44px;
    width: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auto-booking-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}



.stats-right {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    align-items: flex-end;
}

.stat-item {
    text-align: center;
    border: 1px solid #3498db;  
    border-radius: 6px;         
    padding: 5px;               
    background-color: rgba(52, 152, 219, 0.08); 
    margin: 2px;                
    color: #2d2d2d;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: #2d2d2d;
}

.stat-value {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    color: #2d2d2d;
	text-align: right;
}

.tax-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    font-size: 0.7rem;
    color: #7f8c8d;
}

.tax-item {
    text-align: center;
}


.bank-item, .cash-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #2d2d2d;
}

.bank-label, .cash-label {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 2px;
}

.bank-value, .cash-value {
    font-size: 0.8rem;
    font-weight: bold;
}


.bank-item, .cash-item {
    color: #2d2d2d;
    font-weight: bold;
    border: 0px solid #3498db;
    border-radius: 4px;
    padding: 5px;
    margin-bottom: 12px;
    background-color: rgba(52, 152, 219, 0.08);
}


.bank-item, .cash-item {
    color: #2d2d2d;
    font-weight: bold;
    border: 1px solid #3498db;
    border-radius: 4px;
    padding: 10px;
    margin-top: 5px;
    background-color: rgba(52, 152, 219, 0.08);
}


select, input {
    padding: 0.3rem;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    width: 100%;
    font-size: 12px;
    background: #ffffff;
    color: #2d2d2d;
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}


.area-nav {
    grid-area: nav;
    background: #eaf2f8;     
    color: #2c3e50;          
    padding: 0.75rem;
    border-radius: 6px;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    margin: 0.3rem 0;
}

.nav-menu a {
    color: #2c3e50;          
    text-decoration: none;
    padding: 0.4rem;
    display: block;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    font-size: 13px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #d0e3f0;     
    color: #000000;          
}


.dropdown {
    position: relative;
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #eaf2f8;
    min-width: 220px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 4px;
    border: 1px solid #d0e3f0;
    margin-left: 5px;
}

.dropdown-content a {
    color: #2c3e50;
    padding: 10px 12px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s, color 0.2s;
    font-size: 12px;
}

.dropdown-content a:hover,
.dropdown-content a.active {
    background: #3498db;
    color: #ffffff;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover > a,
.dropdown.active > a {
    background: #d0e3f0;
    color: #000000;
}


@media (max-width: 768px) {
    .dropdown-content {
        position: static;
        left: auto;
        top: auto;
        margin-left: 0;
        margin-top: 5px;
        box-shadow: none;
        border: 1px solid #d0e3f0;
        background: #f8fbfd;
    }
    
    .nav-menu a {
        padding: 0.5rem;
        font-size: 14px;
    }
}



.area-main {
    grid-area: main;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    overflow: auto;
    color: #2d2d2d;
}


.journal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0;
    font-size: 12px;
}

.journal-table th,
.journal-table td {
    padding: 0.3rem;
    border: 1px solid #dddddd;
    text-align: left;
    color: #2d2d2d;
}

.journal-table th {
    background: #f8f9fa;
    font-weight: bold;
    position: sticky;
    top: 0;
    cursor: pointer;
    color: #2d2d2d;
}

.journal-table th:hover {
    background: #e9ecef;
}


.sort-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sort-icons {
    display: flex;
    gap: 0.1rem;
    margin-top: 0.1rem;
}

.sort-up, .sort-down {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.table-actions {
    display: flex;
    gap: 0.2rem;
}

.btn-small {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    width: auto;
    background: #3498db;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.btn-small:hover {
    background: #2980b9;
}

.btn-delete {
    position: relative;
    width: 1.6rem;
    min-width: 1.6rem;
    height: 1.45rem;
    overflow: hidden;
    color: transparent !important;
}

.btn-delete::before {
    content: "×";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.btn-delete:hover::before {
    color: #ffffff;
}

.btn-pdf {
    width: 2.35rem;
    min-width: 2.35rem;
    height: 1.45rem;
    padding: 0;
    background: #c0392b;
    color: #ffffff;
    border: 1px solid #ffffff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.btn-pdf:hover {
    background: #a93226;
}

.afa-symbol {
    text-align: center;
    font-size: 0.9rem;
}



.pagination {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    gap: 0.3rem;
    align-items: center;
    color: #2d2d2d;
}


.pagination button {
    padding: 0.2rem 0.5rem;
}

.page-dropdown {
    padding: 0.2rem;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    font-size: 0.8rem;
    width: 60px;
    background: #ffffff;
    color: #2d2d2d;
}

.page-info {
    flex: 1;
    text-align: center;
    color: #7f8c8d;
}


.booking-checkboxes {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-item label {
    font-size: 0.8rem;
    color: #2d2d2d;
    white-space: nowrap;
}


.print-btn {
    background: #95a5a6;
    color: #ffffff;
    border: none;
    border-radius: 3px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: -0.5rem;
}

.print-btn:hover {
    background: #7f8c8d;
}


@media print {
    body * {
        visibility: hidden;
    }
    .area-main, .area-main * {
        visibility: visible;
    }
    .area-main {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
    }
    .pagination, .btn-small {
        display: none !important;
    }
    .journal-table {
        font-size: 10pt;
    }
    .journal-table th, .journal-table td {
        padding: 4px;
        border: 1px solid #000;
    }
}
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 10000;
    }

    .modal-content {
        background: white;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        max-width: 300px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .modal-buttons button {
        background: #3498db;
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        margin-top: 10px;
    }

    .modal-buttons button:hover {
        background: #2980b9;
    }

.journal-table td {
    text-align: right;
}


.journal-table td:nth-child(4) {
    text-align: left;
}


.amount-revenue {
    font-weight: bold;
}



.journal-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.journal-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}


.journal-table tbody tr:hover {
    background-color: #e3f2fd;
    cursor: pointer;
}


.journal-table tbody tr.selected {
    background-color: #fff3cd !important;
    border-left: 3px solid #ffc107;
}



.btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-cancel {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #7f8c8d;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}
.dark-orange-row {
    border: 3px solid #cc5500 !important;
}

.balanced-value {
    color: #28a745 !important; 
    font-weight: bold;
}

.unbalanced-value {
    color: #dc3545 !important; 
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}


.balanced-value:hover {
    background-color: rgba(40, 167, 69, 0.1);
}

.unbalanced-value:hover {
    background-color: rgba(220, 53, 69, 0.1);
    text-decoration: underline;
    transform: scale(1.02);
}


.stat-value {
    font-family: monospace;
    text-align: right;
    padding: 2px 5px;
    border-radius: 3px;
    margin-top: 2px;
}


#transitDiscrepancyModal .modal-content {
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
}

.discrepancies-table {
    overflow-x: auto;
    margin: 15px 0;
}

.discrepancies-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.discrepancies-table th {
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    background: #f1f3f4;
}

.discrepancies-table td {
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.discrepancies-table tr:hover {
    background-color: #f8f9fa;
}

.modal-summary {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-style: italic;
}




.journal-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 0.5rem;
}


.journal-stats-dropdown {
    width: 100%;
    margin-bottom: 5px;
    padding: 4px 8px;
    font-size: 12px;
}


.search-integrated-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: 20px;
}

.booking-checkboxes-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-item-container {
    display: flex;
    align-items: l;
}


.filter-year {
    width: 80px;
}

.filter-month {
    width: 100px;
}

.filter-search-column {
    width: 150px;
}


.search-input-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.print-btn-container {
    margin-left: 10px;
}


.transit-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.transit-modal-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #2196F3;
    padding-bottom: 10px;
}

.transit-modal-header h2 {
    margin: 0;
    color: #2196F3;
    font-size: 20px;
}

.transit-modal-period {
    font-size: 16px;
    color: #555;
    margin-top: 5px;
}

.transit-section {
    margin-bottom: 30px;
}

.transit-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #2196F3;
}

.transit-section-title {
    color: #2196F3;
    margin: 0;
    font-size: 16px;
}

.transit-section-stats {
    font-size: 13px;
    color: #666;
}

.transit-table-container {
    overflow-x: auto;
}

.transit-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.transit-table th {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
    background: #e3f2fd;
}

.transit-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.transit-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.transit-table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.transit-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.transit-close-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    min-width: 150px;
}


.child-transit-header {
    border-bottom: 2px solid #4CAF50 !important;
}

.child-transit-title {
    color: #4CAF50 !important;
}

.child-transit-close-btn {
    background: #4CAF50 !important;
}


.row-matched {
    opacity: 0.7;
    text-decoration: line-through;
    color: #6c757d;
}

.row-unmatched {
    font-weight: bold;
}

.amount-matched {
    text-decoration: line-through;
    color: #6c757d;
}

.status-matched {
    color: #28a745;
    font-weight: bold;
}

.status-unmatched {
    color: #dc3545;
    font-weight: bold;
}


.transit-grid {
    display: grid;
    grid-template-columns: 80px 1fr 1fr; 
    gap: 4px;
    margin-bottom: 8px;
}

.transit-grid-header {
    font-size: 11px;
    color: #666;
}

.transit-grid-label {
    font-size: 12px;
    padding: 3px 0;
}

.transit-positive-cell {
    text-align: right;
    padding: 3px 6px;
    background: #e8f5e8;
    border-radius: 3px;
}

.transit-negative-cell {
    text-align: right;
    padding: 3px 6px;
    background: #ffebee;
    border-radius: 3px;
}

.transit-separator {
    grid-column: 1 / 4;
    height: 1px;
    background: #ccc;
    margin: 4px 0;
}

.transit-difference-cell {
    text-align: right;
    padding: 3px 6px;
    font-weight: bold;
}


.transit-empty-state {
    text-align: center;
    padding: 20px;
    color: #999;
}

.difference-label {
    font-size: 12px;
    padding: 3px 0;
}

.child-table-container {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.child-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.child-table-title {
    color: #555;
}

.child-table-info {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.difference-summary {
    margin-top: 10px;
    padding: 12px;
    border-radius: 5px;
    border: 2px solid;
}

.difference-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.difference-details {
    margin-left: 10px;
    font-size: 12px;
    color: #666;
}

.difference-amount {
    font-size: 20px;
    font-weight: bold;
}

.empty-icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-title {
    margin: 0 0 10px 0;
    color: #666;
}

.empty-description {
    font-size: 13px;
    color: #888;
    max-width: 500px;
    margin: 0 auto;
}

.matched-count {
    color: #28a745;
    margin-right: 15px;
}

.unmatched-count {
    color: #dc3545;
}



.balance-transition {
    transition: all 0.3s ease-in-out !important;
}


.balance-loading {
    color: #ff9800 !important;
    font-style: italic;
}


.balance-positive {
    background-color: #e8f5e9 !important;  
    color: #2e7d32 !important;             
    font-weight: bold !important;
}


.balance-negative {
    background-color: #ffebee !important;  
    color: #d32f2f !important;             
    font-weight: bold !important;
}


.balance-zero {
    background-color: #fff3e0 !important;  
    color: #f57c00 !important;             
}


.balance-no-account {
    background-color: #f5f5f5 !important;  
    color: #999 !important;
    font-style: italic;
}


.balance-error {
    background-color: #ffebee !important;  
    color: #d32f2f !important;             
    animation: pulse-error 1s ease-in-out;
}




.select-feedback-bank {
    box-shadow: 0 0 0 2px #2196F3 !important;  
    border-color: #2196F3 !important;
    transition: all 0.2s !important;
}


.select-feedback-cash {
    box-shadow: 0 0 0 2px #4CAF50 !important;  
    border-color: #4CAF50 !important;
    transition: all 0.2s !important;
}



@keyframes pulse-error {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-success {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}




.dropdown-overlay {
    position: absolute;
    background: rgba(255, 248, 225, 0.92);
    border: 2px solid #ffcc80;
    border-radius: 6px;
    pointer-events: none;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ff6d00;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(255, 152, 0, 0.15);
    transition: all 0.3s ease;
}


.label-overlay {
    position: absolute;
    background: rgba(255, 250, 235, 0.85);
    border-radius: 4px;
    pointer-events: none;
    z-index: 99;
}


.dropdown-overlay span {
    background: rgba(255, 255, 255, 0.95);
    padding: 5px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 204, 128, 0.5);
    font-size: 11px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}


.dropdown-overlay:hover {
    background: rgba(255, 243, 205, 0.95);
    border-color: #ffa726;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
    transform: translateY(-1px);
}

.dropdown-overlay:hover span {
    background: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}


.form-group.has-empty-field {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.form-group.has-empty-field:hover {
    opacity: 1;
}


#overlay-remove-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}




#new-auto-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
}


#new-auto-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    z-index: 100000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


.auto-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.auto-header h2 {
    margin: 0;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-close-btn {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.auto-close-btn:hover {
    background: rgba(255,255,255,0.3);
}


.auto-filter {
    padding: 12px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auto-filter select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
    font-size: 13px;
    background: white;
}

.auto-filter .count-display {
    margin-left: auto;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}


.auto-table-wrapper {
    flex: 1;
    overflow: auto;
    padding: 0;
}


.auto-table {
    border-collapse: collapse;
    font-size: 12px;
    width: 100%;
    min-width: 800px;
}


.auto-table th:first-child {
    width: 40px;
    text-align: center;
}

.auto-table th:first-child input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
}


.auto-table th {
    padding: 10px 6px;
    border: 1px solid #bbdefb;
    background: #e3f2fd;
    font-weight: 600;
    text-align: center;
    position: sticky;
    top: 0;
}

.auto-table td {
    padding: 10px 6px;
    border: 1px solid #e0e0e0;
    vertical-align: middle;
}


.auto-table th:nth-child(1),
.auto-table td:nth-child(1) { 
    width: 40px; 
    text-align: center;
}

.auto-table th:nth-child(2),
.auto-table td:nth-child(2) { 
    width: 80px; 
    text-align: center;
}

.auto-table th:nth-child(3),
.auto-table td:nth-child(3) { 
    width: 60px; 
    text-align: center;
}

.auto-table th:nth-child(4),
.auto-table td:nth-child(4) { 
    width: 90px; 
    text-align: center;
}

.auto-table th:nth-child(5),
.auto-table td:nth-child(5) { 
    width: 250px; 
    text-align: left;
}

.auto-table th:nth-child(6),
.auto-table td:nth-child(6) { 
    width: 90px; 
    text-align: right;
}

.auto-table th:nth-child(7),
.auto-table td:nth-child(7) { 
    width: 90px; 
    text-align: right;
}

.auto-table th:nth-child(8),
.auto-table td:nth-child(8) { 
    width: 50px; 
    text-align: center;
}

.auto-table th:nth-child(9),
.auto-table td:nth-child(9) { 
    width: 80px; 
    text-align: center;
}

.auto-table th:nth-child(10),
.auto-table td:nth-child(10) { 
    width: 70px; 
    text-align: center;
}


.auto-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.auto-table tbody tr:nth-child(odd) {
    background: #ffffff;
}


.auto-table tbody tr:hover {
    background: #e3f2fd;
}


.auto-table td:nth-child(10) {
    background: #fff9e6;
    font-weight: bold;
}


.auto-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin: 0;
}

.auto-table input[type="number"] {
    width: 40px;
    padding: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 12px;
}

.auto-table input[type="text"] {
    width: 70px;
    padding: 4px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    box-sizing: border-box;
    font-size: 12px;
}


.interval-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}


.interval-daily {
    background: #e3f2fd;
    color: #1565c0;
}

.interval-weekly {
    background: #e8f5e8;
    color: #2e7d32;
}

.interval-monthly {
    background: #fff3e0;
    color: #ef6c00;
}

.interval-quarterly {
    background: #f3e5f5;
    color: #7b1fa2;
}

.interval-annually {
    background: #ffebee;
    color: #c62828;
}


.auto-footer {
    padding: 15px 20px;
    background: #f5f5f5;
    border-top: 1px solid #ddd;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auto-footer-info {
    color: #666;
    font-size: 12px;
}


.auto-save-btn {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-width: 140px;
    justify-content: center;
}

.auto-save-btn:hover:not(:disabled) {
    background: #219652;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.auto-save-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auto-save-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}


.auto-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

.auto-empty {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}


.positive-amount {
    color: #2e7d32;
    font-weight: 500;
}

.negative-amount {
    color: #d32f2f;
    font-weight: 500;
}


.auto-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.auto-table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.auto-table-wrapper::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.auto-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


@media (max-width: 1200px) {
    #new-auto-modal {
        width: 98%;
        height: 90vh;
    }
}

.account-input-wrapper-fibu {
    position: relative;
    width: 100%;
}

.account-input-with-icon-fibu {
    display: flex;
    align-items: center;
    position: relative;
}

.account-input-fibu {
    flex: 1;
    padding: 0.3rem;
    padding-right: 35px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    width: 100%;
    font-size: 12px;
    background: #ffffff;
    color: #2d2d2d;
}

.account-input-fibu:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.account-input-icon-fibu {
    position: absolute;
    right: 10px;
    cursor: pointer;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
    user-select: none;
    border: 1px solid #ddd;
}

.account-input-icon-fibu:hover {
    background: #e0e0e0;
}

.account-dropdown-fibu {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    margin-top: 2px;
}

.account-dropdown-header-fibu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    font-weight: bold;
    font-size: 14px;
    color: #2d2d2d;
}

.account-dropdown-close-fibu {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 0 5px;
    line-height: 1;
}

.account-dropdown-close-fibu:hover {
    color: #333;
}

.account-dropdown-content-fibu {
    max-height: 250px;
    overflow-y: auto;
}

.account-result-item-fibu {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #2d2d2d;
    font-size: 12px;
}

.account-result-item-fibu:hover,
.account-result-item-fibu:focus {
    background-color: #e3f2fd;
    outline: none;
}

.account-no-fibu {
    font-weight: bold;
    min-width: 60px;
    font-family: monospace;
    flex-shrink: 0;
}

.account-name-fibu {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-vat-fibu {
    font-size: 11px;
    color: #666;
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-dropdown-footer-fibu {
    padding: 8px 12px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 11px;
    color: #666;
}

.account-tip-fibu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.modal-table th,
.modal-table td {
    padding: 8px;
    border: 1px solid #dddddd;
    text-align: left;
    color: #2d2d2d;
}

.modal-table th {
    background: #f8f9fa;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.modal-table tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

.modal-table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.modal-table tbody tr:hover {
    background-color: #e3f2fd;
}

:root {
    --report-section-bg: #f3f5f7;
    --report-total-bg: #eef5ee;
    --report-missing-bg: #fff1f1;
    --report-manual-bg: #fffaf0;
    --report-missing-input-bg: #fffafa;
    --report-missing-accent: #c62828;
    --report-positive-color: #067647;
    --report-negative-color: #b42318;
    --report-success-color: #3c6e47;
    --report-control-border: #c7cdd4;
    --report-button-border: #9aa4af;
    --report-button-bg: #f5f7f9;
    --report-strong-border: #555555;
}
