:root {
    --bg-body: #f5f7fb;
    --bg-header: #ffffff;
    --text-header: #000000;
    --bg-card: #ffffff;
    --bg-card-header: #212529;
    --text-card-header: #ffffff;
    --border-color: rgba(0, 0, 0, .125);
}

[data-bs-theme="dark"] {
    --bg-body: #0f0f12;
    --bg-header: #2b2f33;
    --text-header: #ffffff;
    --bg-card: #2b2f33;
    --bg-card-header: #000000;
    --text-card-header: #ffffff;
    --border-color: #495057;
}

body {
    background-color: var(--bg-body);
    transition: background-color 0.3s ease
}

.app {
    padding: 16px
}

header.app-header {
    background-color: var(--bg-header);
    color: var(--text-header);
    border-radius: .5rem;
    padding: .75rem 1rem;
    margin-bottom: .75rem;
    border: 1px solid var(--border-color)
}

.card {
    background-color: var(--bg-card);
    border-radius: .5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
    height: 100%
}

.card-header {
    background-color: var(--bg-card-header);
    color: var(--text-card-header);
    border-bottom: 0;
    font-weight: 600
}

.section-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none
}

.section-toggle:hover {
    filter: brightness(1.2)
}

.card-body {
    min-height: 40px;
    flex-grow: 0
}

.form-label {
    display: block;
    margin-bottom: .25rem;
    font-size: .85rem
}

.form-control, .form-select {
    padding: .25rem .5rem;
    font-size: .875rem
}

.btn-sm {
    padding: .35rem .6rem
}

.modal-payment {
    background-color: var(--bg-card);
    color: var(--text-header);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.30);
}

.modal-backdrop.show {
    opacity: 0.7;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: .375rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-decoration: none;
    border: 1px solid transparent;
}

.icon-btn-view,
.icon-btn-edit {
    color: #0d6efd;
    border-color: #0d6efd;
    background-color: transparent;
}

.icon-btn-view:hover,
.icon-btn-edit:hover {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.icon-btn-delete {
    color: #dc3545;
    border-color: #dc3545;
    background-color: transparent;
}

.icon-btn-delete:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.icon-btn-view,
.icon-btn-edit,
.icon-btn-delete {
    padding: 0;
}

.icon-form {
    display: inline;
    margin: 0;
}

.icon-btn i {
    font-size: 1rem;
}

.icon-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dropdown .btn-primary.btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    min-width: 200px;
    text-align: left;
    position: relative;
}

.dropdown .btn-primary.btn-sm::after {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-menu {
    font-size: 0.875rem;
    min-width: 200px;
}

.dropdown-item.active {
    background-color: #0d6efd;
    color: white;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.dropdown-item.active:hover {
    background-color: #0b5ed7;
    color: white;
}

#downloadBtn {
    padding: 0.35rem 0.6rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

[data-bs-theme="dark"] .dropdown-item {
    color: #dee2e6;
}

[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: #495057;
    color: white;
}

[data-bs-theme="dark"] .dropdown-item.active {
    background-color: #0d6efd;
    color: white;
}

[data-bs-theme="dark"] .dropdown-item.active:hover {
    background-color: #0b5ed7;
    color: white;
}

.col-date{width: 18%}
.col-money{width: 14%;text-align: right;}
.col-action{width: 10%;text-align: center;}

.disabled-field {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #e9ecef;
}

.disabled-label {
    opacity: 0.5;
    color: #6c757d;
}

[data-bs-theme="dark"] .disabled-field {
    background-color: #495057;
}

[data-bs-theme="dark"] .disabled-label {
    color: #adb5bd;
}