body,
.content-wrapper,
#main,
.content {
    background: linear-gradient(120deg, #f4f6fa 0%, #e5e9f2 100%) !important;
}

.content-header {
    background: linear-gradient(120deg, #f4f6fa 0%, #e5e9f2 100%) !important;
}

.content-header h1 {
    color: #1e293b;
    font-weight: 700;
}

.main-sidebar {
    background: #1e293b !important;
}

.table,
.table-striped,
.table-hover,
.table-carree {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.06);
}

.table th {
    background: #1e293b;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    border: none;
    text-align: left;
    text-transform: uppercase;
}

.table th a {
    color: #fff !important;
}

.table th, .table td {
    white-space: nowrap;
    overflow: hidden;
}

.table tbody tr:hover {
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.08);
}

.table .fw-bold {
    background: #38bdf8;
    color: #1e293b;
    font-size: 1.08rem;
    border-top: 2px solid #1e293b;
    box-shadow: none;
}

.btn,
.action-new,
.action-edit,
.action-delete {
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-primary {
    background: #38bdf8 !important;
    border-color: #38bdf8 !important;
    color: #1e293b !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #1e293b !important;
    color: #fff !important;
}

.btn-secondary {
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
    color: #1e293b !important;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: #1e293b !important;
    color: #fff !important;
}

.form-control,
select,
input,
textarea {
    border-radius: 0;
    border: 1.5px solid #38bdf8;
    box-shadow: none;
}

.form-control:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: #1e293b;
    box-shadow: 0 0 0 2px #38bdf833;
}

.form-group label,
label {
    color: #1e293b;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pagination .page-item .page-link {
    color: #1e293b;
    border-radius: 0;
    border: 1px solid #cbd5e1;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background: #38bdf8;
    color: #fff;
    border: 1px solid #38bdf8;
}

.datagrid thead a {
    color: #fff !important;
}

.sidebar {
    background: #1e293b;
}

.menu-item-label {
    color: #fff;
}

#main-menu .menu .menu-item:hover {
    background-color: #38bdf8 !important;
}

.datagrid thead span {
    color: #fff;
}

#main-menu .menu .menu-item.active {
    background: #38bdf8;
}

#main-menu .menu .menu-icon {
    color: #fff;
}

#main-menu .menu .menu-item.active .menu-item-contents .menu-icon {
    color: #fff;
}

.table tbody tr:hover {
    background: #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.08);
}

.datagrid tbody tr:hover {
    background: #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.08);
}

.datagrid tr.fw-bold,
.table .fw-bold,
.table-carree .fw-bold {
    border-left: 4px solid #38bdf8;
}

.table .fw-bold .icon-anim,
.table-carree .fw-bold .icon-anim,
.datagrid .fw-bold .icon-anim {
    color: #38bdf8;
    margin-right: 6px;
    font-size: 1.1em;
    vertical-align: -2px;
}

icon-anim {
    color: #38bdf8;
}

.nav-tabs {
    border-bottom: 2px solid #1e293b;
    background: #fff;
}

.nav-tabs .nav-link {
    font-weight: 600;
    color: #1e293b;
    border: 1px solid transparent;
    border-radius: 0;
    margin-right: 2px;
    padding: 0.75rem 1.5rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
    background: #fff;
}

.nav-tabs .nav-link.active {
    background: #1e293b;
    color: #fff !important;
    border: 1px solid #1e293b;
    border-bottom: 2px solid #38bdf8;
}

.nav-tabs .nav-link:hover {
    background: #38bdf8;
    color: #fff;
}

.tab-pane {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

#header-logo {
    cursor: pointer;
}

#custom-sidebar-arrow {
    display: inline-block;
    vertical-align: middle;
    width: 20px;
    height: 20px;
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='19' y1='12' x2='5' y2='12'/%3E%3Cpolyline points='12 19 5 12 12 5'/%3E%3C/svg%3E");
    transition: all 0.2s;
}

#header-logo:hover #custom-sidebar-arrow {
    background-color: #38bdf8;
}

.sidebar-collapsed #custom-sidebar-arrow {
    transform: rotate(180deg);
}

#sidebar-resizer-handler {
    opacity: 0;
}

.content-top {
    background-color: #1e293b;
}

label.content-search-label {
    border-radius: 1rem !important;
}

.user-menu-wrapper span.user-avatar .user-avatar-icon-background {
    color: #fff;
}

.user-menu-wrapper .user-details .user-name {
    color: #fff;
}

.dropdown-settings .dropdown-settings-button {
    color: #fff;
}

.content-top .content-search .content-search-icon {
    color: #fff;
}

.content-top .content-search .content-search-label input.is-blank {
    border-radius: 2rem;
    background: linear-gradient(120deg, #f4f6fa 0%, #e5e9f2 100%) !important;
}

.table.datagrid.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f6f8fa !important;
}

.table.datagrid.table-striped tbody tr:hover {
    background: #f1f5f9 !important;
}

 /* select, association */
 .field-association label, .field-association legend,.field-select label{
    color: #525b75 !important;
    font-size: 0.8rem;
    position: relative;
    transform: translateY(2rem) translateX(0.5rem);
    z-index: 1;
}

.field-association legend{
    display: inline-block;
    float: unset !important;
    width: unset !important;
}

.field-association .form-widget .ts-wrapper,
.field-select .form-widget .ts-wrapper{
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.form-group{
    padding: 5px !important;
}

/* text, textarea field-number*/

.field-text label, .field-textarea label, .field-number label{
    color: #525b75 !important;
}

.field-text label.float, .field-textarea label.float{
    transform: translateY(1.8rem) translateX(0.5rem);
    font-size: 0.8rem;
}

.field-text:has(label.float) input{ 
    padding-top: 2rem !important;
}

.field-textarea:has(label.float) textarea{
    padding-top: 1rem !important;
}

.field-text label:not(.float), .field-textarea label:not(.float){
    transform: translateY(2rem) translateX(0.5rem);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
}

.field-text input, .field-textarea input{
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* image field */
.field-image legend {
    color: #525b75 !important;
    transform: translateY(2rem) translateX(0.5rem);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    float: unset !important;
    width: unset !important;
}

.field-image .form-widget .custom-file label{
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.ea-fileupload .input-group-text{
    height: 50px !important;
}

/* DATE PICKER */
.field-datetime label {
    color: #525b75 !important;
    transform: translateY(0.5rem);
    font-size: 0.8rem;
    position: relative;
}

.action-new i, .action-edit i, .action-delete i, .action-detail i{
    margin: 0 0.25rem !important;
}

.menu-header {
    background-color: #7fafc4 !important;
    font-weight: bold !important;
    border-radius: 3px !important;
}

.title {
    display: block !important;
    visibility: visible !important;
}

.table td.actions {
    overflow: visible;
}

.dropdown-actions .dropdown-menu {
    z-index: 2000;
}

body.ea-sidebar-width-compact #main-menu .menu .menu-item .menu-item-label {
    color: #1e293b !important;
}

body.ea-sidebar-width-compact #main-menu .menu .menu-item .menu-icon {
    color: #38bdf8 !important;
}