.btn {
    background-image: none !important;
    box-shadow: none !important;
    transition: none !important;
    border: none !important;
    font-weight: 500 !important;
}

.btn-primary,
.btn-primary:active,
.btn-primary:focus {
    background-color: #002875 !important;
    color: white !important;
}

.btn-primary:hover {
    background-color: #001f5a !important;
    color: #FFBF00 !important;
}

.btn-secondary,
.btn-secondary:active,
.btn-secondary:focus {
    background-color: #5c636a !important;
    color: white !important;
}

.btn-secondary:hover {
    background-color: #4d5359 !important;
    color: white !important;
}

.btn-primary-custom,
.btn-primary-custom:active,
.btn-primary-custom:focus {
    background-color: #002875 !important;
    color: white !important;
}

.btn-primary-custom:hover {
    background-color: #001f5a !important;
    color: white !important;
}

.btn-outline-primary-custom-invert {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    transition: all 0.3s ease;
}

.btn-outline-primary-custom-invert:hover {
    background-color: white !important;
    color: #002875 !important;
}

.btn-close-custom {
    background-color: transparent !important;
    color: white !important;
    transition: all 0.3s ease;
}

.btn-close-custom:hover {
    color: #ededed !important;
}

.btn-success,
.btn-success:active,
.btn-success:focus {
    background-color: #198754 !important;
    color: white !important;
}

.btn-success:hover {
    background-color: #157347 !important;
    color: white !important;
}

.btn-warning,
.btn-warning:active,
.btn-warning:focus {
    background-color: #ffc107 !important;
    color: white !important;
}

.btn-warning:hover {
    background-color: #e0a800 !important;
    color: white !important;
}

.btn-danger,
.btn-danger:active,
.btn-danger:focus {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-danger:hover {
    background-color: #bb2d3b !important;
    color: white !important;
}

.btn-info,
.btn-info:active,
.btn-info:focus {
    background-color: #17a2b8 !important;
    color: white !important;
}

.btn-info:hover {
    background-color: #138496 !important;
    color: white !important;
}

.btn-dark,
.btn-dark:active,
.btn-dark:focus {
    background-color: #212529 !important;
    color: white !important;
}

.btn-dark:hover {
    background-color: #1a1e21 !important;
    color: white !important;
}

.btn-search,
.btn-search:active,
.btn-search:focus {
    background-color: #002875 !important;
    color: white !important;
}

.btn-search:hover {
    background-color: #001f5a !important;
    color: white !important;
}

.btn-outline-search {
    background-color: transparent !important;
    color: #002875 !important;
    border: 2px solid #002875 !important;
    transition: all 0.3s ease;
}

.btn-outline-search:hover {
    background-color: #001f5a !important;
    color: white !important;
}

.btn-outline-search-invert {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid white !important;
    transition: all 0.3s ease;
}

.btn-outline-search-invert:hover {
    background-color: white !important;
    color: #002875 !important;
}

.btn-includeOrSave,
.btn-includeOrSave:active,
.btn-includeOrSave:focus {
    background-color: #198754 !important;
    color: white !important;
}

.btn-includeOrSave:hover {
    background-color: #157347 !important;
    color: white !important;
}

.btn-outline-includeOrSave {
    background-color: transparent !important;
    color: #198754 !important;
    border: 2px solid #198754 !important;
    transition: all 0.3s ease;
}

.btn-outline-includeOrSave:hover {
    background-color: #157347 !important;
    color: white !important;
}

.btn-clean,
.btn-clean:active,
.btn-clean:focus {
    background-color: #fd9d0d !important;
    color: white !important;
}

.btn-clean:hover {
    background-color: #d7900b !important;
    color: white !important;
}

.btn-outline-clean {
    background-color: transparent !important;
    color: #fd9d0d!important;
    border: 2px solid #fd9d0d !important;
    transition: all 0.3s ease;
}

.btn-outline-clean:hover {
    background-color: #d7900b !important;
    color: white !important;
}

.btn-delete,
.btn-delete:active,
.btn-delete:focus {
    background-color: #dc3545 !important;
    color: white !important;
}

.btn-delete:hover {
    background-color: #bb2d3b !important;
    color: white !important;
}

.btn-outline-delete {
    background-color: transparent !important;
    color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    transition: all 0.3s ease;
}

.btn-outline-delete:hover {
    background-color: #bb2d3b !important;
    color: white !important;
}

.btn-print,
.btn-print:active,
.btn-print:focus {
    background-color: #212529 !important;
    color: white !important;
}

.btn-print:hover {
    background-color: #1a1e21 !important;
    color: white !important;
}

.btn-outline-print {
    background-color: transparent !important;
    color: #212529 !important;
    border: 2px solid #212529 !important;
    transition: all 0.3s ease;
}

.btn-outline-print:hover {
    background-color: #1a1e21 !important;
    color: white !important;
}

.container {
    padding: 5px !important;
}

.btn-icon {
    width: 24px !important;
    height: 24px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    line-height: 1 !important;
    border-radius: 6px !important;
}

.modern-window {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    background-color: #ffffff;
    overflow: hidden;
}

.modern-window .z-window-header {
    background-color: #00215e;
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 16px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modern-window .z-window-content {
    background-color: white;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.modern-window .z-button {
    border-radius: 6px;
    font-weight: 600;
    padding: 6px 14px;
}

.modern-window .z-button:hover {
    opacity: 0.85;
}

.z-window.modern-window {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: none !important;
}

.z-window.modern-window > .z-window-header {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.z-window.modern-window > .z-window-content {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}

.container-lg, .px-4 {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

.z-include {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
}
.z-listitem > .z-listcell {
    background: inherit !important;
}

.modern-listbox {
    border: none !important;
    border-radius: 10px !important;
    background-color: #00215e !important;
    font-size: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.z-listbox-header {
    background: transparent !important;
}

.modern-listheader {
    background: transparent !important;
    padding: 8px 5px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: none !important;
}

.z-listheader.modern-listheader > .z-listheader-content {
    color: #ffffff !important;
    font-weight: bolder !important;
}

.modern-paging {
    background-color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    font-size: 14px !important;
    color: #2c3e50 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.modern-paging .z-paging-button {
    background-color: #f6faff !important;
    border: 1px solid #e0e6eb !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.modern-paging .z-paging-button:hover {
    background-color: #e6f0fa !important;
    border-color: #4a90e2 !important;
    color: #1d3557 !important;
}

.modern-paging .z-paging-button.z-paging-button-disabled {
    background-color: #f1f1f1 !important;
    border-color: #e0e6eb !important;
    color: #a0a0a0 !important;
    cursor: not-allowed !important;
}

.modern-paging .z-paging-input {
    border: 1px solid #e0e6eb !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    width: 40px !important;
    text-align: center !important;
}

.modern-paging .z-paging-text {
    color: #666 !important;
    font-size: 12px !important;
}

.modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: white;
    margin: 0 auto 12px auto;
}

.modal-icon span {
    color: white !important;
}

.modal-icon.success { background-color: #28a745; color: #fff; }
.modal-icon.error   { background-color: #dc3545; color: #fff; }
.modal-icon.warning { background-color: #ffc107; color: #fff; }
.modal-icon.info    { background-color: #17a2b8; color: #fff; }
.modal-icon.question { background-color: #6f42c1; color: #fff; }
.modal-icon.email { background-color: #004085; color: #fff; }

.modal-message {
    font-size: 16px;
    font-weight: 600;
    color: #555;
    text-align: center;
}

.modal-btn {
    min-width: 100px;
}

.modern-tabbox .nav-tabs {
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
}

.modern-tabbox .nav-link {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.875rem;
    margin-right: 0.2rem;
    font-weight: bold;
    background: none;
    border: 1px solid transparent;
    border-radius: 0.25rem 0.25rem 0 0;
    color: #495057;
    cursor: pointer;
}

.modern-tabbox .nav-link:hover {
    background-color: #f1f1f1;
    border-color: #ddd #ddd #f1f1f1;
}

.modern-tabbox .z-tab-selected.nav-link {
    background-color: #00215e !important;
    color: #ffffff !important;
    border-color: #00215e !important;
    font-weight: bold;
    display: inline-block; /* Corrige o estiramento */
    padding: 0.3rem 1rem;
    border-radius: 0.25rem 0.25rem 0 0;
}

.modern-tabbox .z-tab {
    width: auto !important;
    padding: 0 !important;
}

.modern-tabbox .z-tab-selected .z-tab-text {
    color: #ffffff !important;
    font-weight: bold;
}

.modern-tabbox .tab-content {
    border: none;
    padding: 0;
    background-color: transparent;
}

.modern-tabbox .z-tabpanel {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    padding: 0 !important;
}

.tab-content .z-tabpanel-selected {
    display: block;
}

.modern-listbox .z-listcell-content {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cell-center {
    text-align: center;
}

.cell-center .btn-icon {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.msg-validate {
    position: absolute;
}

.z-loading {
    background-color: rgba(0, 0, 0, 0.3) !important;
    z-index: 99999;
}

.z-loading-indicator {
    background-color: #ffffff;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: auto;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.z-loading-icon {
    background-image: none !important;
    width: 28px;
    height: 28px;
    border: 3px solid #e0e0e0;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.z-loading-text {
    font-weight: 500;
    color: #333;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.modern-datebox .z-datebox-input {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.modern-datebox .z-datebox-button {
    height: 100% !important;
    width: 32px !important;
    border-radius: 0 0.375rem 0.375rem 0 !important;
    border: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.modern-datebox .z-datebox-button > i {
    font-size: 20px !important;
}

.modern-datebox .z-datebox-button:hover {
    background-image: none !important;
    background-color: #F0F0F0 !important;
}