@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 100;
    src: local(''),
    url('../fonts/Manrope-ExtraLight.ttf')
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: local(''),
    url('../fonts/Manrope-Light.ttf')
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local(''),
    url('../fonts/Manrope-Regular.ttf')
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 500;
    src: local(''),
    url('../fonts/Manrope-Medium.ttf')
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 600;
    src: local(''),
    url('../fonts/Manrope-SemiBold.ttf')
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local(''),
    url('../fonts/Manrope-Bold.ttf')
}

:root, :host {
    --font-family-sans-serif: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    --body-bg: #F6F6F6;

    --sidebar-bg: #1D2739;
    --sidebar-menu-color: #fff;
    --sidebar-menu-submenu-color: #fff;
    --sidebar-menu-icon-color: #858C98;
    --sidebar-menu-header-color: #c0c0c0;
    --sidebar-menu-header-icon-color: #c0c0c0;
    --sidebar-menu-active-item-bg: #404d64;
    --sidebar-menu-active-item-color: #fff;
    --table-hover-cell-bg: #ebebeb;

    --text-muted: #B5B5B5;
    --dropdown-color: #262626;
    --button-hover-shadow: none;
    --button-shadow: none;
    --button-hover-color: #243B59;
    --button-primary-bg: #04326B;
    --button-secondary-bg: #F6F6F6;
    --pagination-active-bg: #04326B;
    --form-switch-checked-bg: #04326B;
    --form-type-check-input-checked-bg: #04326B;
    --badge-boolean-true-bg: #04326B;
    --user-name-color: #04326B;
    --dropdown-settings-icon-color: #04326B;

    --dropdown-settings-active-item-color: #858C98;

    --table-cell-color: #262626;
    --form-switch-bg: #E1DFDF;
    --body-max-width: unset;
}

.ea-dark-scheme {
    --table-hover-cell-bg: #212121;
    --button-primary-bg: #04326B;
    --form-switch-checked-bg: #04326B;
    --form-type-check-input-checked-bg: #04326B;
    --badge-boolean-true-bg: #04326B;
}

.btn-primary {
    --bs-btn-disabled-bg: #04326B;
    --bs-btn-disabled-border-color: #04326B;
}

.ea-light-scheme .table thead tr th {
    background-color: #E4E7EC;
}

.ea-dark-scheme .table thead tr th {
    background-color: #343434;
}

.ea-light-scheme .table tbody tr:not(:hover) td {
    background-color: #FFF;
}

.ea-dark-scheme .table tbody tr:nth-child(odd):not(:hover) td {
    background-color: #171717;
}

.list-group {
    --bs-list-group-active-bg: #04326B;
    --bs-list-group-active-border-color: #04326B;
}

.content-panel-body {
    background: unset;
}

@media (min-width: 768px) {
    .ea-index .list-pagination {
        justify-content: normal;
        gap: 200px;
        margin-top: 20px;
    }

    .content-header {
        justify-content: normal;
    }

    .content-header-title {
        flex: initial;
    }
}

/*LOGIN PAGE*/
#header-logo {
    width: 102px;
    margin-bottom: 60px;
}

.main-header #header-logo a {
    padding: 16px 0;
}

@media (min-width: 992px) {
    .sidebar {
        padding: 32px 24px;
    }
}

#main-menu .menu .menu-item {
    margin-bottom: 48px;
}

#main-menu .menu .menu-item-contents.submenu-toggle {
    text-transform: uppercase;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 500;
}

#main-menu .menu .submenu-toggle-icon {
    margin: 0;
}

#main-menu .menu .menu-item .submenu-toggle .submenu-toggle-icon {
    transform: rotate(90deg);
}

#main-menu .menu .menu-item.has-submenu.expanded .submenu-toggle-icon {
    transform: rotate(-90deg);
}

#main-menu .menu .submenu a {
    padding: 3px 7px 8px;
}

#main-menu .menu .submenu .menu-item {
    margin: 14px 0;
    padding-left: 0;
}

#main-menu .menu .submenu .menu-icon {
    font-size: 22px;
    margin-inline-end: 16px
}

#main-menu .menu .submenu a span {
    word-break: break-word;
}

#main-menu .menu .submenu a span:last-child {
    margin-top: 5px;
}

#main-menu .menu .submenu .menu-item {
    border-radius: 8px;

    transition: background-color 0.10s ease;
}

#main-menu .menu .submenu .menu-item:hover {
    background-color: #404d64;
}

#main-menu .menu .submenu .menu-item.active {
    padding-inline-start: 0;
    border: 1px solid #657692;
}

.content-top {
    box-shadow: none;
}

@media (min-width: 992px) {
    .content-top {
        block-size: 56px;
        display: flex;
        justify-content: space-between;
        padding-top: 56px;
        position: relative;
    }
}

.content-top .title {
    font-size: 32px;
}

.dropdown-toggle {
    border: 1px solid #E1DFDF;
    border-radius: 60px;
}

.dropdown-toggle.user-details {
    padding: 15px 20px;
}

.dropdown-toggle.dropdown-settings-button {
    padding: 14px 20px 20px;
}

.dropdown-toggle .icon {
    font-size: 20px;
}

.content-top .navbar-custom-menu {
    margin-right: 24px;
}

.form-action-search .form-widget {
    width: 420px;
    position: relative;
}
.form-action-search .form-widget .content-search-icon {
    position: absolute;
    left: 18px;
    top: 12px;
    pointer-events: none;
}
.form-action-search .form-widget .content-search-label input {
    width: 420px;
    height: 60px;
    border: 1px solid #E1DFDF;
    border-radius: 60px;
    padding: 18px 20px 18px 54px;
}

.form-action-search .form-widget .content-search-label input {
    transition: background-color 0.10s ease;
}

.form-action-search .form-widget:hover .content-search-label input,
.form-action-search .form-widget .content-search-label input:active,
.form-action-search .form-widget .content-search-label input:focus {
    background-color: #fff;
}

.content-search-icon {
    font-size: 20px;
    color: #04326B;
}

.form-action-search .form-widget .form-control {
    background: transparent;
    border: none;
}

.form-action-search .form-widget .content-search-label {
    width: 85%;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

/* Prevent page-wide horizontal scrollbar - make tables scrollable within their container */
/* Only apply to index pages to avoid clipping dropdowns on edit pages */
body, .wrapper, .main-content {
    overflow-x: hidden;
    max-width: 100%;
}

/* Only apply overflow-x hidden to content-wrapper on index pages */
.ea-index .content-wrapper {
    overflow-x: hidden;
    max-width: 100%;
}

/* Only apply overflow-x hidden to content on index pages */
.ea-index .content {
    overflow-x: hidden;
    max-width: 100%;
}

/* Prevent content-body from scrolling on index pages - we'll make only the table scrollable */
.ea-index .content-body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Allow dropdown menus to overflow their containers (important for select inputs) */
.dropdown-menu,
.select2-dropdown,
.select2-container--open .select2-dropdown {
    overflow: visible !important;
    z-index: 1050;
}

/* Ensure form containers allow dropdowns to overflow on edit/new/detail pages */
.ea-edit .content-wrapper,
.ea-new .content-wrapper,
.ea-detail .content-wrapper {
    overflow: visible;
}

.ea-edit .content,
.ea-new .content,
.ea-detail .content {
    overflow: visible;
}

.ea-edit .content-body,
.ea-new .content-body,
.ea-detail .content-body {
    overflow: visible;
}

/* Ensure form fields and their containers allow dropdowns */
.ea-edit .form-group,
.ea-new .form-group,
.ea-detail .form-group,
.ea-edit .field-form_group,
.ea-new .field-form_group,
.ea-detail .field-form_group {
    overflow: visible;
}

/* Make the datagrid table wrapper scrollable - scrollbar appears right below the table */
.ea-index .content-body .datagrid-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    width: 100%;
    margin-bottom: 0;
}

/* Ensure the table can expand beyond container width when needed */
.ea-index .content-body .datagrid-table-wrapper table.datagrid {
    width: 100%;
    min-width: max-content;
    margin-bottom: 0;
}

/* Keep pagination outside the scrollable area - it will appear below the scrollbar */
.ea-index .content-body > .content-panel-footer {
    margin-top: 0;
}

/* If EasyAdmin wraps the table in other containers, ensure they're also scrollable */
.ea-index .content-body .table-responsive,
.ea-index .content-body .datagrid-wrapper {
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
}

.global-actions .btn, .action-filters .btn {
    border: 1px solid #04326B;
    /*background: transparent;*/
    border-radius: 31px;
    font-weight: 600;
    font-size: 16px;
    padding: 16px 32px;
}

/*.global-actions .btn, .action-filters .btn.action-new {*/
/*    background: #04326B;*/
/*}*/

/*.global-actions .btn, .action-filters .btn.action-new:hover {*/
/*    background: #04326B;*/
/*}*/

.action-filters .btn.action-filters-button i {
    margin-right: 5px;
}

.global-actions .btn:hover, .action-filters .btn:hover {
    box-shadow: none;
}

.btn:not(:disabled):not(.disabled):not(.btn-link):not(.btn-danger):hover {
    border: 1px solid #243B59;
}

.btn-primary:not(:disabled):not(.disabled):not(.btn-link):not(.btn-danger):hover {
    background-color: #243B59;
}

.btn {
    transition: background-color 0.10s ease;
}

.dropdown-menu {
    padding: 14px;
    border-radius: 8px;
    width: 200px;
}

.dropdown-item {
    font-weight: 600;
}

.dropdown-item.user-action {
    margin-top: 20px;
    padding: 0;
}

.dropdown-item.user-action .icon {
    transform: rotate(180deg);
}

.dropdown-item .icon {
    font-size: 20px;
}

.dropdown-settings .dropdown-item {
    height: 40px;
}

.dropdown-settings .dropdown-item.active {
    background-color: #F6F6F6;
    border: 1px solid rgba(154, 174, 211, 0.28);
    box-shadow: none;
    color: var(--dropdown-link-color);
}

.dropdown-settings .dropdown-item {
    --dropdown-icon-color: #858C98;
}

.dropdown-toggle.dropdown-toggle-hidden-marker:hover {
    background-color: #FFFFFF;
}

.dropdown-toggle {
    transition: background-color 0.10s ease;
}

.dropdown-toggle.show {
    background-color: #FFFFFF;
}

.btn:not(:disabled):not(.disabled):not(.btn-link):active,
.btn:not(:disabled):not(.disabled):not(.btn-link):active:focus,
.btn:not(:disabled):not(.disabled):not(.btn-link):focus {
    box-shadow: none;
    border: 1px solid #04326B;
}

.datagrid thead a,
.datagrid thead span:not(.icon) {
    font-weight: 400;
    padding: 20px 16px;

    position: relative;
}

.datagrid thead th:first-child span {
    padding: 20px 8px;
}

.datagrid thead a:before {
    content: '';
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 0;
    right: 0;
    border-left: 1px solid #d7d9de;
    pointer-events: none;
}

.form-check:not(.form-switch) .form-check-input:not(:checked) {
    background-color: #fff;
    border-radius: 2px;
}

.table tbody td {
    /*font-size: 12px;*/
    padding: 16px 12px;
}

.table tbody td:first-child {
    padding: 17px 8px;
}

.form-switch .form-check-input {
    border: none;
    inline-size: 44px;
    block-size: 22px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%23FFF'/%3E%3C/svg%3E");
}

.form-check .form-check-input.form-batch-checkbox,
.form-check .form-check-input.form-batch-checkbox-all {
    block-size: 16px;
    border-color: var(--form-type-check-input-border-color);
    inline-size: 16px;
}

body .bg-warning {
    background-color: #FEF6E7 !important;
    color: #FFA724 !important;
    padding: 2px 8px;
}

body .bg-danger {
    background-color: #FFDFDD !important;
    color: #F01818 !important;
    padding: 2px 8px;
}

.fa-exclamation-circle {
    color: #F01818;
    margin-left: 16px;
}
