﻿
.main-sidebar .brand-link span{
    display:none;
}

.form-check-input.custom-checkbox-toggle:checked {
    background-color: #ff9000;
    border-color: #ff9000;
}

.js-CardCatalog .card-body {
    cursor: pointer;
}

.alert-background small {
    display: flex;
    align-items: center;
    gap: 10px;
}

#alertSpan p {
    display: inline;
    margin: 0;
    padding: 0;
}

.card-footer > .card-tools {
    float: right;
    margin-right: -.625rem;
}

.Reset-Password-zIndex {
    z-index: 1400 !important;
}

.Secret-Question-zIndex {
    z-index: 1500 !important;
}

.Reset-Password-zIndex ~ .modal-backdrop {
    z-index: 1400 !important;
}

.Secret-Question-zIndex ~ .modal-backdrop {
    z-index: 1500 !important;
}

.DivListContainer {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.list-container {
    width: 16%;
    border: 2px solid #f4f4f4;
    border-radius: 5px;
    padding: 10px 10px 10px 10px;
}

.btn-orange {
    color: #fff;
    background-color: #ff6e07;
    border-color: #ff6e07;
    box-shadow: none;
    --bs-btn-color: #fff;
    --bs-btn-bg: #ff6e07;
    --bs-btn-border-color: #ff6e07;
}

    .btn-orange:hover {
        color: #fff;
        background-color: #e55e06;
        border-color: #e55e06;
    }

    .btn-orange:focus {
        color: #fff;
        background-color: #e55e06;
        border-color: #e55e06;
        box-shadow: 0 0 0 0.2rem rgba(255, 110, 7, 0.5);
    }

    .btn-orange:active {
        color: #fff;
        background-color: #d85a05;
        border-color: #d85a05;
    }

    .btn-orange:disabled {
        color: #fff;
        background-color: #ff6e07;
        border-color: #ff6e07;
        opacity: 0.65;
    }

.btn-outline-orange {
    color: #ff6e07;
    background-color: transparent;
    border: 1px solid #ff6e07;
    box-shadow: none;
    --bs-btn-color: #ff6e07;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: #ff6e07;
}

    .btn-outline-orange:hover {
        color: #fff;
        background-color: #e55e06;
        border-color: #e55e06;
    }

    .btn-outline-orange:focus {
        color: #fff;
        background-color: #e55e06;
        border-color: #e55e06;
        box-shadow: 0 0 0 0.2rem rgba(255, 110, 7, 0.5);
    }

    .btn-outline-orange:active {
        color: #fff;
        background-color: #d85a05;
        border-color: #d85a05;
    }

    .btn-outline-orange:disabled {
        color: #ff6e07;
        background-color: transparent;
        border-color: #ff6e07;
        opacity: 0.65;
    }

.dropdown-item.form-check {
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

    .dropdown-item.form-check .form-check-input {
        margin-left: auto;
    }

.slider {
    display: flex;
    align-items: stretch;
    width: auto;
}

.text-slide {
    flex: 1;
    text-align: center;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #6c757d;
    background-color: transparent;
    color: #343a40;
    padding: 0;
    height: 38px;
    line-height: 38px;
    min-width: 10em;
}

.slider button {
    margin: 0;
    height: 38px;
    width: 38px;
}

.slider .left-button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.slider .right-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.slider .text-slide {
    margin: 0;
    border-radius: 0;
}

    .slider .text-slide h6 {
        font-weight: bold;
    }

.modal-body img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    width: auto;
    height: auto;
    margin: auto;
}

#uplAttachment .dx-fileuploader-button-container .dx-fileuploader-upload-button {
    display: none;
}

.nav-link.dropdown-toggle::after {
    display: none;
}

.card .toggle-header {
    cursor: pointer;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#main-navHeader {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu {
    transition: background-color 0.3s ease, color 0.3s ease;
}

#dropzone-external {
    width: auto;
    height: 100px;
    background-color: rgb(183 183 183 / 10%);
    border-width: 2px;
    border-style: dashed;
    padding: 10px;
    border-color: var(--dx-color-border);
    position: relative;
}

    #dropzone-external > * {
        pointer-events: none;
    }

    #dropzone-external.dropzone-active {
        border-style: solid;
        border-color: var(--dx-color-primary);
    }

.widget-container > span {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
}

#dropzone-image {
    max-width: 100%;
    max-height: 100%;
}

#dropzone-text > span {
    font-weight: 100;
    opacity: 0.5;
}

#upload-progress {
    display: flex;
    margin-top: 10px;
}

.flex-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.badge-button-action {
    border-radius: 0.25rem;
    padding: 0.4em 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 500;
    cursor: pointer;
}

    .badge-button-action:hover {
        opacity: 0.9;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }

.badge-light {
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.badge-custom-text-dark {
    color: #212529 !important;
}

.badge-custom-document {
    background-color: #0078D4;
    color: #ffffff !important;
}

.badge-custom-spreadsheet {
    background-color: #107C41;
    color: #ffffff !important;
}

.badge-custom-pdf {
    background-color: #E3292C;
    color: #ffffff !important;
}

.badge-custom-image {
    background-color: #13b0ff;
    color: #ffffff !important;
}

.badge-custom-video {
    background-color: #FF7F50;
    color: #ffffff !important;
}

.badge-custom-default {
    background-color: #E9ECEF;
    color: #212529 !important;
    border: 1px solid #dee2e6;
}

.js-badgeDownload span.badge:hover {
    filter: brightness(90%);
    transition: filter 0.2s ease-in-out;
    cursor: pointer;
}

.js-badgeDownload span.badge {
    transition: filter 0.2s ease-in-out;
}

.dx-datagrid .dx-link.dx-Custom-Delete {
    color: #dc3545 !important;
}

.dx-datagrid .dx-link.dx-Custom-See {
    color: #6c757d !important;
}

.dx-datagrid .dx-link.dx-Custom-Download {
    color: #13b0ff !important;
}

.dx-datagrid .dx-link.dx-Custom-Delete:hover {
    color: #dc3545 !important;
}

.dx-datagrid .dx-link.dx-Custom-See:hover {
    color: #6c757d !important;
}

.dx-datagrid .dx-link.dx-Custom-Download:hover {
    color: #13b0ff !important;
}

/* ============================================
   SOFTWARE LOGIN PAGE STYLES - SIMPLIFIED
   ============================================ */

.login-page-body {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
}

.software-login-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.login-card-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    min-height: 700px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Left Image Section */
.login-image-section {
    flex: 1;
    background: url('../image/Ticketsys.png') center center no-repeat;
    background-size: cover;
    position: relative;
}

.login-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 77, 0.85) 0%, rgba(44, 62, 80, 0.9) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.software-brand {
    text-align: center;
    /*margin-bottom: 60px;*/
}

.software-logo-large {
    width: auto;
    height: 15rem;
    margin: 0 auto 25px;
    object-fit: contain;
}

.software-title h2 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.software-subtitle {
    color: #ff9000;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.system-features {
    flex-grow: 1;
}

.features-title {
    color: white;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 144, 0, 0.3);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .features-list li {
        color: rgba(255, 255, 255, 0.95);
        font-size: 15px;
        padding: 10px 0;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

        .features-list li:last-child {
            border-bottom: none;
        }

        .features-list li i {
            color: #ff9000;
            font-size: 16px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }

.image-footer {
    margin-top: auto;
    text-align: center;
}

.version-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
}

/* Right Form Section - SIMPLIFIED FOR CLICKABILITY */
.login-form-section {
    flex: 1.2;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    background: white;
}

.login-header {
    margin-bottom: 50px;
}

.welcome-container {
    text-align: center;
}

.welcome-title {
    color: #1a3a4d;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px;
}

.welcome-subtitle {
    color: #6c757d;
    font-size: 16px;
    font-weight: 400;
    margin: 0;
}

/* Form Styles - SIMPLIFIED */
.software-login-form {
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #495057;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.form-icon {
    color: #ff9000;
    font-size: 16px;
}

.input-group {
    position: relative;
}

.form-control {
    width: 100%;
    height: 56px;
    padding: 16px 50px 16px 20px;
    border: 2px solid #e3e6f0;
    border-radius: 10px !important;
    font-size: 16px;
    color: #2c3e50;
    background: #fafbfe;
    transition: all 0.3s ease;
}

    .form-control:focus {
        outline: none;
        border-color: #ff9000;
        background: white;
        box-shadow: 0 0 0 4px rgba(255, 144, 0, 0.1);
    }

    .form-control::placeholder {
        color: #adb5bd;
        font-weight: 400;
    }

.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: color 0.3s ease;
}

    .password-toggle:hover {
        color: #ff9000;
    }

/* Form Options */
.form-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ff9000;
}

.remember-me label {
    color: #495057;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    margin: 0;
}

.forgot-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ff9000;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .forgot-link:hover {
        color: #e67e00;
        transform: translateX(2px);
    }

    .forgot-link i {
        font-size: 14px;
    }

/* Login Button */
.btn-login {
    width: 100%;
    height: 56px;
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3);
}

    .btn-login:hover {
        background: linear-gradient(135deg, #ff6e07 0%, #ff5500 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(255, 144, 0, 0.3);
    }

    .btn-login i {
        font-size: 16px;
        transition: transform 0.3s ease;
    }

    .btn-login:hover i {
        transform: translateX(3px);
    }

/* Form Footer */
.form-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

/* Login Footer */
.login-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
}

.copyright {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .login-card-wrapper {
        max-width: 1000px;
        min-height: 650px;
    }

    .login-form-section {
        padding: 40px 50px;
    }
}

@media (max-width: 992px) {
    .login-card-wrapper {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }

    .login-image-section {
        min-height: 300px;
    }

    .login-image-overlay {
        padding: 40px 30px;
    }

    .software-brand {
        margin-bottom: 40px;
    }

    .software-logo-large {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .software-title h2 {
        font-size: 28px;
    }

    .system-features {
        display: none;
    }

    .login-form-section {
        padding: 40px 30px;
    }

    .welcome-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .login-card-wrapper {
        border-radius: 15px;
    }

    .login-image-section {
        min-height: 250px;
    }

    .login-image-overlay {
        padding: 30px 20px;
    }

    .software-logo-large {
        width: 70px;
        height: 70px;
    }

    .software-title h2 {
        font-size: 24px;
    }

    .software-subtitle {
        font-size: 14px;
    }

    .login-form-section {
        padding: 30px 25px;
    }

    .welcome-title {
        font-size: 24px;
    }

    .welcome-subtitle {
        font-size: 14px;
    }

    .form-control {
        height: 52px;
        font-size: 15px;
    }

    .btn-login {
        height: 52px;
        font-size: 16px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 576px) {
    .login-image-section {
        min-height: 200px;
    }

    .login-image-overlay {
        padding: 25px 15px;
    }

    .software-logo-large {
        width: 60px;
        height: 60px;
    }

    .software-title h2 {
        font-size: 22px;
    }

    .login-form-section {
        padding: 25px 20px;
    }

    .welcome-title {
        font-size: 22px;
    }

    .form-control {
        height: 50px;
        padding: 14px 45px 14px 16px;
        font-size: 14px;
    }

    .input-icon {
        right: 16px;
    }

    .password-toggle {
        right: 45px;
    }

    .btn-login {
        height: 50px;
        font-size: 15px;
    }

    .copyright {
        font-size: 12px;
    }
}

/* ============================================
   SOFTWARE NOTIFICATION MODAL STYLES
   ============================================ */

.software-modal-content {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

/* Modal Header */
.software-modal-header {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

.software-success-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.software-info-header {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
}

.software-warning-header {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%);
}

.software-error-header {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
}

.software-modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .software-modal-icon i {
        font-size: 24px;
        color: white;
    }

.software-modal-title-container {
    flex: 1;
    padding-right: 40px;
}

.software-modal-title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Close Button */
.software-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .software-modal-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Modal Body */
.software-modal-body {
    padding: 30px;
    text-align: center;
    background: white;
}

.software-modal-message {
    color: #2c3e50;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

    .software-modal-message p {
        margin-bottom: 0;
    }

/* Modal Footer */
.software-modal-footer {
    padding: 0 30px 30px;
    border-top: none;
    text-align: center;
    background: white;
}

.btn-software-action {
    min-width: 140px;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .btn-software-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    }

    .btn-software-action:active {
        transform: translateY(0);
    }

.btn-software-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

    .btn-software-success:hover {
        background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);
        color: white;
    }

.btn-software-info {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
    color: white;
}

    .btn-software-info:hover {
        background: linear-gradient(135deg, #152a38 0%, #222f3d 100%);
        color: white;
    }

.btn-software-warning {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%);
    color: white;
}

    .btn-software-warning:hover {
        background: linear-gradient(135deg, #e67e00 0%, #e55e06 100%);
        color: white;
    }

.btn-software-error {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    color: white;
}

    .btn-software-error:hover {
        background: linear-gradient(135deg, #c82333 0%, #d63384 100%);
        color: white;
    }

/* Responsive styles for modals */
@media (max-width: 576px) {
    .software-modal-header {
        padding: 20px;
        gap: 15px;
    }

    .software-modal-icon {
        width: 45px;
        height: 45px;
    }

        .software-modal-icon i {
            font-size: 22px;
        }

    .software-modal-title {
        font-size: 16px;
    }

    .software-modal-body {
        padding: 25px 20px;
    }

    .software-modal-message {
        font-size: 15px;
    }

    .software-modal-footer {
        padding: 0 20px 25px;
    }

    .btn-software-action {
        min-width: 120px;
        padding: 10px 25px;
    }

    .software-modal-close {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}



/* ============================================
   FORGOT PASSWORD PAGE STYLES
   Matching login page design
   ============================================ */

.forgot-card-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    min-height: 700px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Left Image Section */
.forgot-image-section {
    flex: 1;
    background: url('../image/Ticketsys.png') center center no-repeat;
    background-size: cover;
    position: relative;
}

.forgot-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 58, 77, 0.85) 0%, rgba(44, 62, 80, 0.9) 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Right Form Section */
.forgot-form-section {
    flex: 1.2;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    background: white;
}


.forgot-form-wrapper {
    flex-grow: 1;
}

/* Stepper Styles - Matching Design */
.recovery-stepper {
    margin-top: 20px;
}

    .recovery-stepper .bs-stepper-header {
        justify-content: center;
    }

    .recovery-stepper .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
    }

        .recovery-stepper .step .bs-stepper-circle {
            width: 40px;
            height: 40px;
            background: #e3e6f0;
            color: #6c757d;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 2px solid #e3e6f0;
        }

        .recovery-stepper .step.active .bs-stepper-circle {
            background: #ff9000;
            color: white;
            border-color: #ff9000;
            box-shadow: 0 5px 15px rgba(255, 144, 0, 0.3);
        }

        .recovery-stepper .step .bs-stepper-label {
            margin-top: 10px;
            font-size: 13px;
            color: #6c757d;
            font-weight: 500;
            text-align: center;
            white-space: nowrap;
        }

        .recovery-stepper .step.active .bs-stepper-label {
            color: #ff9000;
            font-weight: 600;
        }

    .recovery-stepper .line {
        width: 80px;
        height: 2px;
        background: #e3e6f0;
        margin: 20px 15px 0;
        transition: all 0.3s ease;
    }

    .recovery-stepper .step.active ~ .step .line {
        background: #e3e6f0;
    }

/* Step Content */
.step-content {
    padding: 20px 0;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Password Section */
.password-section {
    background: #fafbfe;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
    border: 2px solid #e3e6f0;
}

.password-title {
    color: #1a3a4d;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e3e6f0;
    display: flex;
    align-items: center;
}

/* Button Styles */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.btn-back {
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    border: 2px solid #e3e6f0;
    background: white;
    color: #495057;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .btn-back:hover {
        border-color: #ff9000;
        color: #ff9000;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

.btn-next, .btn-submit {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    min-width: 140px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
}

.btn-next {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3);
}

    .btn-next:hover {
        background: linear-gradient(135deg, #ff6e07 0%, #ff5500 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4);
        color: white;
    }

.btn-submit {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

    .btn-submit:hover {
        background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
        color: white;
    }

/* Footer */
.forgot-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .forgot-card-wrapper {
        max-width: 1000px;
        min-height: 650px;
    }

    .forgot-form-section {
        padding: 40px 50px;
    }
}

@media (max-width: 992px) {
    .forgot-card-wrapper {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }

    .forgot-image-section {
        min-height: 300px;
    }

    .forgot-image-overlay {
        padding: 40px 30px;
    }

    .software-brand {
        margin-bottom: 40px;
    }

    .software-logo-large {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .software-title h2 {
        font-size: 28px;
    }

    .system-features {
        display: none;
    }

    .forgot-form-section {
        padding: 40px 30px;
    }

    .recovery-stepper .line {
        width: 40px;
    }
}

@media (max-width: 768px) {
    .forgot-card-wrapper {
        border-radius: 15px;
    }

    .forgot-image-section {
        min-height: 250px;
    }

    .forgot-image-overlay {
        padding: 30px 20px;
    }

    .software-logo-large {
        width: 70px;
        height: 70px;
    }

    .software-title h2 {
        font-size: 24px;
    }

    .software-subtitle {
        font-size: 14px;
    }

    .forgot-form-section {
        padding: 30px 25px;
    }

    .step-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-back, .btn-next, .btn-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .forgot-image-section {
        min-height: 200px;
    }

    .forgot-image-overlay {
        padding: 25px 15px;
    }

    .software-logo-large {
        width: 60px;
        height: 60px;
    }

    .software-title h2 {
        font-size: 22px;
    }

    .forgot-form-section {
        padding: 25px 20px;
    }

    .recovery-stepper .bs-stepper-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .recovery-stepper .bs-stepper-label {
        font-size: 12px;
    }

    .password-section {
        padding: 20px 15px;
    }
}

/* ============================================
   ADDITIONAL FORGOT PASSWORD STYLES
   ============================================ */

/* Username Input Card */
.username-input-card {
    background: #fafbfe;
    border-radius: 12px;
    padding: 30px;
    border: 2px solid #e3e6f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.input-title {
    color: #1a3a4d;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .input-title i {
        color: #ff9000;
        font-size: 20px;
    }

/* Form Control Large */
.form-control-lg {
    height: 56px !important;
    font-size: 16px !important;
    padding: 16px 20px 16px 20px !important;
}

/* Form Text */
.form-text {
    font-size: 13px !important;
    color: #6c757d !important;
    margin-top: 8px !important;
}

    .form-text i {
        color: #ff9000;
        margin-right: 5px;
    }

/* Button Styles */
.btn-outline-secondary {
    color: #6c757d !important;
    border-color: #e3e6f0 !important;
    background: white !important;
    padding: 10px 25px !important;
    border-radius: 10px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

    .btn-outline-secondary:hover {
        color: #ff9000 !important;
        border-color: #ff9000 !important;
        background: white !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }

.btn-primary {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #ff6e07 0%, #ff5500 100%) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4) !important;
        color: white !important;
    }

/* Invalid Feedback */
.invalid-feedback {
    font-size: 13px !important;
    color: #dc3545 !important;
    margin-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Form Group Spacing */
.mb-0 {
    margin-bottom: 0 !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}





/* Responsive adjustments */
@media (max-width: 768px) {
    .username-input-card {
        padding: 20px;
    }

    .input-title {
        font-size: 16px;
    }

    .form-control-lg {
        height: 50px !important;
        font-size: 15px !important;
    }
}

@media (max-width: 576px) {
    .username-input-card {
        padding: 15px;
    }

    .step-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-outline-secondary, .btn-primary, .btn-back, .btn-next, .btn-submit {
        width: 100% !important;
        text-align: center;
    }
}

/* Simple Stepper Styles */
.simple-stepper {
    margin: 30px 0 40px;
}

.stepper-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
    margin: 0 auto;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.stepper-circle {
    width: 44px;
    height: 44px;
    background: #e3e6f0;
    color: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    border: 3px solid #e3e6f0;
    transition: all 0.4s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.stepper-step.active .stepper-circle {
    background: #ff9000;
    color: white;
    border-color: #ff9000;
    box-shadow: 0 5px 15px rgba(255, 144, 0, 0.3);
    transform: scale(1.05);
}

.stepper-label {
    color: #6c757d;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-label {
    color: #ff9000;
    font-weight: 600;
}

.stepper-line {
    width: 100px;
    height: 3px;
    background: #e3e6f0;
    margin: 0 15px;
    position: relative;
    top: -22px;
    transition: all 0.4s ease;
}

.stepper-step.active ~ .stepper-step .stepper-line {
    background: #e3e6f0;
}

.stepper-step.active ~ .stepper-step .stepper-circle {
    background: #e3e6f0;
    color: #6c757d;
    border-color: #e3e6f0;
}

/* Forgot Step Styles */
.forgot-step {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Simple password input wrapper */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-with-toggle {
    padding-right: 85px !important; /* Make space for both icon and button */
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #6c757d;
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    padding: 8px;
}

    .toggle-password:hover {
        color: #ff9000;
    }

.password-input-wrapper .input-icon {
    position: absolute;
    right: 55px; /* Position left of the toggle button */
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 16px;
    pointer-events: none;
    z-index: 1;
}
/* Hide any duplicate eye icons added by other scripts */
.password-with-toggle::-ms-reveal,
.password-with-toggle::-webkit-contacts-auto-fill-button,
.password-with-toggle::-webkit-credentials-auto-fill-button {
    display: none !important;
}

/* Hide any eye icons added by browser or other scripts */
input[type="password"]::-webkit-textfield-decoration-container {
    display: none !important;
}

/* Ensure only our toggle button is visible */
.password-input-wrapper button.toggle-password {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ============================================
   CUSTOM SWEETALERT2 STYLES WITH CUSTOM CLASSES
   This will override inline styles
   ============================================ */

/* Base popup styling */
.custom-swal-popup {
    border-radius: 12px !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    padding: 2rem !important;
    max-width: 450px !important;
    border: none !important;
}

/* SUCCESS ALERT STYLES */
.custom-swal-success-title {
    color: #047857 !important; /* Deep green for "Completed" */
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    display: block !important;
}

.custom-swal-success-button {
    background-color: #047857 !important; /* Deep green button */
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 6px -1px rgba(4, 120, 87, 0.2) !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    margin-top: 1rem !important;
    min-width: 140px !important;
}

    .custom-swal-success-button:hover {
        background-color: #065f46 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 8px -1px rgba(4, 120, 87, 0.3) !important;
    }

/* ERROR ALERT STYLES */
.custom-swal-error-title {
    color: #dc2626 !important; /* Red for "Invalid data" */
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    text-align: center !important;
    display: block !important;
}

.custom-swal-error-button {
    background-color: #dc2626 !important; /* Red button */
    border: none !important;
    border-radius: 8px !important;
    padding: 0.75rem 2rem !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
    text-align: center !important;
    text-decoration: none !important;
    margin-top: 1rem !important;
    min-width: 100px !important;
}

    .custom-swal-error-button:hover {
        background-color: #b91c1c !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2) !important;
    }

/* SweetAlert2 icon colors - these still work with custom classes */
.swal2-icon.swal2-success {
    border-color: #047857 !important;
    color: #047857 !important;
}

.swal2-icon.swal2-error {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

/* Success ring color */
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(4, 120, 87, 0.3) !important;
}

/* Success checkmark lines */
.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #047857 !important;
}

/* Responsive */
@media (max-width: 576px) {
    .custom-swal-popup {
        padding: 1.5rem !important;
        margin: 0 10px !important;
        width: 90% !important;
    }

    .custom-swal-success-title,
    .custom-swal-error-title {
        font-size: 1.3rem !important;
    }

    .custom-swal-success-button,
    .custom-swal-error-button {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

/* ============================================
   MODERN LAYOUT STYLES
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #ff9000;
    --primary-dark: #e67e00;
    --primary-gradient: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%);
    --secondary-color: #1a3a4d;
    --secondary-dark: #152a38;
    --secondary-gradient: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
    --accent-color: #13b0ff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-light: #6c757d;
    --border-color: #e3e6f0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Modern Layout Body */
.modern-layout {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

    /* Modern Header */
    .modern-layout #main-navHeader.navbar {
        background: var(--secondary-gradient);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 0.8rem 1rem;
        border-bottom: none;
        min-height: 70px;
    }

    .modern-layout #main-navHeader .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
        padding: 0.6rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

        .modern-layout #main-navHeader .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white !important;
            transform: translateY(-1px);
        }

        .modern-layout #main-navHeader .nav-link i {
            color: var(--primary-color);
        }

    /* Navbar Search */
    .modern-layout .navbar-search-block {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        padding: 5px;
    }

    .modern-layout .form-control-navbar {
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 6px;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

        .modern-layout .form-control-navbar::placeholder {
            color: rgba(255, 255, 255, 0.6);
        }

    .modern-layout .btn-navbar {
        color: white;
        background: transparent;
    }

        .modern-layout .btn-navbar:hover {
            color: var(--primary-color);
        }

    /* User Menu */
    .modern-layout .user-menu .user-avatar {
        color: var(--primary-color);
        font-size: 1.5rem;
    }

    .modern-layout .user-menu .user-info .user-name {
        color: white;
        font-weight: 600;
    }

    .modern-layout .user-menu .user-info .user-role {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.85rem;
    }

    /* Dropdown Menu */
    .modern-layout .navbar-nav .dropdown-menu {
        border: none;
        border-radius: 12px;
        box-shadow: var(--shadow-lg);
        padding: 10px;
        min-width: 250px;
        margin-top: 10px;
        background: white;
    }

    .modern-layout .dropdown-header {
        padding: 0.75rem 1rem;
        color: var(--secondary-color);
        border-bottom: 1px solid var(--border-color);
    }

    .modern-layout .dropdown-item {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        margin: 2px 0;
        color: var(--text-light);
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

        .modern-layout .dropdown-item:hover {
            background: var(--primary-gradient);
            color: white;
            transform: translateX(5px);
        }

        .modern-layout .dropdown-item i {
            width: 20px;
            margin-right: 10px;
        }

        .modern-layout .dropdown-item:hover i {
            color: white;
        }

    /* Logout Button */
    .modern-layout #btnLogOut {
        background: var(--primary-gradient);
        border: none;
        border-radius: 8px;
        color: white;
        padding: 0.75rem 1.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 5px;
    }

        .modern-layout #btnLogOut:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(255, 144, 0, 0.3);
        }

    /* Sidebar Modernization */
    .modern-layout .main-sidebar {
        background: var(--secondary-gradient);
        border-right: none;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    }

    .layout-navbar-fixed .wrapper .brand-link {
        overflow: hidden;
        position: fixed;
        top: 0;
        transition: width .3s ease-in-out;
        width: 250px;
        z-index: 1035;
    }

    .layout-navbar-fixed.layout-fixed .wrapper .sidebar {
        margin-top: calc(8rem + 1px);
    }

    .modern-layout .brand-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.2rem 1rem;
        background: rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        background-color: var(--secondary-gradient) !important;
        width: auto;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }


        .modern-layout .brand-link:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        .modern-layout .brand-link .brand-image {
            margin: 0 auto !important;
            width: 80%;
            height: 80%;
            border-radius: 8px;
            max-height: 85px;
            width: auto;
            padding: 5px;
        }

        .modern-layout .brand-link .brand-text {
            color: white;
            font-weight: 600 !important;
            font-size: 1.2rem;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }

    /* User Panel */
    .modern-layout .user-panel {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }

        .modern-layout .user-panel .image i {
            font-size: 2.5rem;
            color: var(--primary-color);
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            padding: 10px;
        }

        .modern-layout .user-panel .info a {
            color: white;
            font-weight: 600;
            text-decoration: none;
        }

    .modern-layout .sidebar-divider {
        border-color: rgba(255, 255, 255, 0.1);
        margin: 1rem 0;
    }

    /* Sidebar Search */
    .modern-layout .sidebar .form-inline {
        padding: 1rem;
    }

    .modern-layout .form-control-sidebar {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 8px;
        padding: 0.6rem 1rem;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

        .modern-layout .form-control-sidebar::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

    .modern-layout .btn-sidebar {
        background: var(--primary-color);
        border: none;
        color: white;
        border-radius: 0 8px 8px 0;
        transition: all 0.3s ease;
    }

        .modern-layout .btn-sidebar:hover {
            background: var(--primary-dark);
        }

    /* Sidebar Navigation */
    .modern-layout .nav-sidebar > .nav-item > .nav-link {
        color: rgba(255, 255, 255, 0.8);
        margin: 3px 0.8rem;
        border-radius: 8px;
        padding: 0.8rem 1rem;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
    }

        .modern-layout .nav-sidebar > .nav-item > .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            transform: translateX(5px);
        }

        .modern-layout .nav-sidebar > .nav-item > .nav-link.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 12px rgba(255, 144, 0, 0.3);
        }

        .modern-layout .nav-sidebar > .nav-item > .nav-link i {
            color: var(--primary-color);
            width: 24px;
            text-align: center;
            margin-right: 10px;
            font-size: 1.1rem;
        }

        .modern-layout .nav-sidebar > .nav-item > .nav-link.active i {
            color: white;
        }

    /* Treeview Menu */
    .modern-layout .nav-treeview {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        margin: 0 0.8rem 0.5rem;
        padding: 0.5rem 0;
    }

        .modern-layout .nav-treeview .nav-item .nav-link {
            color: rgba(255, 255, 255, 0.7);
            padding: 0.6rem 1rem 0.6rem 3rem;
            border-radius: 6px;
            margin: 2px 0.5rem;
            transition: all 0.2s ease;
        }

            .modern-layout .nav-treeview .nav-item .nav-link:hover {
                background: rgba(255, 255, 255, 0.1);
                color: white;
            }

            .modern-layout .nav-treeview .nav-item .nav-link.active {
                color: var(--primary-color);
                background: rgba(255, 144, 0, 0.1);
            }

            .modern-layout .nav-treeview .nav-item .nav-link i {
                font-size: 0.8rem;
                margin-right: 8px;
            }

    /* Content Area */
    .modern-layout .content-wrapper {
        background: var(--light-color);
        min-height: calc(100vh - 70px);
    }

    .modern-layout .content-header {
        padding: 1.5rem 2rem 1rem;
        background: white;
        border-bottom: 1px solid var(--border-color);
    }

        .modern-layout .content-header h1 {
            color: var(--secondary-color);
            font-weight: 700;
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }

    .modern-layout .content {
        padding: 0 2rem 2rem;
    }

    /* Breadcrumb */
    .modern-layout .breadcrumb {
        background: transparent;
        padding: 0;
        margin-bottom: 0;
    }

    .modern-layout .breadcrumb-item a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 500;
    }

        .modern-layout .breadcrumb-item a:hover {
            color: var(--primary-dark);
        }

    .modern-layout .breadcrumb-item.active {
        color: var(--text-light);
    }

    /* Cards */
    .modern-layout .card {
        /*border: none;*/
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        margin-bottom: 1.5rem;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .modern-layout .card:hover {
        box-shadow: var(--shadow-md);
        transform: translateY(-2px);
    }

    .modern-layout .card-header {
        background: white;
        border-bottom: 1px solid var(--border-color);
        padding: 1.25rem 1.5rem;
        border-radius: 12px 12px 0 0 !important;
    }

        .modern-layout .card-header h3 {
            color: var(--secondary-color);
            font-weight: 600;
            margin: 0;
            font-size: 1.4rem;
        }

    .modern-layout .card-body {
        padding: 1.5rem;
    }

    /* Buttons */
    .modern-layout .btn-primary {
        background: var(--primary-gradient);
        border: none;
        border-radius: 8px;
        padding: 0.6rem 1.5rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(255, 144, 0, 0.2);
    }

        .modern-layout .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(255, 144, 0, 0.3);
            background: linear-gradient(135deg, #ff6e07 0%, #e55e06 100%);
        }

        .modern-layout .btn-primary:active {
            transform: translateY(0);
        }

    /* Footer */
    .modern-layout .main-footer {
        background: white;
        border-top: 1px solid var(--border-color);
        padding: 1.5rem;
        color: var(--text-light);
        font-weight: 500;
    }

        .modern-layout .main-footer strong {
            color: var(--secondary-color);
            font-size: 1rem;
        }

        .modern-layout .main-footer a {
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
        }

            .modern-layout .main-footer a:hover {
                color: var(--primary-dark);
                text-decoration: underline;
            }

    /* Demo Banner */
    .modern-layout [style*="SANDBOX VERSION"] {
        background: linear-gradient(135deg, #FDB734 0%, var(--primary-color) 100%) !important;
        color: white !important;
        font-weight: 700;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 99999999;
        letter-spacing: 1px;
    }

    /* Load Panel */
    .modern-layout #MainLoadPanel {
        margin-bottom: 1rem;
    }

    /* Active Page Indicator */
    .modern-layout [active-page] {
        position: relative;
    }

        .modern-layout [active-page].active::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 20px;
            background: var(--primary-color);
            border-radius: 0 2px 2px 0;
        }

/* Mobile Responsive */
@media (max-width: 768px) {
    .modern-layout .content {
        padding: 0 1rem 1rem;
    }

    .modern-layout .content-header {
        padding: 1rem 1rem 0.5rem;
    }

        .modern-layout .content-header h1 {
            font-size: 1.5rem;
        }

    .modern-layout .navbar-nav .dropdown-menu {
        left: 20% !important;
        transform: translateX(-50%);
        width: 90%;
        max-width: 300px;
    }

    .modern-layout .user-menu .user-info {
        display: none;
    }

    .modern-layout .sidebar .brand-text {
        font-size: 1rem;
    }

    .modern-layout .main-footer .col-md-6 {
        text-align: center !important;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .modern-layout #main-navHeader.navbar {
        padding: 0.5rem;
    }

    .modern-layout .content {
        padding: 0.5rem;
    }

    .modern-layout .card-body {
        padding: 1rem;
    }

    .modern-layout .nav-sidebar > .nav-item > .nav-link {
        padding: 0.6rem 0.8rem;
        margin: 2px 0.5rem;
    }
}

/* Dark Mode Support (if enabled later) */
.dark-mode.modern-layout .content-wrapper {
    background: #1a1d28;
}

.dark-mode.modern-layout .content-header {
    background: #2d3343;
    border-bottom: 1px solid #3a4052;
}

    .dark-mode.modern-layout .content-header h1 {
        color: white;
    }

.dark-mode.modern-layout .card {
    background: #2d3343;
    border: 1px solid #3a4052;
}

.dark-mode.modern-layout .card-header {
    background: #2d3343;
    border-bottom: 1px solid #3a4052;
    color: white;
}

.dark-mode.modern-layout .main-footer {
    background: #2d3343;
    border-top: 1px solid #3a4052;
    color: rgba(255, 255, 255, 0.7);
}

    .dark-mode.modern-layout .main-footer strong {
        color: white;
    }

    .dark-mode.modern-layout .main-footer a {
        color: var(--primary-color);
    }

.sidebar {
    padding-left: 0rem !important;
}


/* ============================================
   SIDEBAR MENU FIXES - REDUCE PADDING
   ============================================ */

/* Reduce overall sidebar padding */
.modern-layout .sidebar {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
}

/* Reduce padding for main menu items */
.modern-layout .nav-sidebar > .nav-item > .nav-link {
    margin: 3px 0.25rem !important;
    padding: 0.6rem 0.75rem !important;
    font-size: 14px !important;
}

/* Reduce padding for submenu items */
.modern-layout .nav-treeview .nav-item .nav-link {
    padding: 0.5rem 0.75rem 0.5rem 0rem !important;
    font-size: 13px !important;
    margin: 1px 0.25rem !important;
}

/* Reduce treeview padding */
.modern-layout .nav-treeview {
    margin: 0 0.25rem 0.25rem !important;
    padding: 0.25rem 0 !important;
}

/* Reduce font sizes for menu text */
.modern-layout .nav-sidebar .nav-link p {
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

.modern-layout .nav-treeview .nav-link p {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 0 !important;
}

/* Reduce icon size and spacing */
.modern-layout .nav-sidebar > .nav-item > .nav-link i {
    width: 20px !important;
    margin-right: 8px !important;
    font-size: 1rem !important;
}

.modern-layout .nav-treeview .nav-item .nav-link i {
    font-size: 0.75rem !important;
    margin-right: 6px !important;
}

/* Reduce brand link padding */
.modern-layout .brand-link {
}

/* Reduce user panel padding */
.modern-layout .user-panel {
    padding: 0 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

/* Reduce sidebar search padding */
.modern-layout .sidebar .form-inline {
    padding: 0.5rem !important;
}

/* Make sidebar divider thinner */
.modern-layout .sidebar-divider {
    margin: 0.5rem 0 !important;
}

/* Reduce right arrow size */
.modern-layout .nav-sidebar .nav-link .right {
    font-size: 12px !important;
    margin-left: auto !important;
}

/* Ensure no text wrapping */
.modern-layout .nav-sidebar .nav-link,
.modern-layout .nav-treeview .nav-link {
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
}

/* Reduce brand text size */
.modern-layout .brand-link .brand-text {
    font-size: 1rem !important;
}

/* Reduce user panel image size */
.modern-layout .user-panel .image i {
    font-size: 2rem !important;
    padding: 8px !important;
}

/* Additional fixes for very long menu items */
.modern-layout .nav-sidebar .nav-item {
    max-width: 100% !important;
}

/* If still wrapping, try reducing further */
@media (min-width: 768px) and (max-width: 992px) {
    .modern-layout .nav-sidebar > .nav-item > .nav-link p {
        font-size: 13px !important;
    }

    .modern-layout .nav-treeview .nav-link p {
        font-size: 12px !important;
    }

    .modern-layout .nav-sidebar > .nav-item > .nav-link {
        padding: 0.5rem 0.6rem !important;
    }

    .modern-layout .nav-treeview .nav-item .nav-link {
        padding: 0.4rem 0.6rem 0.4rem 1.75rem !important;
    }
}

/* For extremely long menu items, add tooltip on hover */
.modern-layout .nav-sidebar .nav-link[title],
.modern-layout .nav-treeview .nav-link[title] {
    position: relative;
}

/* If you want to truncate text and show full text on hover */
.modern-layout .nav-sidebar .nav-link p,
.modern-layout .nav-treeview .nav-link p {
    /*    overflow: hidden;*/
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

/* ============================================
   SUBCATEGORY HOVER COLOR CHANGE
   ============================================ */

/* Change submenu (li items in treeview) hover background to yellow/orange */
.modern-layout .nav-treeview .nav-item .nav-link:hover {
    background: rgba(255, 144, 0, 0.3) !important; /* Semi-transparent orange */
    color: #ff9000 !important; /* Orange text */
}

/* For a more solid yellow background, use this instead: */
.modern-layout .nav-treeview .nav-item .nav-link:hover {
    background: linear-gradient(135deg, rgba(255, 144, 0, 0.2) 0%, rgba(255, 110, 7, 0.3) 100%) !important;
    color: #ff9000 !important;
    border-left: 3px solid #ff9000 !important;
}

/* Option 2: Pure yellow background */
.modern-layout .nav-treeview .nav-item .nav-link:hover {
    background: #ff9000 !important; /* Solid orange */
    color: white !important;
}

/* Option 3: Light yellow/orange tint */
.modern-layout .nav-treeview .nav-item .nav-link:hover {
    background: #fff3e0 !important; /* Light orange tint */
    color: #ff9000 !important;
    border-left: 3px solid #ff9000 !important;
}

    /* Also update the icon color on hover */
    .modern-layout .nav-treeview .nav-item .nav-link:hover i {
        color: #ff9000 !important;
    }

/* If you want both main menu and submenu to have same hover effect */
.modern-layout .nav-sidebar > .nav-item > .nav-link:hover,
.modern-layout .nav-treeview .nav-item .nav-link:hover {
    background: rgba(255, 144, 0, 0.2) !important;
    color: #ff9000 !important;
}

/* Make the hover effect consistent with your login page orange theme */
.modern-layout .nav-treeview .nav-item .nav-link:hover {
    background: linear-gradient(90deg, rgba(255, 144, 0, 0.1) 0%, rgba(255, 144, 0, 0.2) 100%) !important;
    color: #ff9000 !important;
    border-left: 3px solid #ff9000 !important;
    padding-left: calc(2rem - 3px) !important; /* Adjust for border */
}

/* For the active submenu item */
.modern-layout .nav-treeview .nav-item .nav-link.active {
    background: rgba(255, 144, 0, 0.15) !important;
    color: #ff9000 !important;
    border-left: 3px solid #ff9000 !important;
    padding-left: calc(2rem - 3px) !important;
}


    /* Update active submenu item to match hover */
    .modern-layout .nav-treeview .nav-item .nav-link.active,
    .modern-layout .nav-treeview .nav-item .nav-link.active:hover {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        color: white !important;
        border-left: 3px solid #ff9000 !important;
    }

        .modern-layout .nav-treeview .nav-item .nav-link.active i {
            color: white !important;
        }



/* Change parent menu hover to match */
.modern-layout .nav-sidebar > .nav-item > .nav-link:hover {
    background: rgba(255, 144, 0, 0.2) !important;
    color: #ff9000 !important;
}

    .modern-layout .nav-sidebar > .nav-item > .nav-link:hover i {
        color: #ff9000 !important;
    }

/* ============================================
   FIX SUBCATEGORY INDENTATION - REDUCE LEFT PADDING
   ============================================ */

/* Current submenu padding is too far right, reduce it */
.modern-layout .nav-treeview .nav-item .nav-link {
    padding-left: 0rem !important; /* Reduced from 3rem or 2rem */
    padding-right: 0.75rem !important;
}

    /* Adjust hover effect to match new padding */
    .modern-layout .nav-treeview .nav-item .nav-link:hover {
        padding-left: calc(0rem - 3px) !important; /* Account for border */
    }

    /* Adjust active state padding */
    .modern-layout .nav-treeview .nav-item .nav-link.active {
        padding-left: calc(0rem - 3px) !important;
    }

/* If you want even less indentation, use this: */
.modern-layout .nav-treeview .nav-item .nav-link {
    padding-left: 0rem !important;
}

    .modern-layout .nav-treeview .nav-item .nav-link:hover,
    .modern-layout .nav-treeview .nav-item .nav-link.active {
        padding-left: calc(0rem - 3px) !important;
    }

/* Also reduce the treeview container padding */
.modern-layout .nav-treeview {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Reduce the gap between parent menu and submenu */
.modern-layout .nav-treeview {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

    /* If submenus are still wrapping, reduce font size further */
    .modern-layout .nav-treeview .nav-link p {
        font-size: 12.5px !important;
        padding-right: 5px !important;
    }

    /* Remove any extra margins on treeview items */
    .modern-layout .nav-treeview .nav-item {
        margin: 0 !important;
    }

/* ============================================
   BOOTSTRAP 4 DROPDOWN FIX FOR MOBILE
   ============================================ */

/* Ensure dropdown works on mobile */
@media (max-width: 768px) {
    /* Fix dropdown positioning on mobile */
    .navbar-nav .dropdown-menu {
        position: absolute !important;
        right: 0 !important;
        left: auto !important;
        max-width: 300px !important;
        margin-top: 10px !important;
    }

    /* Make sure dropdown doesn't get cut off */
    .dropdown-menu {
        max-height: 80vh !important;
        overflow-y: auto !important;
    }

    /* Make dropdown items touch-friendly */
    .dropdown-item {
        padding: 12px 16px !important;
        min-height: 44px !important;
    }

    /* Show user info on mobile */
    .user-menu .user-info {
        display: block !important;
        max-width: 120px;
        overflow: hidden;
    }

    .user-menu .user-name {
        font-size: 14px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .user-menu .user-role {
        font-size: 11px !important;
        display: none; /* Hide role on mobile to save space */
    }
}

/* Fix dropdown toggle arrow */
.dropdown-toggle::after {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

/* Ensure dropdown is above sidebar on mobile */
.navbar-nav .dropdown-menu {
    z-index: 1001 !important;
}

/* ============================================
   MODERN SEARCH POPUP STYLES
   ============================================ */

/* Override DevExtreme Popup Styles */
#ppSearch.dx-popup-wrapper .dx-popup-content {
    padding: 0 !important;
    overflow: hidden !important;
}

#ppSearch.dx-popup-wrapper .dx-overlay-content {
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
}

#ppSearch .dx-popup-title {
    display: none !important;
}

/* Modern Search Popup Content */
.modern-search-popup-content {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

/* Search Popup Header */
.search-popup-header {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
    padding: 5px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 3px solid #ff9000;
    position: relative;
}

.search-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 144, 0, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .search-icon-wrapper i {
        font-size: 24px;
        color: #ff9000;
    }

.search-title-wrapper h2 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1.2;
}

.search-title-wrapper p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
    line-height: 1.2;
}

/* Search Results Header */
.search-results-header {
    background: #f8f9fa;
    padding: 5px 30px;
    border-bottom: 2px solid #e3e6f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.results-count {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(255, 144, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.results-text {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

#searchQueryText {
    color: #ff9000;
    font-weight: 600;
}

/* DevExtreme DataGrid Customization for Search */
#dtgSearch.dx-datagrid {
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

#dtgSearch .dx-datagrid-headers {
    background: #f8f9fa !important;
    border-top: none !important;
    border-bottom: 2px solid #e3e6f0 !important;
}

#dtgSearch .dx-header-row > td {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%) !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-color: #e3e6f0 !important;
}

#dtgSearch .dx-datagrid-rowsview {
    background: white !important;
}

    #dtgSearch .dx-datagrid-rowsview .dx-row {
        background: white !important;
        transition: all 0.3s ease !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

        #dtgSearch .dx-datagrid-rowsview .dx-row:hover {
            background: #f8f9fa !important;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05) !important;
        }

        #dtgSearch .dx-datagrid-rowsview .dx-row > td {
            font-size: 14px !important;
            color: black !important;
            border-color: #f2d5d5 !important;
        }

        /* Priority Row Colors */
        #dtgSearch .dx-datagrid-rowsview .dx-row.priority-high {
            background: #fff5f5 !important;
            border-left: 4px solid #dc3545 !important;
        }

        #dtgSearch .dx-datagrid-rowsview .dx-row.priority-critical {
            background: #582c95 !important;
            border-left: 4px solid #582c95 !important;
        }

        #dtgSearch .dx-datagrid-rowsview .dx-row.priority-low {
            background: #f0fff4 !important;
            border-left: 4px solid #28a745 !important;
        }

        #dtgSearch .dx-datagrid-rowsview .dx-row.priority-planning {
            background: #155281 !important;
            border-left: 4px solid #155281 !important;
        }

        #dtgSearch .dx-datagrid-rowsview .dx-row.priority-moderate {
            background: #fffbf0 !important;
            border-left: 4px solid #ffc107 !important;
        }



    /* Action Button in Grid */
    #dtgSearch .dx-datagrid-rowsview .dx-link,
    #dtgSearch .dx-datagrid-rowsview .btn-primary {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border: none !important;
        padding: 8px 16px !important;
        border-radius: 6px !important;
        color: white !important;
        font-weight: 500 !important;
        font-size: 13px !important;
        transition: all 0.3s ease !important;
        box-shadow: 0 3px 8px rgba(255, 144, 0, 0.2) !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
    }

        #dtgSearch .dx-datagrid-rowsview .dx-link:hover,
        #dtgSearch .dx-datagrid-rowsview .btn-primary:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 5px 12px rgba(255, 144, 0, 0.3) !important;
            background: linear-gradient(135deg, #ff6e07 0%, #e55e06 100%) !important;
        }

/* Pager Styling */
#dtgSearch .dx-datagrid-pager {
    background: #f8f9fa !important;
    border-top: 2px solid #e3e6f0 !important;
}

#dtgSearch .dx-page {
    min-width: 36px !important;
    height: 36px !important;
    border: 1px solid #e3e6f0 !important;
    background: white !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
    text-align: center !important;
}

    #dtgSearch .dx-page:hover {
        border-color: #ff9000 !important;
        color: #ff9000 !important;
        background: rgba(255, 144, 0, 0.05) !important;
    }

    #dtgSearch .dx-selection,
    #dtgSearch .dx-page.dx-selection {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
        box-shadow: 0 3px 8px rgba(255, 144, 0, 0.2) !important;
    }

#dtgSearch .dx-page-sizes .dx-page-size {
    min-width: 36px !important;
    height: 36px !important;
    border: 1px solid #e3e6f0 !important;
    background: white !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
    text-align: center !important;
}

    #dtgSearch .dx-page-sizes .dx-page-size.dx-selection {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
    }

    #dtgSearch .dx-page-sizes .dx-page-size:hover {
        border-color: #ff9000 !important;
        color: #ff9000 !important;
        background: rgba(255, 144, 0, 0.05) !important;
    }

    #dtgSearch .dx-page-sizes .dx-page-size.dx-selection:hover {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
    }

/* Info Text in Pager */
#dtgSearch .dx-info {
    color: #6c757d !important;
    font-weight: 500 !important;
    font-size: 14px !important;
}

/* Scrollbar Styling for Search Grid */
#dtgSearch .dx-scrollable-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#dtgSearch .dx-scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#dtgSearch .dx-scrollable-container::-webkit-scrollbar-thumb {
    background: #ff9000;
    border-radius: 4px;
}

    #dtgSearch .dx-scrollable-container::-webkit-scrollbar-thumb:hover {
        background: #e67e00;
    }

/* Load Panel */
#dtgSearch .dx-loadpanel-content {
    background: rgba(26, 58, 77, 0.95) !important;
    border-radius: 12px !important;
    padding: 30px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

    #dtgSearch .dx-loadpanel-content .dx-loadpanel-message {
        color: white !important;
        font-weight: 600 !important;
        font-size: 16px !important;
        margin-top: 15px !important;
    }

    #dtgSearch .dx-loadpanel-content .dx-loadindicator-icon {
        border-color: #ff9000 transparent transparent transparent !important;
    }

/* Empty Grid Message */
#dtgSearch .dx-datagrid-nodata {
    color: #6c757d !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 40px !important;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .search-popup-header {
        padding: 20px;
    }

    .search-results-header {
        padding: 15px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    #dtgSearch .dx-datagrid-pager {
        padding: 15px 20px !important;
    }
}

@media (max-width: 768px) {
    .search-popup-header {
        padding: 15px;
    }

    .search-title-wrapper h2 {
        font-size: 18px;
    }

    .search-icon-wrapper {
        width: 40px;
        height: 40px;
    }

        .search-icon-wrapper i {
            font-size: 20px;
        }

    .search-results-header {
        padding: 15px;
    }

    .results-count {
        font-size: 13px;
        padding: 6px 12px;
    }

    .results-text {
        font-size: 13px;
    }

    #dtgSearch .dx-header-row > td {
        font-size: 12px !important;
        padding: 12px 8px !important;
    }

    #dtgSearch .dx-datagrid-rowsview .dx-row > td {
        font-size: 13px !important;
        padding: 12px 8px !important;
    }

    #dtgSearch .dx-datagrid-pager {
        padding: 15px !important;
    }
}

@media (max-width: 576px) {
    .search-header-content {
        gap: 10px;
    }

    .search-icon-wrapper {
        width: 35px;
        height: 35px;
    }

        .search-icon-wrapper i {
            font-size: 18px;
        }

    .search-title-wrapper h2 {
        font-size: 16px;
    }

    .search-title-wrapper p {
        font-size: 12px;
    }

    .results-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============================================
   SEARCH POPUP FIXES
   ============================================ */

/* Force cell backgrounds to inherit from row */
#dtgSearch .dx-datagrid-rowsview .dx-row > td {
    background-color: inherit !important;
    color: inherit !important;
    border-color: #dee2e6 !important;
}

/* Ensure hover doesn't override our colors */
#dtgSearch .dx-datagrid-rowsview .dx-row:hover > td {
    background-color: inherit !important;
    filter: brightness(95%) !important; /* Slight darken on hover */
}

/* Specific priority colors for CSS fallback */
#dtgSearch .dx-datagrid-rowsview .dx-row.priority-planning {
    background-color: #6db6f0 !important;
    color: white !important;
}

#dtgSearch .dx-datagrid-rowsview .dx-row.priority-low {
    background-color: #00cc00 !important;
    color: white !important;
}

#dtgSearch .dx-datagrid-rowsview .dx-row.priority-high {
    background-color: #f17b7b !important;
}

#dtgSearch .dx-datagrid-rowsview .dx-row.priority-critical {
    background-color: #B47EFF !important;
    color: white !important;
}

#dtgSearch .dx-datagrid-rowsview .dx-row.priority-moderate {
    background-color: #FFC300 !important;
}

/* SN Number override */
#dtgSearch .dx-datagrid-rowsview .dx-row.has-sn {
    background-color: #fffbf0 !important;
    border-left: 4px solid #E5BE01 !important;
}

/* Fix for DevExtreme's default alternating row colors */
#dtgSearch .dx-datagrid-rowsview .dx-row.dx-row-alt {
    background-color: inherit !important;
}

/* ============================================
   SEARCH POPUP CLOSE BUTTON STYLES
   ============================================ */

/* Close button in header */
.search-close-button {
    position: absolute;
    right: 30px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

    .search-close-button:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

/* Close button in results header */
.search-results-header .btn-outline-secondary {
    margin-left: auto;
    border-color: #e3e6f0;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .search-results-header .btn-outline-secondary:hover {
        border-color: #ff9000;
        color: #ff9000;
        background: white;
    }

.input-group-sm > .custom-select, .input-group-sm > .form-control:not(textarea) {
    height: calc(2.8125rem + 2px) !important;
}



/* Option 2: Different positioning for each state */

/* ============================================
   FIX ARROW POSITIONING - SPECIFIC SELECTORS
   ============================================ */

/* Normal expanded state - fix */
.nav-sidebar .nav-link > .right,
.nav-sidebar .nav-link > p > .right {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin-left: 0 !important;
    left: auto !important;
}

/* When sidebar is collapsed and NOT hovered - hide arrows */
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-link > .right,
.sidebar-mini.sidebar-collapse .nav-sidebar .nav-link > p > .right {
    display: none !important;
}

/* When sidebar is collapsed AND hovered - show arrows in correct position */
.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar > .nav-item > .nav-link > .right,
.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar > .nav-item > .nav-link > p > .right {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-left: 0 !important;
    left: auto !important;
}

/* IMPORTANT: Fix the order of elements within the nav-link */
.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar > .nav-item > .nav-link {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

    /* Make sure the icon and text are properly aligned */
    .sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar > .nav-item > .nav-link > i {
        order: 1 !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar > .nav-item > .nav-link > p {
        order: 3 !important;
        flex: 1 !important;
        margin: 0 !important;
        padding-right: 20px !important; /* Make space for arrow */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar > .nav-item > .nav-link > .right {
        order: 3 !important;
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-left: 0 !important;
    }

/* Fix for menu-open arrow rotation */
.nav-sidebar .nav-item.menu-open > .nav-link > .right i,
.nav-sidebar .nav-item.menu-open > .nav-link > p > .right i {
    transform: rotate(-90deg) !important;
}

.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar .nav-item.menu-open > .nav-link > .right i,
.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar .nav-item.menu-open > .nav-link > p > .right i {
    transform: translateY(-50%) rotate(-90deg) !important;
}

.sidebar-mini.sidebar-collapse.layout-navbar-fixed.layout-fixed .wrapper .sidebar {
    margin-top: calc(5rem + 1px);
}

.layout-navbar-fixed.sidebar-mini.sidebar-collapse .wrapper .brand-link {
    height: calc(5.5rem + 1px);
    width: 4.6rem;
}

.sidebar-mini.sidebar-collapse .brand-text {
    display: none !important;
}

#searchResultsTable thead th {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 8px;
}

    #searchResultsTable tbody tr {
        transition: all 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
    }

        #searchResultsTable tbody tr:hover {
            background: #f8f9fa !important;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

    #searchResultsTable tbody td {
        padding: 12px 8px;
        vertical-align: middle;
    }

    /* Priority row colors for table */
    #searchResultsTable tbody tr.priority-planning {
        background-color: #6db6f0 !important;
        color: white !important;
    }

    #searchResultsTable tbody tr.priority-low {
        background-color: #00cc00 !important;
        color: white !important;
    }

    #searchResultsTable tbody tr.priority-high {
        background-color: #f17b7b !important;
        color: white !important;
    }

    #searchResultsTable tbody tr.priority-critical {
        background-color: #B47EFF !important;
        color: white !important;
    }

/* Badge styles */
.badge {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
}

/* Button styles */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

.search-grid-container {
    max-height: 85vh;
    overflow-y: auto;
}

    /* Custom scrollbar for table container */
    .search-grid-container::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    .search-grid-container::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }

    .search-grid-container::-webkit-scrollbar-thumb {
        background: #ff9000;
        border-radius: 4px;
    }

        .search-grid-container::-webkit-scrollbar-thumb:hover {
            background: #e67e00;
        }

/* Modal adjustments */
.modal-xl {
    max-width: 1400px;
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 3px solid #ff9000;
}

.modal-body {
    padding: 0;
}

.modal-title {
    color: white;
}

.card.custom-card {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
    border: none;
    border-radius: 1.25rem;
    background: #fff;
    transform:none !important;
}

.card-header.custom-card-header {
    background: var(--secondary-gradient);
    color: white;
    border-bottom: 3px solid #ff9000;
    padding: 0.75rem 1.25rem;
    border-radius: 1.25rem 1.25rem 0 0;
    min-height: 50px;
}

.modern-layout .card-footer {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0 !important;
}

.card-footer.custom-card-footer {
    background: var(--secondary-gradient);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0 0 !important;
}

.custom-card-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    color: white !important;
}

    .custom-card-title i {
        margin-right: 0.5rem;
    }

.card-body.custom-card-body {
    padding: 1.25rem;
}

.card-tools .btn.btn-fixed {
    min-width: 120px;
    width: 155px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn.btn-app-primary {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn.btn-app-primary:hover {
        background-color: #1976D2;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    }

    /* Active / Focus */
    .btn.btn-app-primary:focus,
    .btn.btn-app-primary:active,
    .btn.btn-app-primary:focus-visible {
        background-color: #1976D2;
        color: #fff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.4);
    }

        /* Icon stays white */
        .btn.btn-app-primary:hover i,
        .btn.btn-app-primary:focus i,
        .btn.btn-app-primary:active i {
            color: #fff;
        }

.btn.btn-app-warning {
    background-color: #FF9800;
    border-color: #FF9800;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn.btn-app-warning:hover {
        background-color: #F57C00;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    }

    /* Active / Focus */
    .btn.btn-app-warning:focus,
    .btn.btn-app-warning:active,
    .btn.btn-app-warning:focus-visible {
        background-color: #F57C00;
        color: #fff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.4);
    }

        /* Icon stays white */
        .btn.btn-app-warning:hover i,
        .btn.btn-app-warning:focus i,
        .btn.btn-app-warning:active i {
            color: #fff;
        }

.btn.btn-app-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn.btn-app-secondary:hover {
        background-color: #5a6268;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    }

    /* Active / Focus */
    .btn.btn-app-secondary:focus,
    .btn.btn-app-secondary:active,
    .btn.btn-app-secondary:focus-visible {
        background-color: #5a6268;
        color: #fff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.4);
    }

        .btn.btn-app-secondary:hover i,
        .btn.btn-app-secondary:focus i,
        .btn.btn-app-secondary:active i {
            color: #fff;
        }

.btn.btn-app-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn.btn-app-danger:hover {
        background-color: #c82333;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }

    /* Active / Focus */
    .btn.btn-app-danger:focus,
    .btn.btn-app-danger:active,
    .btn.btn-app-danger:focus-visible {
        background-color: #c82333;
        color: #fff;
        outline: none;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.4);
    }

        .btn.btn-app-danger:hover i,
        .btn.btn-app-danger:focus i,
        .btn.btn-app-danger:active i {
            color: #fff;
        }

.btn.btn-app-info {
    background-color: #17a2b8;
    border-color: #2196F3;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn.btn-app-info:hover {
        background-color: #138496;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
    }

    /* Focus + Active + Focus-visible */
    .btn.btn-app-info:focus,
    .btn.btn-app-info:active,
    .btn.btn-app-info:focus-visible {
        background-color: #138496;
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.4);
        outline: none;
    }

        /* Icon stays white always */
        .btn.btn-app-info:hover i,
        .btn.btn-app-info:focus i,
        .btn.btn-app-info:active i {
            color: #fff;
        }

    .profile-tabs-wrapper {
        margin-top: 1rem;
    }

.profile-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

#ppSetPassword .dx-popup-title {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    color: #ffffff;
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 1.1rem;
}

#ppSetPassword .dx-popup-content {
    padding: 1.5rem;
}

#ppSetPassword .dx-toolbar {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    border-top: 1px solid #dee2e6;
}

.password-requirements {
    background-color: #fff3e0;
    border-left: 3px solid #FF9800;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

.alert-background {
    background-color: #ff9999;
    border-left: 3px solid #FF9800;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-top: 1rem;
}

    .password-requirements small {
        color: #e65100;
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.875rem;
        line-height: 1.5;
    }

.notifications-panel,
.secret-question-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 1.25rem;
}

.section-header h4 {
    color: #37474F;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .section-header h4 i {
        color: #FF9800;
    }

.section-header p {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.secret-question-actions {
    text-align: right;
    margin-top: 1rem;
}

.tab-section-actions {
    text-align: right;
    margin-top: 1rem;
}

.dx-tabpanel .dx-tab.dx-tab-selected {
    color: #FF9800;
    border-bottom: 3px solid #FF9800;
}

.dx-texteditor.dx-state-focused {
    border-color: #FF9800;
    box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.25);
}

.dx-checkbox-checked .dx-checkbox-icon {
    background-color: #FF9800;
    border-color: #FF9800;
}

.dx-button.dx-button-success {
    background-color: #FF9800;
    border-color: #FF9800;
}

    .dx-button.dx-button-success:hover {
        background-color: #F57C00;
        border-color: #F57C00;
    }

/* Focus border color for ALL input elements */
.dx-texteditor.dx-state-focused,
.dx-selectbox.dx-state-focused,
.dx-datebox.dx-state-focused,
.dx-texteditor.dx-state-focused .dx-texteditor-container,
.dx-selectbox.dx-state-focused .dx-texteditor-container,
.dx-datebox.dx-state-focused .dx-texteditor-container {
    border-color: #ff9000 !important;
    box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.15) !important;
}

/* For textbox specifically */
.dx-textbox.dx-state-focused {
    border-color: #ff9000 !important;
}

/* For selectbox specifically */
.dx-selectbox.dx-state-focused {
    border-color: #ff9000 !important;
}

/* For datebox specifically */
.dx-datebox.dx-state-focused {
    border-color: #ff9000 !important;
}

/* Active state for better visual feedback */
.dx-texteditor.dx-state-active {
    border-color: #ff9000 !important;
}

/* Hover state that leads to focus */
.dx-texteditor:hover,
.dx-selectbox:hover,
.dx-datebox:hover {
    border-color: #ffb74d !important;
}

/* Dropdown icon hover color */
.dx-dropdowneditor-icon:hover {
    background-color: #FF9800 !important;
}

    /* Dropdown icon hover color with black icon */
    .dx-dropdowneditor-icon:hover:before {
        color: white !important;
    }

/* Dropdown icon active state */
.dx-dropdowneditor-active .dx-dropdowneditor-icon {
    background-color: #FF9800 !important;
}

    .dx-dropdowneditor-active .dx-dropdowneditor-icon:before {
        color: white !important;
    }

/* Make all input text bold */
.dx-texteditor-input,
.dx-texteditor-input::placeholder {
    font-weight: bold !important;
    color: #6a6873;
}


/* For datebox input */
.dx-datebox .dx-texteditor-input {
    font-weight: bold !important;
    color: #6a6873 !important;
}

.dx-dropdownlist-popup-wrapper .dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item-content {
    padding: 7px 9px;
    font-weight: bold !important;
}

.dx-dropdownlist-popup-wrapper .dx-empty-message:last-of-type, .dx-dropdownlist-popup-wrapper .dx-list-item:last-of-type {
    border-bottom: none;
    font-weight: bold !important;
    color: #6a6873;
}

/* Dropdown selected item text color */
.dx-list-item-selected {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Ensure selected item is visible */
.dx-list-item.dx-list-item-selected {
    background-color: #e0e0e0 !important;
    color: #000000 !important;
}


.dx-list-item-selected .dx-list-item-content {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Change selected dropdown item background to orange */
.dx-list-item.dx-list-item-selected {
    background-color: #FF9800 !important;
    color: white !important;
}

    /* For hover state on selected item */
    .dx-list-item.dx-list-item-selected:hover {
        background-color: #F57C00 !important;
        color: white !important;
    }

/* Selected item text styling */
.dx-list-item-selected .dx-list-item-content {
    color: white !important;
    font-weight: bold !important;
}

/* Target the exact class when selecting */
.dx-item.dx-list-item.dx-state-active {
    background-color: #FF9800 !important;
    background: #FF9800 !important;
    color: #000000 !important;
}

/* Also target when it becomes selected */
.dx-item.dx-list-item.dx-state-selected,
.dx-item.dx-list-item.dx-list-item-selected {
    background-color: #FF9800 !important;
    background: #FF9800 !important;
    color: #000000 !important;
}

/* Remove any blue from active state */
.dx-state-active {
    background-color: #FF9800 !important;
    color: #000000 !important;
}

/* Fix: Only apply orange when item is selected, not when dropdown opens */
.dx-dropdowneditor.dx-state-active,
.dx-dropdowneditor.dx-state-focused,
.dx-dropdowneditor.dx-dropdowneditor-active {
    background-color: transparent !important;
    border-color: #ff9000 !important;
}

/* Ensure dropdown button doesn't turn orange */
.dx-dropdowneditor-icon.dx-state-active,
.dx-dropdowneditor-icon.dx-state-focused {
    background-color: transparent !important;
}

/* Only apply orange to the selected ITEM, not the dropdown editor */
.dx-texteditor.dx-state-active,
.dx-texteditor.dx-state-focused {
    background-color: transparent !important;
    border-color: #ff9000 !important;
}

/* Specific fix: dropdown editor should not have orange background */
.dx-dropdowneditor.dx-state-active .dx-texteditor-container,
.dx-dropdowneditor.dx-state-focused .dx-texteditor-container {
    background-color: transparent !important;
}

/* Calendar/DatePicker Styling */
.dx-calendar-cell.dx-calendar-selected-date {
    background-color: #FF9800 !important;
    color: #000000 !important;
    border-radius: 50% !important;
}

    .dx-calendar-cell.dx-calendar-selected-date.dx-state-hover {
        background-color: #F57C00 !important;
        color: #000000 !important;
    }

/* Today's date */
.dx-calendar-cell.dx-calendar-today {
    color: #FF9800 !important;
    font-weight: bold !important;
}

    .dx-calendar-cell.dx-calendar-today:not(.dx-calendar-selected-date) {
        border: 0 !important;
        border-radius: 50% !important;
    }

/* Hover state */
.dx-calendar-cell.dx-state-hover:not(.dx-calendar-selected-date) {
    background-color: #fff3e0 !important;
    border-radius: 50% !important;
}

/* Calendar header */
.dx-calendar-header {
    background-color: #FF9800 !important;
    color: #ffffff !important;
}

.dx-calendar-caption-button {
    color: #a95b20 !important;
    font-weight: bold !important;
}

    .dx-calendar-caption-button:hover {
        background-color: #FF9800 !important;
        color: white !important;
    }

.dx-button-mode-outlined .dx-icon {
    color: #a95b20 !important;
    font-weight: bold !important;
}

.dx-button-content:hover {
    background-color: #FF9800 !important;
    color: white !important;
}

.dx-button-mode-outlined .dx-icon:hover {
    color: white !important;
}

/* Fix icon color on hover */
.dx-button-mode-outlined:hover .dx-icon {
    color: white !important;
}

/* Make sure the button content hover affects the icon too */
.dx-button.dx-state-hover .dx-icon,
.dx-button.dx-state-focused .dx-icon,
.dx-button:hover .dx-icon {
    color: white !important;
}

/* Alternative: Target specifically the calendar navigation button */
.dx-calendar-navigation-button:hover .dx-icon {
    color: white !important;
}

.dx-calendar-navigation-button.dx-state-hover .dx-icon {
    color: white !important;
}

/* For all DevExpress buttons */
.dx-button.dx-state-hover .dx-button-content .dx-icon,
.dx-button:hover .dx-button-content .dx-icon {
    color: white !important;
}

/* Target the span inside calendar cell on hover */
.dx-calendar-cell.dx-state-hover span,
.dx-calendar-cell:hover span {
    background-color: #FF9800 !important;
    color: white !important;
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 50% !important;
}

/* Make the span cover the entire cell */
.dx-calendar-cell {
    position: relative;
}

    .dx-calendar-cell span {
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        text-align: center !important;
    }

    /* Hover effect on the span */
    .dx-calendar-cell.dx-state-hover span {
        background-color: #FF9800 !important;
        color: white !important;
    }

    .dx-calendar-cell.dx-calendar-selected-date span {
        color: white !important;
        background-color: #FF9800 !important;
        box-shadow: none !important;
    }

    .dx-calendar-cell.dx-calendar-today span {
        border: 0 !important;
        color: white !important;
        background-color: #FF9800 !important;
    }

    .dx-calendar-cell.dx-calendar-contoured-date span {
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
    }

.dx-tabpanel > .dx-tabpanel-tabs .dx-tab .dx-tab-content {
    color: #1e0ca0;
    font-size: 15px;
    font-weight: bold;
}

.dx-tab.dx-tab-selected .dx-icon, .dx-tab.dx-tab-selected .dx-tab-text {
    color: #1e0ca0 !important;
}

dx-item dx-tab dx-state-hover:hover {
    background-color: #FF9800 !important;
    color: white !important;
}

/* Tab styling for specific tabs - Notifications and Recovery Question */
.dx-tab {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

    /* Style specific tabs - Notifications and Recovery Question */
    .dx-tab[title="Notifications"],
    .dx-tab[title="Recovery Question"] {
        background-color: #FF9800 !important;
        color: white !important;
        border: 1px solid #F57C00 !important;
    }

        /* Style the text and icon inside these specific tabs */
        .dx-tab[title="Notifications"] .dx-tab-content,
        .dx-tab[title="Recovery Question"] .dx-tab-content,
        .dx-tab[title="Notifications"] .dx-tab-text,
        .dx-tab[title="Recovery Question"] .dx-tab-text,
        .dx-tab[title="Notifications"] .dx-icon,
        .dx-tab[title="Recovery Question"] .dx-icon {
            color: white !important;
        }

        /* Selected state for these tabs */
        .dx-tab[title="Notifications"].dx-tab-selected,
        .dx-tab[title="Recovery Question"].dx-tab-selected {
            background-color: #F57C00 !important;
            border-bottom: 3px solid #ffffff !important;
        }

    /* Hover effect for ALL tabs */
    .dx-tab.dx-state-hover,
    .dx-tab:hover {
        background-color: #FF9800 !important;
        color: white !important;
        transform: translateY(-2px);
        box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    }

        /* Hover effect for text and icon in ALL tabs */
        .dx-tab.dx-state-hover .dx-tab-content,
        .dx-tab:hover .dx-tab-content,
        .dx-tab.dx-state-hover .dx-tab-text,
        .dx-tab:hover .dx-tab-text,
        .dx-tab.dx-state-hover .dx-icon,
        .dx-tab:hover .dx-icon {
            color: white !important;
        }

    /* Specific hover for Notifications and Recovery Question tabs */
    .dx-tab[title="Notifications"]:hover,
    .dx-tab[title="Recovery Question"]:hover {
        background-color: #F57C00 !important;
    }

/* Ensure the tab panel container has proper styling */
.dx-tabpanel-tabs {
    border-bottom: 1px solid #dee2e6;
    background-color: transparent;
}

/* Style the tab content area */
.dx-multiview-wrapper {
    border: 1px solid #dee2e6;
    border-top: none;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* Style for tab icons if they exist */
.dx-tab .dx-icon {
    color: #1e0ca0;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

/* Optional: Add some animation for tab transitions */
.dx-tabpanel .dx-tabs-wrapper .dx-tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix for tab spacing and alignment */
.dx-tabpanel > .dx-tabpanel-tabs .dx-tab {
    margin-right: 2px;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 0.5rem 1rem;
}

/* Active tab styling */
.dx-tab.dx-tab-selected {
    background-color: #ffffff !important;
    color: #1e0ca0 !important;
    border-bottom: 3px solid #FF9800 !important;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

    /* Active tab text color */
    .dx-tab.dx-tab-selected .dx-tab-text,
    .dx-tab.dx-tab-selected .dx-icon {
        color: #a04b0c !important
    }

.dx-tabpanel .dx-multiview-wrapper.dx-state-focused {
    border-color: #FF9800 !important;
}


/* This should solve it - targets exactly the element in your console log */
.dx-tabs.dx-state-focused {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Also remove the default border */
.dx-tabs {
    border: 1px solid transparent !important;
}

.dx-checkbox-checked .dx-checkbox-icon {
    font: 16px / 1em DXIcons;
    color: #edeef0;
    text-align: center;
}


.dx-popup-title.dx-toolbar {
    padding: 6px 20px;
    overflow: visible;
    background-color: #1a3a4d;
    color: white;
    font-size: 5px;
    font-weight: bold;
}

.dx-button-mode-text .dx-icon {
    color: #f5eeee;
}

.dx-checkbox-text {
    text-align: left;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: normal;
    padding-left: 5px;
    color: #333;
    font-weight: bold;
}


.dx-show-clear-button .dx-icon-clear {
    color: #de6a14 !important;
}


/* DevExpress DataGrid styling to match theme */
.dx-datagrid {
    font-family: inherit !important;
    font-weight: 600 !important;
}

.dx-datagrid-headers {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-weight: 700 !important;
    font-size: 12px;
}

    .dx-datagrid-headers .dx-datagrid-text-content {
        text-transform: uppercase !important; /* REQUIRED */
    }

.dx-datagrid-rowsview {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-weight: 600 !important;
}

.dx-datagrid-row {
    border-bottom: 1px solid var(--border-color) !important;
}

    .dx-datagrid-row:hover {
        background: rgba(44, 138, 153, 0.1) !important;
    }


.dx-placeholder {
    color: #6a6873 !important;
    font-weight: bold;
}

.dx-datagrid-pager {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-top: 1px solid var(--border-color) !important;
}

.dx-pager-page, .dx-pager-pages .dx-pages .dx-page {
    color: var(--text-primary) !important;
}

    .dx-pager-page.dx-selection {
        background: var(--accent-teal) !important;
        color: white !important;
    }

/* Column header styling - Gold for data columns, default for command column */
.dx-datagrid-headers .dx-datagrid-table .dx-header-row > td:not(.dx-command-edit) {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%) !important;
    color: white !important;
    border-bottom: none !important;
}

/* Action buttons styling */
.dx-datagrid .dx-command-edit .dx-link {
    display: inline-block !important;
    float: none !important;
    margin: 0 2px !important;
    font-weight: 600 !important;
}

.dx-datagrid .dx-command-edit {
    white-space: nowrap !important;
}

.dx-datagrid .btn {
    font-weight: 600 !important;
}

/* Badge styling */
.dx-datagrid .badge {
    font-weight: 700 !important;
    font-size: 0.85em !important;
}

.dx-datagrid-content .dx-datagrid-table .dx-row > td, .dx-datagrid-content .dx-datagrid-table .dx-row > tr > td {
    vertical-align: middle;
}

.dx-datagrid .dx-column-lines > td {
    border-left: 1px solid #bebbbb;
    border-right: 1px solid #bebbbb;
    border-bottom: 1px solid #bebbbb;
}

.dx-datagrid .dx-row > td, .dx-datagrid .dx-row > tr > td {
    padding: 5px;
}

.dx-datagrid .dx-datagrid-headers .dx-header-filter, .dx-datagrid .dx-datagrid-headers .dx-header-row > td {
    outline: 0;
    color: white;
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%) !important;
}



.dx-searchbox .dx-icon-search::before {
    color: orange !important;
}

.dx-show-clear-button .dx-icon-clear:hover {
    color: white !important;
    background-color: orange !important;
}

.dx-filter-menu.dx-menu .dx-menu-item .dx-menu-item-content:hover {
    color: white !important;
    background-color: orange !important;
}

.dx-menu-base .dx-menu-item .dx-menu-item-content .dx-menu-item-text {
    color: #8d3d0c !important;
}

/* Change ALL filter icons in the menu to blue */
.dx-menu-item-wrapper .dx-icon {
    color: #8d3d0c !important;
}

/* Or be more specific */
.dx-menu-item-content .dx-icon {
    color: #8d3d0c !important;
}

/* Hover effect for the entire menu item */
.dx-menu-item-wrapper .dx-state-hover,
.dx-menu-item-wrapper .dx-menu-item:hover,
.dx-menu-item-wrapper .dx-menu-item.dx-state-hover {
    background-color: #ff9800 !important; /* Orange background */
    color: #ffffff !important; /* White text */
}

    /* Make the icon white on hover */
    .dx-menu-item-wrapper .dx-state-hover .dx-icon,
    .dx-menu-item-wrapper .dx-menu-item:hover .dx-icon,
    .dx-menu-item-wrapper .dx-menu-item.dx-state-hover .dx-icon {
        color: #ffffff !important; /* White icon */
    }

    /* Also change the text color to white on hover */
    .dx-menu-item-wrapper .dx-state-hover .dx-menu-item-text,
    .dx-menu-item-wrapper .dx-menu-item:hover .dx-menu-item-text,
    .dx-menu-item-wrapper .dx-menu-item.dx-state-hover .dx-menu-item-text {
        color: #ffffff !important; /* White text */
    }

/* Optional: Add smooth transition */
.dx-menu-item-wrapper .dx-menu-item {
    transition: all 0.2s ease-in-out !important;
}

.dx-pager .dx-page-sizes .dx-page-size {
    min-width: 36px !important;
    height: 36px !important;
    border: 1px solid #e3e6f0 !important;
    background: white !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
    text-align: center !important;
}

    .dx-pager .dx-page-sizes .dx-page-size:hover {
        border-color: #ff9000 !important;
        color: #ff9000 !important;
        background: rgba(255, 144, 0, 0.05) !important;
    }

.dx-pager .dx-pages .dx-page {
    min-width: 36px !important;
    height: 36px !important;
    border: 1px solid #e3e6f0 !important;
    background: white !important;
    color: #6c757d !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
    text-align: center !important;
}

    .dx-pager .dx-pages .dx-page:hover {
        border-color: #ff9000 !important;
        color: #ff9000 !important;
        background: rgba(255, 144, 0, 0.05) !important;
    }

.dx-pager .dx-page-sizes .dx-selection, .dx-pager .dx-pages .dx-selection {
    /*    background-color: orange;
    color: white;  .dx-pager .dx-page-sizes .dx-selection, 
    font-weight: bold;*/
    min-width: 36px !important;
    height: 36px !important;
    border: 1px solid #ff9000 !important;
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
    color: white !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    transition: all 0.3s ease !important;
    margin: 0 3px !important;
    text-align: center !important;
}

    .dx-pager .dx-pages .dx-selection:hover {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
    }

    .dx-pager .dx-page-sizes .dx-selection:hover {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
    }

.dx-page:hover {
    border-color: #ff9000 !important;
    color: #ff9000 !important;
    background: rgba(255, 144, 0, 0.05) !important;
}

    .dx-pager .dx-pages .dx-selection:hover {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
    }

    .dx-pager .dx-page-sizes .dx-selection:hover {
        background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
        border-color: #ff9000 !important;
        color: white !important;
    }

.dx-page:hover {
    border-color: #ff9000 !important;
    color: #ff9000 !important;
    background: rgba(255, 144, 0, 0.05) !important;
}

.dx-list .dx-empty-message, .dx-list-item-content {
    padding: 10px;
    color: #6a6873 !important;
    font-weight: bold;
}

.dx-list-select-all-label {
    color: #333 !important;
    font-weight: bold;
}

.dx-checkbox-icon {
    border: 1px solid #263bc2;
}

.dx-list .dx-empty-message, .dx-list-item-content:hover {
    background-color: orange !important;
    color: white !important;
}

.dx-list .dx-empty-message, .dx-list-item:hover {
    background-color: orange !important;
    color: white !important;
}

.dx-datagrid-nodata {
    color: #c71b1b;
    font-size: 17px;
    font-weight: bold;
}

/*.dx-datagrid-rowsview .dx-row {
    background-color: #17062d !important;
    color: white !important;
}*/



/* Target the specific grid by its container */
/*.custom-grouped-grid-container .dx-datagrid-rowsview .dx-row {
    background-color: #17062d !important;
    color: white !important;
}*/

/* Alternative simpler targeting */
.custom-grouped-grid-container .dx-master-detail-row .dx-datagrid .dx-datagrid-rowsview .dx-row {
    background-color: white !important;
    color: black !important;
}

    .custom-grouped-grid-container .dx-master-detail-row .dx-datagrid .dx-datagrid-rowsview .dx-row > td {
        background-color: white !important;
        color: black !important;
    }

/* Make sure to exclude the parent row from this styling */
.custom-grouped-grid-container > .dx-datagrid .dx-datagrid-rowsview .dx-row {
    background-color: #17062d !important;
    color: white !important;
}

.dx-datagrid-content .dx-datagrid-table [class*=column] + [class*=column]:last-child {
    background-color: white !important;
}

.custom-grouped-grid-container .dx-datagrid-rowsview .dx-row:hover {
    background-color: orange !important;
    color:white !important;
}

.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td, .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > tr > td, .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):hover > td, .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused):hover > tr > td {
    background-color: #3b374c !important;
    color: white !important;
}

.container, .container-fluid, .container-lg, .container-md, .container-sm, .container-xl {
    padding-bottom: 7.5px;
}


/* ============================================
   FIX ARROW ROTATION ON MENU EXPAND
   ============================================ */

/* Reset the transform on expanded menus to allow rotation */
.nav-sidebar .nav-item.menu-open > .nav-link > .right,
.nav-sidebar .nav-item.menu-open > .nav-link > p > .right {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    /* Remove the translateY and only apply rotation */
    transform: translateY(-50%) rotate(-90deg) !important;
    margin-left: 0 !important;
    left: auto !important;
}

/* Normal state (closed menu) */
.nav-sidebar .nav-item > .nav-link > .right,
.nav-sidebar .nav-item > .nav-link > p > .right {
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(0deg) !important;
    margin-left: 0 !important;
    left: auto !important;
    transition: transform 0.3s ease !important;
}

/* Add smooth transition for the rotation */
.nav-sidebar .nav-link > .right {
    transition: transform 0.3s ease !important;
}

/* For collapsed sidebar with hover */
.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar .nav-item.menu-open > .nav-link > .right,
.sidebar-mini.sidebar-collapse .sidebar:hover .nav-sidebar .nav-item.menu-open > .nav-link > p > .right {
    transform: translateY(-50%) rotate(-90deg) !important;
}

/* Business Rules New Button */
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    transition: all 0.2s ease-in-out !important;
    font-weight: bold;
}

    .btn-outline-light:hover {
        background: orange !important;
        border-color: white !important;
        color: white !important;
    }


/* Disable forced scrolling inside popup */
.dx-popup-content.dx-popup-content-scrollable {
    height: auto !important;
    overflow: visible !important;
}

/* Remove internal dx-scrollable */
.dx-popup-content .dx-scrollable {
    overflow: visible !important;
}

.dx-treeview-select-all-item .dx-checkbox-text {
    color: #333 !important;
    font-weight: bold;
}

.dx-treeview-item-with-checkbox .dx-treeview-item {
    color: #333;
    padding-left: 36px;
    color: #6a6873 !important;
    font-weight: bold;
}

    .dx-treeview-item-with-checkbox .dx-treeview-item:hover {
        background-color: orange !important;
        color: white !important;
    }

    .dx-treeview-item-with-checkbox .dx-treeview-item:checked {
        background-color: orange !important;
        color: white !important;
    }

/* ============================================
   BUSINESS RULES BUTTON HOVER EFFECTS
   ============================================ */
/*.profile-card-tools .btn {
    min-width: 120px;*/ /* Adjust this value as needed */
    /*width: 140px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}*/

/* Cancel Button - Red hover effect */
.btn-outline-light.btn-cancel:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border-color: #dc3545 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* Save Button - Green hover effect */
.btn-outline-light.btn-save:hover {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border-color: #28a745 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

/* Button transition for smooth effect */
.btn-outline-light {
    transition: all 0.3s ease !important;
}

    /* Optional: Add icons color change on hover */
    .btn-outline-light.btn-cancel:hover i {
        color: white !important;
    }

    .btn-outline-light.btn-save:hover i {
        color: white !important;
    }

.dx-checkbox.dx-state-readonly .dx-checkbox-icon {
    border-color: #FF9800;
    background-color: #FF9800;
}

/* ============================================
   BUSINESS RULES MODERN TEMPLATES - COMPATIBLE WITH EXISTING JS
   ============================================ */

/* Main containers matching your project theme */
.card.app-section {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transform:none !important;
}

.card-header.app-section-header {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    border-bottom: 3px solid #ff9000;
}

.app-section-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

/* Checkbox grid styling - works with your existing structure */
.methods-checkbox-container {
    margin: 1rem 0;
}


.checkbox-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.75rem;
    font-size: 0.95rem;
    flex: 1;
}

/* Rules section styling */
.rules-section {
    background: white;
    border: 1px solid #e3e6f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-top: 1rem;
}

.rules-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e3e6f0;
}

    .rules-section-title h6 {
        margin: 0;
        color: #1a3a4d;
        font-weight: 600;
        font-size: 1rem;
        display: flex;
        align-items: center;
    }

        .rules-section-title h6 i {
            color: #ff9000;
            margin-right: 0.5rem;
        }

/* Add button styling */
.btn-add-rule {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.2);
}

    .btn-add-rule:hover {
        background: linear-gradient(135deg, #218838 0%, #1e9e8a 100%);
        transform: translateY(-2px);
        box-shadow: 0 5px 12px rgba(40, 167, 69, 0.3);
        color: white;
    }

    .btn-add-rule:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
        opacity: 0.6;
        display: none;
    }

        .btn-add-rule:disabled:hover {
            background: #6c757d;
            transform: none;
            box-shadow: none;
        }

/* Grid header styling */
.rules-grid-header {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

    .rules-grid-header .row > div {
        display: flex;
        align-items: center;
    }

    .rules-grid-header label {
        font-weight: 600;
        color: #1a3a4d;
        margin: 0;
    }

/* Rules container */
.rules-container {
    min-height: 60px;
}

/* Empty state */
.empty-state {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    font-style: italic;
    margin-bottom: 1rem;
}

    .empty-state i {
        font-size: 1.5rem;
        color: #adb5bd;
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        margin-bottom: 0.25rem;
    }

    .empty-state small {
        font-size: 0.85rem;
        color: #868e96;
    }

/* Row styling - compatible with your existing JavaScript */
.js-ConditionsRow,
.js-ActionsRow {
    background: #fafbfe;
    border: 1px solid #e3e6f0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

    .js-ConditionsRow:hover,
    .js-ActionsRow:hover {
        background: white;
        border-color: #ff9000;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    }

/* Button styling inside rows */
.js-btnDelete {
    background: transparent;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 40px;
}

    .js-btnDelete:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(220, 53, 69, 0.2);
    }

/* Clause buttons styling */
.js-ConditionClause {
    display: flex;
    gap: 0.5rem;
}

.js-btnAnd,
.js-btnOr {
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
    min-width: 70px;
    justify-content: center;
    height: 34px !important;
}

.js-btnAnd {
    background: #0d6efd;
    border: 1px solid #0d6efd;
    color: white;
}

    .js-btnAnd:hover {
        background: #0b5ed7;
        border-color: #0b5ed7;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(13, 110, 253, 0.2);
    }

.js-btnOr {
    background: #6c757d;
    border: 1px solid #6c757d;
    color: white;
}

    .js-btnOr:hover {
        background: #5c636a;
        border-color: #5c636a;
        transform: translateY(-2px);
        box-shadow: 0 3px 8px rgba(108, 117, 125, 0.2);
    }

/* Operator badge styling */
.badge-operator {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.badge-warning {
    background: #ffc107;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
    border: 2px solid #ffd54f;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}


.badge-success {
    background: #198754;
    color: white;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
    border: 2px solid #20c997;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.badge-secondary {
    background: #6c757d;
    color: white;
}

/* Form controls styling */
.rules-selectbox .dx-texteditor-input,
.rules-selectbox .dx-placeholder {
    font-weight: 600 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .checkbox-card-grid {
        grid-template-columns: 1fr;
    }

    .business-rules-container {
        padding: 1rem;
    }

    .business-rules-header {
        padding: 0.75rem 1rem;
        margin: -1rem -1rem 1rem -1rem;
    }

    .js-ConditionsRow,
    .js-ActionsRow {
        padding: 0.75rem;
    }

    .rules-section {
        padding: 1rem;
    }

    .rules-section-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Ensure your existing DevExtreme controls still work */
.js-ConditionParameter .dx-selectbox,
.js-ConditionOperator .dx-selectbox,
.js-ConditionValue .dx-selectbox,
.js-ActionParameter .dx-selectbox,
.js-ActionOperator .dx-selectbox,
.js-ActionValue .dx-selectbox {
    width: 100% !important;
}

/* Fix for DevExtreme selectbox border */
.rules-selectbox .dx-texteditor.dx-state-focused {
    border-color: #ff9000 !important;
    box-shadow: 0 0 0 3px rgba(255, 144, 0, 0.15) !important;
}

/* ============================================
   BUSINESS RULES - CONTAINER RIGHT ALIGNED
   ============================================ */

.methods-checkbox-container {
    display: flex;
    justify-content: flex-end; /* Align entire container to right */
    margin: 1rem 0;
}

.checkbox-card-grid {
    display: block;
    max-width: 200px;
}

.checkbox-card {
    background: white;
    border: 2px solid #e3e6f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-height: 48px;
    /*margin-bottom: 0.5rem;*/
}

.checkbox-label {
    font-weight: 500;
    color: #495057;
    margin-left: 0.75rem;
    font-size: 0.95rem;
    flex: 1;
}

.checkbox-card:hover {
    border-color: #ff9000;
    background: rgba(255, 144, 0, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 144, 0, 0.1);
}

.checkbox-card .dx-checkbox-checked .dx-checkbox-icon {
    background-color: #ff9000 !important;
    border-color: #ff9000 !important;
}

/* Remove orange border from dx-multiview-wrapper */
.dx-tabpanel .dx-multiview-wrapper {
    border: 1px solid #dee2e6 !important; /* Change to neutral color */
    border-top: none !important;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 0 0 0.5rem 0.5rem;
}

    /* Remove the orange focus border completely */
    .dx-tabpanel .dx-multiview-wrapper.dx-state-focused {
        border-color: #dee2e6 !important; /* Neutral color instead of orange */
        box-shadow: none !important;
        outline: none !important;
    }

    /* Alternative: Remove border entirely on focus */
    .dx-tabpanel .dx-multiview-wrapper.dx-state-focused,
    .dx-tabpanel .dx-multiview-wrapper:focus {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
        outline: none !important;
    }

.dx-button-content:hover {
    background-color: #F57C00 !important;
    box-shadow: 0 2px 4px rgba(255,152,0,0.3);
}

.dx-button.dx-button-danger .dx-button-content:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
}

/* Or even more specific */
.dx-button-mode-contained.dx-button-danger .dx-button-content:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3) !important;
}

/* Target button with "Cancel" text */
.dx-button .dx-button-content:has(.dx-button-text:contains("Cancel")):hover {
    background-color: #1a3a4d !important;
    border-color: #1a3a4d !important;
}

/* Alternative if :has() not supported */
.dx-button-text[aria-label*="Cancel"] + .dx-button-content:hover,
.dx-button[aria-label*="Cancel"] .dx-button-content:hover {
    background-color: #1a3a4d !important;
}

/* Target the specific DataGrid rows on hover */
#dtgRequestRecipients .dx-row:hover td {
    background-color: orange !important;
    color: white !important;
}

    /* Optional: To ensure text remains visible when hovering */
    #dtgRequestRecipients .dx-row:hover td * {
        color: white !important;
    }


 /*Target only the main DataGrid rows on hover, excluding master detail rows*/ 
#dtgSetup .dx-data-row:not(.dx-master-detail-row):hover td {
    background-color: orange !important;
    color: white !important;
}

 /*Prevent hover effect on detail grid header*/ 
#dtgSetupDetailsList .dx-header-row:hover td {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%) !important;
    color: white !important;
}

 /*Remove hover effect from master detail container*/
#dtgSetup .dx-master-detail-row:hover td {
    background-color: none !important;
    color: none !important;
}

/* Completely disable hover effect for Setup Details grid */
#dtgSetupDetailsList .dx-datagrid-rowsview .dx-row.dx-data-row.dx-state-hover > td {
    background-color: transparent !important;
    color: inherit !important;
}

/* Also disable hover on the row itself */
#dtgSetupDetailsList .dx-datagrid-rowsview .dx-row.dx-data-row:hover > td {
    background-color: transparent !important;
    color: inherit !important;
}

/* Keep removed-row color on hover */
#dtgSetupDetailsList
.dx-datagrid-rowsview
.dx-row.dx-row-removed.dx-state-hover > td,
#dtgSetupDetailsList
.dx-datagrid-rowsview
.dx-row.dx-row-removed:hover > td {
    background-color: #e58d8d !important;
    color: #efe9e9 !important;
}

 /*Remove hover effect from Delete action column in detail grid*/ 
/*#dtgSetupDetailsList .dx-data-row:hover td.dx-command-edit {
    background-color: transparent !important;
}*/

/*    #dtgSetupDetailsList .dx-data-row:hover td.dx-command-edit * {
        color: white !important;  
    }*/

/* Existing styles for removed row */
.dx-datagrid-rowsview .dx-row-removed > td {
    background-color: #e58d8d !important;
    color: #efe9e9 !important;
}

    .dx-datagrid-rowsview .dx-row-removed > td.dx-command-edit * {
        color: white !important;
    }

#dtgSetupDetailsList .dx-command-edit a {
    min-width: 28px;
    justify-content: center;
}

.btn-primary-new {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(255, 144, 0, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
    .btn-primary-new:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(255, 144, 0, 0.3) !important;
        background: linear-gradient(135deg, #ff6e07 0%, #e55e06 100%) !important;
    }

.btn-info-new {
    background: linear-gradient(135deg, #17a2ff 0%, #0d8ae6 100%) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(23, 162, 255, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

    .btn-info-new:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(23, 162, 255, 0.3) !important;
        background: linear-gradient(135deg, #0d8ae6 0%, #0b74c2 100%) !important;
    }

.btn-danger-new {
    /*background-color: #dc3545 !important;*/
    background: linear-gradient(135deg, #ff0000 0%, #ff0707 100%) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgb(255 0 0 / 20%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}
    .btn-danger-new:hover {
        transform: translateY(-10%);
        background: linear-gradient(135deg, #ff0707 0%, #e50606 100%) !important;
        box-shadow: 0 5px 12px rgb(255 0 0 / 30%) !important;
    }

.btn-success-new {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(40, 167, 69, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

    .btn-success-new:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(40, 167, 69, 0.35) !important;
        background: linear-gradient(135deg, #218838 0%, #1e7e34 100%) !important;
    }

/* Primary CTA button for header */
.btn-add-cta {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 6px 14px;
    /*border-radius: 999px;*/
    box-shadow: 0 3px 8px rgba(255, 152, 0, 0.45);
    transition: all 0.2s ease-in-out;
}

    .btn-add-cta i {
        margin-right: 6px;
    }

    .btn-add-cta:hover {
        background: linear-gradient(135deg, #ffa726, #ffcc80);
        box-shadow: 0 5px 12px rgba(255, 152, 0, 0.6);
        transform: translateY(-1px);
        color: #1a2b3c;
    }

.btn-cancel-cta {
    background: linear-gradient(135deg, #ff0000, #ff4d4d);
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 6px 14px;
    /*border-radius: 999px;*/
    box-shadow: 0 3px 8px rgb(255 0 0 / 45%);
    transition: all 0.2s ease-in-out;
}

    .btn-cancel-cta i {
        margin-right: 6px;
    }

    .btn-cancel-cta:hover {
        background: linear-gradient(135deg, #ff2626, #ff8080);
        box-shadow: 0 5px 12px rgb(255 0 0 / 60%);
        transform: translateY(-1px);
        color: #1a2b3c;
    }

.btn-save-cta {
    background: linear-gradient(135deg, #28a745, #5cd65c);
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 6px 14px;
    /* border-radius: 999px; */
    box-shadow: 0 3px 8px rgb(40 167 69 / 45%);
    transition: all 0.2s ease-in-out;
}

    .btn-save-cta i {
        margin-right: 6px;
    }

    .btn-save-cta:hover {
        background: linear-gradient(135deg, #218838, #7bed7b);
        box-shadow: 0 5px 12px rgb(40 167 69 / 60%);
        transform: translateY(-1px);
        color: #1a2b3c;
    }

.btn-info-cta {
    background: linear-gradient(135deg, #17a2b8, #5bc0de);
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 6px 14px;
    /*border-radius: 999px;*/
    box-shadow: 0 3px 8px rgba(23, 162, 184, 0.45);
    transition: all 0.2s ease-in-out;
}

    .btn-info-cta i {
        margin-right: 6px;
    }

    .btn-info-cta:hover {
        background: linear-gradient(135deg, #20c0da, #8fdaf0);
        box-shadow: 0 5px 12px rgba(23, 162, 184, 0.6);
        transform: translateY(-1px);
        color: #1a2b3c;
    }

.btn-secondary-cta {
    background: linear-gradient(135deg, #6c757d, #adb5bd); /* secondary colors */
    color: white !important;
    font-weight: 600;
    border: none;
    padding: 6px 14px;
    /*border-radius: 999px;*/
    box-shadow: 0 3px 8px rgba(108, 117, 125, 0.45);
    transition: all 0.2s ease-in-out;
}

    .btn-secondary-cta i {
        margin-right: 6px;
    }

    .btn-secondary-cta:hover {
        background: linear-gradient(135deg, #868e96, #c0c4c8); /* lighter on hover */
        box-shadow: 0 5px 12px rgba(108, 117, 125, 0.6);
        transform: translateY(-1px);
        color: #1a2b3c;
    }

/* Report Manager ONLY - input group border fix */
.report-manager-page
.input-group:not(.has-validation) > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.report-manager-page
.input-group:not(.has-validation) > .dropdown-toggle:nth-last-child(n+3),
.report-manager-page
.input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-control,
.report-manager-page
.input-group:not(.has-validation) > .form-floating:not(:last-child) > .form-select {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Report Manager ONLY – left radius fix */
.report-manager-page .input-group > .form-control:not(:first-child),
.report-manager-page .input-group > .btn:not(:first-child),
.report-manager-page .input-group > .input-group-text:not(:first-child),
.report-manager-page .input-group > .form-select:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* DELETE POPUPS ONLY */
.dx-delete-popup .dx-popup-content {
    padding: 5px;
}

.dx-delete-popup .dx-popup-bottom.dx-toolbar {
    padding: 10px;
}

.dx-delete-popup > .dx-overlay-content {
    max-height: 180px !important;
}

.dx-btn-gradient.dx-button {
    border: none !important;
    /*padding: 8px 16px !important;*/
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

    .dx-btn-gradient.dx-button:hover .dx-button-content {
        background: inherit !important;
        color: white !important;
    }


.dx-btn-success.dx-button {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important;
}

    .dx-btn-success.dx-button:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(40, 167, 69, 0.3) !important;
        background: linear-gradient(135deg, #1e7e34 0%, #155724 100%) !important;
    }

.dx-btn-danger.dx-button {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%) !important;
}

    .dx-btn-danger.dx-button:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(220, 53, 69, 0.35) !important;
        background: linear-gradient(135deg, #bd2130 0%, #8b1a26 100%) !important;
    }

.dx-btn-warning.dx-button {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
}

    .dx-btn-warning.dx-button:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(255, 144, 0, 0.3) !important;
        background: linear-gradient(135deg, #ff6e07 0%, #e55e06 100%) !important;
    }

.dx-btn-info.dx-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

    .dx-btn-info.dx-button:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(0, 123, 255, 0.3) !important;
        background: linear-gradient(135deg, #0056b3 0%, #003f7f 100%) !important;
    }

.dx-button.dx-state-disabled {
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
}

.dx-btn-gradient .dx-icon {
    color: white !important;
    fill: white !important;
}

/* Fix toolbar item width */
.filter-toolbar-item {
    width: 380px !important; 
    min-width: 380px !important;
}

    /* Force SelectBox to fill container */
    .filter-toolbar-item .dx-selectbox,
    .filter-toolbar-item .dx-texteditor {
        width: 100% !important;
    }

/* Hover ONLY on parent (group) rows — exclude master-detail rows */
#dtgGroup .dx-datagrid-rowsview
.dx-data-row:not(.dx-master-detail-row):hover > td {
    background-color: orange !important;
    color: white !important;
}

/* Force text + icons white on hover */
#dtgGroup .dx-datagrid-rowsview
.dx-data-row:not(.dx-master-detail-row):hover td * {
    color: white !important;
}

/* Pointer cursor ONLY for parent rows */
#dtgGroup .dx-datagrid-rowsview
.dx-data-row:not(.dx-master-detail-row) {
    cursor: pointer;
}

/* Explicitly disable hover inside expanded (incident) grid */
#dtgGroup .dx-master-detail-row
.dx-datagrid-rowsview .dx-row:hover > td {
    background-color: inherit !important;
    color: inherit !important;
}

/* Push SelectBox slightly down from top */
.content-header .dx-selectbox {
    margin-top: 6px; /* adjust: 4px–8px as needed */
}

/* Cancel Button – Custom Style */
.btn-cancel-custom {
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    /* Recommended color */
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
}

    /* Hover effect */
    .btn-cancel-custom:hover {
        transform: translateY(-10%);
        box-shadow: 0 5px 12px rgba(108, 117, 125, 0.35) !important;
        background: linear-gradient(135deg, #5a6268 0%, #343a40 100%) !important;
    }

    /* Active (click) effect */
    .btn-cancel-custom:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    }

.btn-save-custom {
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    /* Recommended color */
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
}

    /* Hover effect */
    .btn-save-custom:hover {
        transform: translateY(-10%);
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4) !important;
        background: linear-gradient(135deg, #ff6e07 0%, #ff5500 100%) !important;
    }

.btn-delete-custom {
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgb(255 0 0 / 20%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    /* Recommended color */
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%) !important;
}

    /* Hover effect */
    .btn-delete-custom .dx-button-content:hover {
        
        box-shadow: 0 5px 12px rgba(220, 53, 69, 0.35) !important;
        background: linear-gradient(135deg, #ff0707 0%, #e50606 100%) !important;
    }

    .btn-delete-custom:hover {
        transform: translateY(-10%);
    }

.btn-primary-custom {
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

    /* icon color fix */
    .btn-primary-custom i,
    .btn-primary-custom svg {
        color: white !important;
    }

.dx-button.btn-primary-custom:hover .dx-button-content {
    background-color: transparent !important;
    background-image: linear-gradient(135deg, #0b5ed7 0%, #084298 100%) !important;
}

.btn-primary-custom:hover {
    transform: translateY(-10%);
}

/* Target only the popup that owns #reqSetDetPP */
#reqSetDetPP .dx-popup-bottom.dx-toolbar .dx-toolbar-after {
    margin-top: 100px !important;
}

/* Only Request Recipient Details popup */
.req-set-det-popup .dx-popup-bottom.dx-toolbar
.dx-toolbar-items-container {
    margin-top: 180px !important;
    display: flex;
    justify-content: flex-end !important;
}

/* Make Cancel button icon white */
.btn-cancel-custom .dx-icon,
.btn-cancel-custom i {
    color: white !important;
}

.btn-save-custom .dx-icon,
.btn-save-custom i {
    color: white !important;
}

.btn-delete-custom .dx-icon,
.btn-delete-custom i {
    color: white !important;
}

.btn-undelete-new {
    background: linear-gradient(135deg, #28a745 0%, #2ecc71 100%) !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 8px rgb(40 167 69 / 20%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

    .btn-undelete-new:hover {
        transform: translateY(-10%);
        background: linear-gradient(135deg, #2ecc71 0%, #1e7e34 100%) !important;
        box-shadow: 0 5px 12px rgb(40 167 69 / 30%) !important;
    }

.btn-delete-icon i,
.btn-undo-icon i {
    font-size: 14px;
}

#SLBGroups.dx-dropdowneditor.dx-state-active,
#SLBGroups.dx-dropdowneditor.dx-state-focused,
#SLBGroups.dx-dropdowneditor.dx-dropdowneditor-active {
    background-color: white !important;
    border-color: #ff9000 !important;
}

/* Outline Danger – App style */
.btn.btn-app-outline-danger {
    background-color: transparent;
    border: 1px solid #dc3545; /* Bootstrap danger */
    color: #dc3545;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover */
    .btn.btn-app-outline-danger:hover {
        background-color: #dc3545;
        color: #fff;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    }

    /* Focus + Active + Focus-visible */
    .btn.btn-app-outline-danger:focus,
    .btn.btn-app-outline-danger:active,
    .btn.btn-app-outline-danger:focus-visible {
        background-color: #dc3545;
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.4);
        outline: none;
    }

        /* Icon color handling */
        .btn.btn-app-outline-danger i,
        .btn.btn-app-outline-danger:hover i,
        .btn.btn-app-outline-danger:focus i,
        .btn.btn-app-outline-danger:active i {
            color: inherit;
        }

/* Outline Orange – App style */
.btn.btn-app-outline-orange {
    background-color: transparent;
    border: 1px solid #FF9800;
    color: #FF9800;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover */
    .btn.btn-app-outline-orange:hover {
        background-color: #FF9800;
        color: #fff;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    }

    /* Focus + Active */
    .btn.btn-app-outline-orange:focus,
    .btn.btn-app-outline-orange:active,
    .btn.btn-app-outline-orange:focus-visible {
        background-color: #FF9800;
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(255, 152, 0, 0.4);
        outline: none;
    }

        /* Icon handling */
        .btn.btn-app-outline-orange i,
        .btn.btn-app-outline-orange:hover i,
        .btn.btn-app-outline-orange:focus i,
        .btn.btn-app-outline-orange:active i {
            color: inherit;
        }

/* Outline Secondary – App style */
.btn.btn-app-outline-secondary {
    background-color: transparent;
    border: 1px solid #6c757d; /* Bootstrap secondary */
    color: #6c757d;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover */
    .btn.btn-app-outline-secondary:hover {
        background-color: #6c757d;
        color: #fff;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
    }

    /* Focus + Active */
    .btn.btn-app-outline-secondary:focus,
    .btn.btn-app-outline-secondary:active,
    .btn.btn-app-outline-secondary:focus-visible {
        background-color: #6c757d;
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.4);
        outline: none;
    }

        /* Icon handling */
        .btn.btn-app-outline-secondary i,
        .btn.btn-app-outline-secondary:hover i,
        .btn.btn-app-outline-secondary:focus i,
        .btn.btn-app-outline-secondary:active i {
            color: inherit;
        }

/* Outline Success – App style */
.btn.btn-app-outline-success {
    background-color: transparent;
    border: 1px solid #28a745; /* Bootstrap success */
    color: #28a745;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

    /* Hover */
    .btn.btn-app-outline-success:hover {
        background-color: #28a745;
        color: #fff;
        transform: translateY(-10%);
        box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
    }

    /* Focus + Active + Focus-visible */
    .btn.btn-app-outline-success:focus,
    .btn.btn-app-outline-success:active,
    .btn.btn-app-outline-success:focus-visible {
        background-color: #28a745;
        color: #fff;
        box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.4);
        outline: none;
    }

        /* Icon handling */
        .btn.btn-app-outline-success i,
        .btn.btn-app-outline-success:hover i,
        .btn.btn-app-outline-success:focus i,
        .btn.btn-app-outline-success:active i {
            color: inherit;
        }

.btn-toolbar {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
    border: none !important;
    white-space: nowrap;
}

.btn-add-custom {
    color: white !important;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
}

    .btn-add-custom:hover {
        transform: translateY(-10%);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.45) !important;
        background: linear-gradient(135deg, #219a3b 0%, #1c9e7a 100%) !important;
    }

.btn-save-custom {
    color: white !important;
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3) !important;
}

    .btn-save-custom:hover {
        transform: translateY(-10%);
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4) !important;
        background: linear-gradient(135deg, #ff6e07 0%, #ff5500 100%) !important;
    }

.btn-cancel-custom {
    color: white !important;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

    .btn-cancel-custom:hover {
        transform: translateY(-10%);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.45) !important;
    }

.dx-state-disabled.btn-toolbar {
    opacity: 0.6 !important;
    box-shadow: none !important;
    transform: none !important;
    cursor: not-allowed !important;
}

.btn-toolbar i,
.btn-toolbar .fa,
.btn-toolbar .fas {
    color: inherit !important;
}

.btn-toolbar:focus,
.btn-toolbar:focus-visible,
.dx-button:focus,
.dx-button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Only neutralize DevExtreme INNER hover layer */
.btn-toolbar .dx-button-content,
.btn-toolbar.dx-button:hover .dx-button-content,
.btn-toolbar.dx-button.dx-state-hover .dx-button-content,
.btn-toolbar.dx-button.dx-state-active .dx-button-content {
    background: transparent !important;
    box-shadow: none !important;
}

/* Icon & text always white */
.btn-toolbar i,
.btn-toolbar .dx-button-text {
    color: inherit !important;
}

.swal2-confirm,
.swal2-cancel {
    min-width: 120px !important;
    height: 40px !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    text-align: center !important;
}


.swal2-confirm {
    background: linear-gradient(135deg, #dc3545 0%, #bd2130 100%) !important;
    box-shadow: 0 3px 8px rgb(255 0 0 / 20%) !important;
}

.swal2-cancel {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3) !important;
}

.swal2-confirm:hover {
    box-shadow: 0 5px 12px rgba(220, 53, 69, 0.35) !important;
    background: linear-gradient(135deg, #ff0707 0%, #e50606 100%) !important;
    transform: translateY(-10%);
}

.swal2-cancel:hover {
    transform: translateY(-10%);
    box-shadow: 0 5px 12px rgba(108, 117, 125, 0.35) !important;
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%) !important;
}


.swal2-confirm.swal2-confirm-approve {
    background: linear-gradient(135deg, #ff9000 0%, #ff6e07 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3) !important;
}

    .swal2-confirm.swal2-confirm-approve:hover {
        transform: translateY(-10%);
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4) !important;
        background: linear-gradient(135deg, #ff6e07 0%, #ff5500 100%) !important;
    }



#dtgTemplates
.dx-command-edit-with-icons
.dx-link {
    width: auto !important;
    height: auto !important;
}

#dtgAttachment
.dx-command-edit-with-icons
.dx-link {
    width: auto !important;
    height: auto !important;
}

.dx-button-mode-contained.dx-button-default {
    background-color: #615e5e !important;
}

    .dx-button-mode-contained.dx-button-default:hover {
        background-color: #F57C00 !important;
    }

/* Company Details popup – fixed header and footer with scrollable body */
.company-details-popup > .dx-overlay-content {
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

/* Fixed header */
.company-details-popup .dx-popup-title {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

/* Fixed footer */
.company-details-popup .dx-popup-bottom {
    position: sticky !important;
    bottom: 0;
    z-index: 10;
    background: white;
    /*border-top: 1px solid #eee;*/
    flex-shrink: 0;
    padding:10px !important;
}

/* Scrollable content area */
.company-details-popup .dx-popup-content {
    flex: 1;
    overflow-y: auto !important;
    max-height: none !important;
    scrollbar-width: thin;
}

    /* Optional: Style the scrollbar */
    .company-details-popup .dx-popup-content::-webkit-scrollbar {
        width: 8px;
    }

    .company-details-popup .dx-popup-content::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    .company-details-popup .dx-popup-content::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .company-details-popup .dx-popup-content::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

.dx-htmleditor:hover {
    border-color: #ffb74d !important;
}

.dx-htmleditor.dx-stare-active, .dx-htmleditor.dx-state-focused {
    border-color: #ff9000 !important;
}

.dx-list:not(.dx-list-select-decorator-enabled)
.dx-list-item.dx-state-focused,
.dx-list:not(.dx-list-select-decorator-enabled)
.dx-list-item.dx-state-focused .dx-list-item-content {
    background-color: #337ab7;
    color: #fff !important;
}

.list-container:hover {
    border-color: #ffb74d !important;
}

/* Base button */
.dx-button.btn-custom-list {
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.3) !important;
    transition: all 0.2s ease;
    border: 1px solid #FF9800 !important;
    color: #FF9800 !important;
    font-weight: 500;
    font-size: 13px;
}

    /* Make icon + text follow the button color */
    .dx-button.btn-custom-list .dx-icon,
    .dx-button.btn-custom-list .dx-button-text {
        color: inherit !important;
    }

    /* Hover (DevExtreme way) */
    .dx-button.btn-custom-list.dx-state-hover {
        transform: translateY(-10%);
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4) !important;
    }

    /* Focus / Active (optional but recommended) */
    .dx-button.btn-custom-list.dx-state-focused,
    .dx-button.btn-custom-list.dx-state-active {
        box-shadow: 0 6px 20px rgba(255, 144, 0, 0.4) !important;
    }

    /* Reduce space between icon and text */
    .dx-button.btn-custom-list .dx-icon {
        margin-right: 6px !important; /* default is ~8–10px */
    }

#dtgUserNotes
.dx-command-edit-with-icons
.dx-link {
    width: auto !important;
    height: auto !important;
}

.card-warning.card-outline,
.card-primary.card-outline,
.card-secondary.card-outline,
.card-danger.card-outline {
    border-top: none !important;
}

/* Base header styling */
.card.card-outline .card-header {
    color: #fff;
    padding: 0.2rem !important;
    font-weight: 600 !important;
}

/* Warning */
.card.card-outline.card-warning .card-header {
    background-color: #ffc107;
    border-bottom: 1px solid #ffc107;
}

/* Primary */
.card.card-outline.card-primary .card-header {
    background-color: #007bff;
    border-bottom: 1px solid #007bff;
}

/* Secondary */
.card.card-outline.card-secondary .card-header {
    background-color: #6c757d;
    border-bottom: 1px solid #6c757d;
}

/* Danger */
.card.card-outline.card-danger .card-header {
    background-color: #dc3545;
    border-bottom: 1px solid #dc3545;
}

/* Ensure header icons inherit white */
.card.card-outline .card-header i {
    color: inherit;
}

.js-CardCatalog .card-header {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%) !important;
    padding: 1rem 1rem !important;
    min-height:50px;
}

/* Make all catalog cards equal height */
.js-CardCatalog .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.js-CardCatalog .card-body {
    flex: 1 1 auto;
}

.js-CardCatalog .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3; /* adjust lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.js-CardCatalog .card-img-top {
    max-height: 140px;
    object-fit: contain;
}

.catalog-popup-content {
    max-height: 380px; /* popup height - header - toolbar */
    overflow-y: auto;
    padding-right: 10px;
}

/*#dtgItems
.dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td, .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > tr > td {
    background-color: white !important;
    color: black !important;
}*/

#dtgItems .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td,
#dtgItems .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > tr > td,
#dtgPagePermission .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td,
#dtgPagePermission .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > tr > td,
#dtgCatalogPermission .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td,
#dtgCatalogPermission .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > tr > td,
#dtgReportPermission .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > td,
#dtgReportPermission .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-focused) > tr > td {
    background-color: white !important;
    color: black !important;
}

.delete-message {
    text-align: center;
}

    .delete-message .file-name {
        font-weight: 600;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

/*#uplPhoto .dx-button {
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

    #uplPhoto .dx-button i,
    #uplPhoto .dx-button svg {
        color: white !important;
    }

    #uplPhoto .dx-button.dx-state-hover,
    #uplPhoto .dx-button.dx-state-focused,
    #uplPhoto .dx-button.dx-state-active {
        background-color: transparent !important;
        background-image: linear-gradient(135deg, #0b5ed7 0%, #084298 100%) !important;
        transform: translateY(-10%);
    }

        #uplPhoto .dx-button.dx-state-hover .dx-button-content,
        #uplPhoto .dx-button.dx-state-focused .dx-button-content,
        #uplPhoto .dx-button.dx-state-active .dx-button-content {
            background-color: transparent !important;
        }*/

/* NORMAL STATE */
#uplPhoto .dx-button {
    border: none !important;
    border-radius: 4px !important;
    color: white !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important; 
}

    /* HOVER ONLY (real mouse hover) */
    #uplPhoto .dx-button.dx-state-hover {
        background-image: linear-gradient(135deg, #0b5ed7 0%, #084298 100%) !important;
        transform: translateY(-2px);
    }

    /* RESET focused & active to NORMAL look */
    #uplPhoto .dx-button.dx-state-focused,
    #uplPhoto .dx-button.dx-state-active {
        background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
        transform: none !important;
    }

    /* Remove internal orange */
    #uplPhoto .dx-button .dx-button-content {
        background-color: transparent !important;
    }

/* Remove default anchor style */
.catalog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    width: 100%;
}

/* Main Card */
.catalog-item-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

    /* Hover Effect */
    .catalog-item-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

/* Gradient Header */
.catalog-card-header {
    background: linear-gradient(135deg, #1a3a4d 0%, #2c3e50 100%);
    color: #ffffff;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Body Styling */
.catalog-item-card .card-body {
    background-color: #ffffff;
    color: #000000;
    padding: 18px;
    font-size: 14px;
    flex-grow: 1;
}

/* ===== HR Request Page Only Button Size Fix ===== */
.hr-request-card .card-footer .btn-cancel-custom,
.hr-request-card .card-footer .btn-save-custom {
    padding: 8px 18px !important;
    min-height: 36px !important;
    justify-content: center !important;
}

.group-manager-page #dtgGroup
.dx-datagrid-rowsview
.dx-data-row:not(.dx-master-detail-row):hover > td {
    background-color: inherit !important;
    color: inherit !important;
}

.report-card {
    border-radius: 8px;
    border: 1px solid #e6e6e6;
    transition: all 0.25s ease;
}

    .report-card .nav-link {
        text-decoration: none;
        color: inherit;
    }

/* Icon styling */
.report-icon {
    font-size: 36px;
    color: #007bff;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Footer styling */
.report-footer {
    font-size: 14px;
    font-weight: 600;
    background: #f9f9f9;
}

/* Hover effect */
.report-card:hover {
    transform: translateY(-5px);
    border-color: #ff9000;
    box-shadow: 0 6px 14px rgba(255, 144, 0, 0.25);
}

    /* Icon hover */
    .report-card:hover .report-icon {
        transform: scale(1.2);
        color: #ff9000;
    }

    /* Footer hover color */
    .report-card:hover .report-footer {
        background: #fff5e6;
    }