/* Mobile Box Styles for Card Layout */
@media screen and (max-width: 768px) {    
    .mobile-table {
        display: block;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
    }
    
    /* Style dla budowy */
    .mobile-budowa {
        margin-bottom: 20px;
    }
    .mobile-budowa-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #16213E;
        padding: 12px;
        border-radius: 8px;
        margin-bottom: 10px;
        cursor: pointer;
    }
    .mobile-budowa-title {
        font-size: 16px;
        font-weight: bold;
        color: #fff;
    }
    .mobile-budowa-toggle {
        font-size: 22px;
        font-weight: bold;
        color: #E94560;
        margin-left: 10px;
        user-select: none;
    }
    .mobile-budowa-content {
        padding: 0 10px;
        display: none; /* Ukryj domyślnie */
    }
    
    /* Style dla etapu */
    .mobile-etap {
        background: #222;
        border-radius: 8px;
        margin-bottom: 10px;
        overflow: hidden;
    }
    .mobile-etap-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #2A2A2A;
        padding: 10px 12px;
        cursor: pointer;
    }
    .mobile-etap-title {
        font-size: 15px;
        font-weight: bold;
        color: #4CAF50;
    }
    .mobile-etap-toggle {
        font-size: 20px;
        font-weight: bold;
        color: #E94560;
        margin-left: 10px;
        user-select: none;
    }
    .mobile-etap-summary {
        padding: 8px 12px;
        border-bottom: 1px dashed #333;
    }
    .mobile-etap-documents {
        padding: 5px 0;
        display: none; /* Ukryj domyślnie */
    }
    
    /* Style dla dokumentu */
    .mobile-document {
        padding: 8px 12px;
        border-bottom: 1px solid #333;
    }
    .mobile-document:last-child {
        border-bottom: none;
    }
    .mobile-document-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px;
    }
    .mobile-document-details {
        display: flex;
        justify-content: space-between;
        font-size: 13px;
        color: #ccc;
    }
    
    /* Style dla podsumowań */
    .mobile-summary-row, .mobile-total-row {
        background: #16213E;
        padding: 10px 12px;
        border-radius: 8px;
        margin: 15px 0;
    }
    .mobile-total-row {
        background: #003366;
        border: 1px solid #E94560;
    }
    
    /* Wspólne style */
    .mobile-row-label {
        font-weight: bold;
        color: #4CAF50;
        font-size: 14px;
        margin-bottom: 4px;
    }
    .mobile-row-value {
        margin-bottom: 6px;
        font-size: 14px;
        color: #E0E0E0;
    }
    
    /* Style dla kolorów */
    .negative-value {
        color: #E94560 !important;
    }
    .positive-value {
        color: #4CAF50 !important;
    }
    
    /* Style dla informacji o dokumentach */
    .contractor {
        color: #4CAF50;
        font-weight: 500;
    }
    .number {
        color: #E0E0E0;
    }
    .type {
        color: #E94560;
    }
    .date {
        color: #007bff;
    }
    .value {
        font-weight: bold;
        color: #E0E0E0;
    }

    .date-range-container {
        position: static !important;
    }
}

.mobile-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    color: #4CAF50;
    font-size: 16px;
    margin-bottom: 6px;
}
.mobile-row-toggle {
    font-size: 22px;
    font-weight: bold;
    color: #E94560;
    margin-left: 10px;
    user-select: none;
    transition: color 0.2s;
}
.mobile-row-toggle:hover {
    color: #007bff;
}
