body {
    font-family: Calibri, Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    margin: 20px;
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 5px 0;
}

p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    color: #555555;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11pt;
}

th, td {
    border: 1px solid #d4d4d4;
    padding: 4px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    background-color: #f3f3f3;
    font-weight: bold;
    border-bottom: 2px solid #cccccc;
}

tfoot th, tfoot td {
    background-color: #f3f3f3;
    font-weight: bold;
    border-top: 2px solid #cccccc;
}

th.amount, td.amount {
    text-align: right;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.cell-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.lock-icon {
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.5;
    user-select: none;
}

.lock-icon:hover {
    opacity: 1;
}

.edit-value {
    min-width: 40px;
    padding: 2px 4px;
    display: inline-block;
    border: 1px solid transparent;
}

.editable-cell .edit-value {
    background-color: #fdfdfd;
}

.editable-cell .edit-value:hover, .editable-cell .edit-value:focus {
    border-color: #007bff;
    background-color: #fff;
    outline: none;
}

.locked-cell {
    background-color: #f5f5f5;
    border-radius: 4px;
}

#export-btn {
    padding: 8px 16px;
    background-color: #107c41;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

#export-btn:hover {
    background-color: #0c5e31;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    body {
        margin: 10px;
    }
    h1 {
        font-size: 1.2rem;
    }
    th, td {
        padding: 4px;
        font-size: 10pt;
    }
    .edit-value {
        min-width: 30px;
    }
    .header-container {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }
}
