.cursor-pointer {
    cursor: pointer !important;
}

.iwk-color {
    color: #20a54a !important;
}

.iwk-background {
    background-color: #20a54a !important;
}

.iwk-border-color {
    border-color: #20a54a !important;
}

.badge-bg-iwk {
    color: var(--bs-success-inverse);
    background-color: #20a54a;
}

.badge-bg-iwk.badge-outline {
    border: 1px solid var(--bs-success);
    background-color: transparent;
    color: #20a54a;
}

.btn-bg-iwk {
    background-color: #20a54a !important;
    border-color: #20a54a !important;
    color: #fff !important;
}

.btn-bg-iwk:hover {
    background-color: #1f8b41 !important;
    border-color: #1f8b41 !important;
    color: #fff !important;
}

.btn-bg-edf {
    background-color: #3287db !important;
    border-color: #3287db !important;
    color: #fff !important;
}

.btn-bg-edf:hover {
    background-color: #2868a9 !important;
    border-color: #2868a9 !important;
    color: #fff !important;
}

.btn-outline-bg-iwk {
    background-color: transparent !important;
    border-color: #20a54a !important;
    color: #20a54a !important;
}

.btn-outline-bg-iwk:hover {
    background-color: #20a54a !important;
    border-color: #20a54a !important;
    color: #fff !important;
}

.btn-outline-bg-edf {
    background-color: transparent !important;
    border-color: #3287db !important;
    color: #3287db !important;
}

.btn-outline-bg-edf:hover {
    background-color: #3287db !important;
    border-color: #3287db !important;
    color: #fff !important;
}

.btn-bg-iwk-2 {
    background-color: #0C0F38 !important;
    border-color: #0C0F38 !important;
    color: #fff !important;
}

.btn-bg-iwk-2:hover {
    background-color: #151a5e !important;
    border-color: #191f75 !important;
    color: #fff !important;
}

[data-bs-theme=dark] .btn-bg-iwk-2 {
    background-color: #151a5e !important;
    border-color: #151a5e !important;
    color: #fff !important;
}

[data-bs-theme=dark] .btn-bg-iwk-2:hover {
    background-color: #0C0F38 !important;
    border-color: #0C0F38 !important;
    color: #fff !important;
}

.btn-outline-bg-iwk-2 {
    background-color: transparent !important;
    border-color: #0C0F38 !important;
    color: #0C0F38 !important;
}

.btn-outline-bg-iwk-2:hover {
    background-color: #0C0F38 !important;
    border-color: #0C0F38 !important;
    color: #fff !important;
}

[data-bs-theme=dark] .btn-outline-bg-iwk-2 {
    background-color: transparent !important;
    border-color: #151a5e !important;
    color: #fff !important;
}

[data-bs-theme=dark] .btn-outline-bg-iwk-2:hover {
    background-color: #151a5e !important;
    border-color: #151a5e !important;
    color: #fff !important;
}

.iwk-color-hover:hover {
    color: #20a54a !important;
}

.iwk-background-hover:hover {
    background-color: #20a54a !important;
}

.iwk-border-color-hover:hover {
    border-color: #20a54a !important;
}

.iwk-color-2 {
    color: #0C0F38 !important;
}

.iwk-background-2 {
    background-color: #0C0F38 !important;
}

.iwk-border-color-2 {
    border-color: #0C0F38 !important;
}

[data-bs-theme=dark] .iwk-color-2 {
    color: #151a5e !important;
}

[data-bs-theme=dark] .iwk-background-2 {
    background-color: #151a5e !important;
}

[data-bs-theme=dark] .iwk-border-color-2 {
    border-color: #151a5e !important;
}

.iwk-color-2-hover:hover {
    color: #0C0F38 !important;
}

.iwk-background-2-hover:hover {
    background-color: #0C0F38 !important;
}

.iwk-border-color-2-hover:hover {
    border-color: #0C0F38 !important;
}

.rounded-20 {
    border-radius: 20px !important;
}

.width-135 {
    width: 135px !important;
}

.width-115 {
    width: 115px !important;
}

[data-kt-app-header-fixed=true][data-kt-app-toolbar-fixed=true] .app-wrapper {
    margin-top: 4rem !important;
}

.text-iwk {
    color: #20a54a !important;
}

.text-iwk:hover {
    color: #1f8b41 !important;
}

.text-edf {
    color: #3287db !important;
}

.text-edf:hover {
    color: #2868a9 !important;
}

.info-title {
    font-size: 32px !important;
    color: #071437;
    font-weight: 700 !important;
}

[data-bs-theme=dark] .info-title {
    color: #fff !important;
}

.info-desc {
    font-size: 18px !important;
    color: #4B5675 !important;
    font-weight: 400 !important;
}

[data-bs-theme=dark] .info-desc {
    color: #fff !important;
}

.info-desc-2 {
    font-size: 14px !important;
    color: #4B5675 !important;
    font-weight: 400 !important;
}

[data-bs-theme=dark] .info-desc-2 {
    color: #fff !important;
}

#viewer_pdf {
    margin-top: 30px;
    width: 100%;
    height: 550px;
}

/* 
#viewer_pdf {
    background-image: url('https://media.tenor.com/IfbOs_yh89AAAAAM/loading-buffering.gif');
} 
*/

.card-top-text {
    position: absolute;
    text-align: center;
    font-weight: bolder;
    font-size: 20px;
    top: 93px;
    width: 100%;
    border-radius: 20px;
    transform: rotate(-30deg);
    background: #fff;
    z-index: 1;
    padding: 10px;
}

.card-featured-text {
    position: absolute;
    text-align: center;
    font-weight: 500;
    font-size: 20px;
    top: 5px;
    right: 5px;
    width: 100px;
    border: red 2px solid;
    z-index: 1;
    color: red;
    background: #fff;
}

.card-filtered {
    filter: contrast(0.2);
    cursor: pointer;
}

#current_attachments {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-all;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

#current_attachments>* {
    max-width: 100%;
    min-width: 0;
}

.report-problem-btn {
    position: fixed;
    z-index: 105;
    bottom: 94px;
    right: 7px;
}

.masterpass-login-btn {
    position: fixed;
    z-index: 105;
    bottom: 192px;
    right: 7px;
}

.masterpass-feedback-btn {
    position: fixed;
    z-index: 105;
    bottom: 143px;
    right: 7px;
}

@media (max-width: 991.98px) {
    .report-problem-btn {
        bottom: 20px;
        right: 40px;
    }

    .masterpass-login-btn {
        bottom: 20px;
        left: 40px;
    }

    .masterpass-feedback-btn {
        bottom: 20px;
        left: 95px;
    }

    .dt-toolbar {
        margin-top: 20px !important;
    }
}

/* Mobile and tablets - drawer mode for sidebar */
@media (max-width: 1199.98px) {

    /* Override CSS variables for sidebar width when drawer is closed */
    :root,
    [data-kt-app-layout="light-sidebar"] {
        --bs-app-sidebar-width: 0px !important;
        --bs-app-sidebar-gap-start: 0px !important;
        --bs-app-sidebar-gap-end: 0px !important;
    }

    /* Ensure content takes full width when sidebar drawer is closed */
    .app-wrapper {
        padding-left: 0 !important;
        margin-left: 0 !important;
        left: 0 !important;
    }

    .app-main {
        margin-left: 0 !important;
        padding-left: 0 !important;
        left: 0 !important;
    }

    .app-header {
        left: 0 !important;
        margin-left: 0 !important;
    }

    .app-toolbar {
        left: 0 !important;
        margin-left: 0 !important;
    }

    .app-footer {
        left: 0 !important;
        margin-left: 0 !important;
    }
}

/* Desktop view - sidebar always visible */
@media (min-width: 1200px) {

    /* Restore CSS variables for sidebar width */
    :root,
    [data-kt-app-layout="light-sidebar"] {
        --bs-app-sidebar-width: 225px !important;
        --bs-app-sidebar-gap-start: 0px !important;
        --bs-app-sidebar-gap-end: 0px !important;
    }

    [data-kt-app-sidebar-enabled="true"] .app-sidebar {
        transform: translateX(0) !important;
        display: flex !important;
        width: 225px !important;
    }

    /* Restore sidebar width on desktop */
    .app-sidebar {
        width: 225px !important;
    }
}

.responsive-video, .responsive-video-ww {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
}

.responsive-video iframe, .responsive-video-ww iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

table.dataTable th.dt-empty,
table.dataTable td.dt-empty {
    text-align: center !important;
    vertical-align: middle !important
}

.notification-item:hover .notification-actions {
    display: block !important;
}

.note-image-wrapper {
    aspect-ratio: 1/1;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 1px 6px 0 rgba(32, 164, 73, 0.08);
    overflow: hidden;
    background: #f5f6fa;
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.note-image-wrapper img {
    border-radius: 10px;
    transition: transform 0.2s, filter 0.2s;
}

.note-image-wrapper .note-image-overlay {
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.note-image-wrapper:hover {
    box-shadow: 0 4px 16px 0 rgba(32, 164, 73, 0.18);
    transform: translateY(-2px) scale(1.03);
}

.note-image-wrapper:hover img {
    transform: scale(1.06);
    filter: brightness(0.96) saturate(1.1);
}

.note-image-wrapper:hover .note-image-overlay {
    opacity: 1;
}

[data-bs-theme=dark] .ck.ck-editor__main,
[data-bs-theme=dark] .ck.ck-editor__editable,
[data-bs-theme=dark] .ck.ck-content {
    background: #23272f !important;
    color: #e2e2e7 !important;
    border-color: #444 !important;
}

[data-bs-theme=dark] .ck.ck-toolbar {
    background: #23272f !important;
    border-color: #444 !important;
}

[data-bs-theme=dark] .ck.ck-toolbar .ck-button {
    color: #e2e2e7 !important;
}

[data-bs-theme=dark] .ck.ck-toolbar .ck-button.ck-on,
[data-bs-theme=dark] .ck.ck-toolbar .ck-button:hover {
    background: #303840 !important;
    color: #fff !important;
}

[data-bs-theme=dark] .ck.ck-dropdown__panel,
[data-bs-theme=dark] .ck.ck-list {
    background: #23272f !important;
    color: #e2e2e7 !important;
}

[data-bs-theme=dark] .ck.ck-list__item .ck-button {
    color: #e2e2e7 !important;
}

[data-bs-theme=dark] .ck.ck-list__item .ck-button.ck-on,
[data-bs-theme=dark] .ck.ck-list__item .ck-button:hover {
    background: #303840 !important;
    color: #fff !important;
}

[data-bs-theme=dark] .ck .ck-sticky-panel__content {
    border: unset !important;
}

.d-mobile-hide {
    display: table-cell !important;
}

@media (max-width: 767.98px) {
    .d-mobile-hide {
        display: none !important;
    }
}

.comment-text {
    word-wrap: break-word;
    word-break: break-all;
}




/* Search input styling */
#sidebar_search {
    border-radius: 8px;
    padding-right: 35px;
    transition: all 0.3s ease;
}

#sidebar_search:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    border-color: #80bdff;
}

/* Clear button positioning */
#clear_search {
    background: transparent;
    border: none;
    color: #6c757d;
    padding: 2px;
    width: 24px;
    height: 24px;
}

#clear_search:hover {
    color: #495057;
    background-color: #f8f9fa;
    border-radius: 50%;
}

/* Search results highlighting */
.menu-title mark {
    padding: 0.1em 0.2em;
    border-radius: 3px;
    font-weight: 600;
}

/* Search info styling */
#search_info {
    font-size: 0.75rem;
    margin-top: 0.25rem;
    padding-left: 0.5rem;
}

/* No results styling */
#no_results {
    opacity: 0.7;
}

/* Animation for search results */
.menu-item {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-item[style*="display: none"] {
    opacity: 0;
    transform: translateY(-5px);
}

/* Dark mode support */
[data-bs-theme="dark"] #sidebar_search {
    background-color: #2b2b40;
    border-color: #444564;
    color: #fff;
}

[data-bs-theme="dark"] #sidebar_search:focus {
    border-color: #009ef7;
    box-shadow: 0 0 0 0.2rem rgba(0, 158, 247, 0.15);
}

[data-bs-theme="dark"] #clear_search {
    color: #a1a5b7;
}

[data-bs-theme="dark"] #clear_search:hover {
    color: #fff;
    background-color: #383854;
}

[data-bs-theme="dark"] .menu-title mark {
    background-color: #ffc700;
    color: #1b1b29;
}

.message-content {
    word-break: break-word;
}

/* Filters Modal Styles */
#filters_modal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#active_filters_container .badge {
    margin: 2px;
    font-size: 0.8rem;
}

#active_filters_container .badge button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin-left: 6px !important;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#active_filters_container .badge button:hover {
    opacity: 1;
}

/* Filters button with badge */
.btn[data-bs-target="#filters_modal"] {
    position: relative;
}

#active_filters_count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    line-height: 16px;
}

/* Enhanced Select2 styling in modal */
#filters_modal .select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #e4e6ea;
    border-radius: 0.475rem;
}

#filters_modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    padding-left: 12px;
    color: #5e6278;
}

#filters_modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 12px;
}

/* Responsive design for filters modal */
@media (max-width: 768px) {
    #filters_modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    #filters_modal .row .col-md-6 {
        margin-bottom: 1rem;
    }
}

.displayParent {
    cursor: pointer !important;
}

.watermark-overlay {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.watermark-overlay-2 {
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    z-index: 1 !important;
    pointer-events: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.5) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    transform: rotate(-5deg) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.watermark-overlay-3 {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1 !important;
    pointer-events: none !important;
    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 0.3) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    opacity: 0.6 !important;
    display: block !important;
    visibility: visible !important;
}

.form-check-custom {
    display: flex;
    align-items: center;
}

.form-check-custom .form-check-input {
    margin-top: 0;
    flex-shrink: 0;
}

.form-check-custom .form-check-label {
    margin-left: 0.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}