body {
    background-color: #f5f8fb;
}

.color-bright-green {
    color: #08F886;
}

.login-wrapper {
    margin-block-start: 0 !important;
}

.toast-body {
    font-size: var(--font-size-base) !important;
}

.btn {
    font-size: var(--font-size-base);
}

.main-header #header-logo img, .main-header #header-logo svg {
    max-inline-size: 85%;
}

#main-menu .menu .menu-item {
    padding-top: 6px;
    padding-bottom: 6px;
}

.content-header {
    background-color: #f5f8fb;
}

.ea-index .content-body {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 8px;
    padding: 20px
}

.datagrid th.searchable.header-for-field-textarea.text- a {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.datagrid td.searchable.text-.field-textarea {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 10px;
}

.datagrid td.actions a:not(.dropdown-item) {
    font-size: var(--font-size-base);
    font-weight: 400;
}

.ts-wrapper .ts-control, .form-widget .form-select, .form-widget input.form-control, .form-widget textarea.form-control {
    font-size: var(--font-size-base);
    block-size: 40px;
}

.form-widget-compound textarea.form-control {
    block-size: auto;
}

.field-collection-item .accordion-button {
    white-space: nowrap; /* Prevent text from wrapping */
    overflow: hidden; /* Hide overflowing content */
    text-overflow: ellipsis; /* Show "..." when text overflows */
    max-width: 100%; /* Adjust based on your layout */
    display: inline-block; /* Ensure proper behavior */
    flex-shrink: 1; /* Prevent the button from growing */
    top: -4px;
}

#dropArea {
    width: 100%;
    height: 180px;
    border: 2px dashed var(--link-color);
    border-radius: 10px;
    text-align: center;
    background: white;
    transition: background 0.3s;
}

#dropArea.hover {
    background: #e9ecef;
}

#fileInput {
    display: none;
}

#uploadMessage {
    display: none;
    margin-top: 10px;
    font-weight: bold;
}

#fileList .filename {
    width: 90%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 1px;
}

.form-column .form-fieldset {
    box-shadow: none;
    margin: 0 !important;
}

.form-column .form-fieldset-body.without-header {
    padding: 0;
}

.form-column .form-fieldset-header {
    padding: 0 0 20px 0;
}

.form-column .form-fieldset-body {
    padding: 0;
}

.form-widget-compound .form-control-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ea-index-Action .content-body {
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
}

.field-date input[type=date].form-control {
    width: 100%;
}

.bottom-10px {
    bottom: 10px;
}

.right-10px {
    right: 10px;
}

.actions-list {
    min-height: 200px;
}

.actions-list .card h5.card-title {
    font-size: 1.1em;
}

#taskList input#task_task {
    block-size: 34px;
}

.overflow-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
}

.table-layout-fixed {
    table-layout: fixed;
}

.actions-list .card .drag-handle {
    right: 15px;
    top: 10px;
}

.ea-fileupload .custom-file-label {
    block-size: 40px;
    line-height: 30px;
}

.ea-fileupload .input-group-text {
    block-size: 40px;
}

.ea-fileupload .input-group .btn, .ea-fileupload .input-group .btn:hover {
    font-size: 20px;
    line-height: 24px;
}

.feedback-button {
    top: 50%;
    right: -65px;
    rotate: 270deg;
    z-index: 999;
    padding-bottom: 50px !important;
    transition: right 0.3s ease;
}

.feedback-button:hover {
    right: -55px;
}

.responsive-logo img {
    max-width: 60%;
    margin-top: 0 !important;
}

.field-date input[type=date].form-control,
.field-datetime input[type=datetime-local].form-control,
.field-time input[type=time].form-control {
    width: 100%;
}

.col-form-label,
.form-control-label {
    white-space: nowrap;
    text-overflow: ellipsis;
    max-width: 100%;
    overflow: hidden;
}

.add-work-instruction, .add-action {
    position: absolute;
    right: 17px;
    top: 17px;
}

.form-column-content.ui-sortable {
    min-height: 100px;
}

.dropdown-menu .user-name {
    white-space: nowrap;
}

#ask-ai button {
    position: absolute;
    top: 8px;
    right: 8px;
    height: 32px;
    width: 32px;
    text-align: center;
    border-radius: 100%;
}

#dashboard .card:hover {
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, .15);
}

.datagrid td.actions {
    white-space: nowrap;
}

.modal-xxl {
    max-width: 90vw;
}

.ea-sidebar-width-compact #version {
    display: none;
}

.ea-sidebar-width-compact #main-menu .menu .menu-item.active {
    background: none;
}

body.ea-sidebar-width-compact #main-menu .menu .menu-item:hover i {
    color: var(--sidebar-bg) !important;
}

@media (max-width: 991.98px) {
    .modal-xxl {
        max-width: 100vw;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .content-header .page-actions {
        white-space: nowrap;
        overflow: auto;
        display: block;
        padding: 10px 1px;
        margin-bottom: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs-custom.form-tabs-tablist::-webkit-scrollbar,
    .content-header .page-actions::-webkit-scrollbar {
        display: none;
    }

    .content-header .datagrid-filters {
        float: left;
    }

    .nav-tabs-custom.form-tabs-tablist {
        white-space: nowrap;
        overflow: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-tabs-custom.form-tabs-tablist ul.nav {
        flex-wrap: nowrap;
    }

    .form-column {
        margin-bottom: 1em;
    }

    .form-column:last-child {
        margin-bottom: 0;
    }
}

@media (min-width: 1500px) {
    .datagrid td {
        padding: 14px 8px;
        white-space: nowrap;
    }
}
