@media (min-width: 992px) {
    :root {
        --bs-app-sidebar-width: 340px;
        --bs-app-sidebar-width-actual: 340px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --bs-app-sidebar-width: 340px;
        --bs-app-sidebar-width-actual: 340px;
    }
}

.app-sidebar-menu-primary.menu > .menu-item > .menu-link .menu-title {
    white-space: nowrap;
}

.app-header-title {
    min-width: 0;
    padding-left: 1.15rem;
    border-left: 4px solid var(--bs-success);
}

.app-header-title-label {
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-header-title h1 {
    line-height: 1.25;
}

.app-sidebar-menu-primary.menu > .menu-item > .menu-link.active,
.app-sidebar-menu-primary.menu > .menu-item .menu-item .menu-link.active {
    background-color: var(--bs-success);
}

#kt_table_users_wrapper .dataTables_filter,
#kt_table_modules_wrapper .dataTables_filter,
#kt_table_documents_wrapper .dataTables_filter,
#kt_table_module_documents_wrapper .dataTables_filter {
    display: none;
}

.module-doc-count {
    color: var(--bs-gray-600) !important;
}

#kt_table_modules_wrapper .dataTables_paginate {
    margin-top: 1rem;
}

#kt_table_documents td.js-doc-handle {
    cursor: grab;
    width: 1.75rem;
    vertical-align: middle;
}

#kt_table_documents th:last-child,
#kt_table_documents td:last-child,
#kt_table_module_documents th:last-child,
#kt_table_module_documents td:last-child {
    width: 1%;
    white-space: nowrap;
    padding-right: 0.75rem;
}

#kt_document_dropzone {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    padding: 1.25rem 1.5rem;
}

#kt_document_dropzone .dz-message,
#kt_document_dropzone.dz-started .dz-message,
#kt_document_dropzone.is-filled .dz-message {
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0;
}

#kt_document_dropzone_preview {
    display: none;
    width: 100%;
}

#kt_document_dropzone.is-filled #kt_document_dropzone_preview {
    display: block;
    margin-top: 1.15rem;
    padding-top: 1.15rem;
    border-top: 1px dashed var(--bs-success);
}

#kt_document_dropzone .dz-preview {
    position: static !important;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0.85rem 1rem;
    text-align: left;
    background-color: #fff !important;
    border: 1px solid var(--bs-gray-300) !important;
    border-radius: 0.475rem;
    box-shadow: 0 0.25rem 0.75rem rgba(15, 34, 58, 0.08);
}

#kt_document_dropzone .dz-preview .dz-image,
#kt_document_dropzone .dz-preview .dz-success-mark,
#kt_document_dropzone .dz-preview .dz-error-mark,
#kt_document_dropzone .dz-preview .dz-progress,
#kt_document_dropzone .dz-preview .dz-details {
    display: none !important;
}

#kt_document_dropzone .dz-preview [data-dz-size] strong {
    font-weight: 500;
}

.current-file-card {
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.current-file-card:hover {
    background-color: var(--bs-light-success);
    border-color: var(--bs-success) !important;
}

.home-hero {
    background:
        linear-gradient(135deg, rgba(27, 132, 255, 0.08) 0%, rgba(27, 132, 255, 0.02) 48%, var(--bs-body-bg) 100%);
    border: 0;
}

.home-hero-title {
    color: #396BA5 !important;
}

.home-hero-separator {
    border-bottom: 1px solid rgba(27, 132, 255, 0.45) !important;
}

.home-hero-mark {
    width: 96px;
    height: 96px;
    border-radius: 1.25rem;
    align-items: center;
    justify-content: center;
    background-color: var(--bs-light-success);
}

.home-search-frame {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--bs-gray-300);
    border-radius: 0.75rem;
    min-height: 60px;
    box-shadow: 0 0.35rem 1rem rgba(15, 34, 58, 0.06);
}

.home-search-frame:focus-within {
    border-color: var(--bs-success);
    box-shadow: 0 0 0 4px rgba(27, 132, 255, 0.15);
}

.home-search-frame .form-control {
    box-shadow: none;
}

.home-doc-row + .home-doc-row {
    border-top: 1px dashed var(--bs-gray-300);
}

.otp-boxes {
    gap: 0.5rem;
    width: 100%;
    justify-content: space-between;
}

.otp-boxes .otp-input {
    flex: 0 0 60px;
    margin: 0;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
}

@media (max-width: 991.98px) {
    .app-header-title .symbol {
        display: none !important;
    }

    .app-header-title {
        padding-left: 0.75rem;
        max-width: 100%;
        overflow: hidden;
    }

    .app-header-title-label {
        display: none !important;
    }

    .app-header-title h1 {
        font-size: 1.05rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #kt_app_header_container {
        min-width: 0;
    }

    #kt_app_header_navbar {
        min-width: 0;
        flex: 1 1 0%;
        overflow: visible;
    }

    #kt_app_header_navbar .app-navbar-item.flex-grow-1 {
        min-width: 0;
        flex: 1 1 0%;
        overflow: hidden;
    }

    #kt_header_user_menu_toggle {
        flex: 0 0 auto;
    }

    .app-toolbar {
        padding-top: 1rem !important;
    }

    .otp-boxes {
        gap: 0.3rem;
    }

    .otp-boxes .otp-input {
        flex: 1 1 0;
        width: auto !important;
        min-width: 0;
        height: 48px !important;
        font-size: 1.35rem !important;
    }

    .auth-channel-cards > label {
        padding: 0.7rem 0.7rem !important;
    }

    #kt_sign_in_form .mb-11,
    #kt_sign_in_form .mb-8,
    #kt_sing_in_two_factor_form .mb-10 {
        margin-bottom: 1.25rem !important;
    }

    .card .card-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .card .card-header .card-title,
    .card .card-header .card-toolbar {
        width: 100%;
        margin-inline: 0 !important;
    }

    .card .card-header .card-title > .d-flex {
        width: 100%;
    }

    .card .card-header .form-control.w-250px {
        width: 100% !important;
    }

    .menu-sub-dropdown.w-300px {
        width: min(300px, calc(100vw - 1.5rem)) !important;
    }

    #kt_table_users_wrapper .user-table-footer {
        flex-direction: column;
        align-items: stretch !important;
    }

    #kt_table_users_wrapper .user-table-footer .dt-length,
    #kt_table_users_wrapper .user-table-footer .dt-info,
    #kt_table_users_wrapper .user-table-footer .dt-paging {
        width: 100%;
        justify-content: center;
    }

    .modal-dialog.mw-650px {
        margin-left: 0.75rem;
        margin-right: 0.75rem;
        width: auto;
        max-width: calc(100% - 1.5rem);
    }
}

@media (max-width: 575.98px) {
    .home-hero .card-body {
        padding: 1.25rem !important;
    }

    .home-search-frame {
        min-height: 52px;
    }

    .auth-channel-cards .symbol {
        display: none;
    }

    #kt_sing_in_two_factor_form {
        margin-bottom: 1.5rem !important;
    }
}

