/* Custom Sidebar Theme - Matching Login Header Color */


/* Logo styling */
.sidebar-logo {
    height: 30px !important;
    width: auto !important;
    margin-right: 10px;
}

/* Logo text styling */
.logo-text-sidebar {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    letter-spacing: -0.5px;
    margin-left: 5px;
}


/* Hide logo text in minimize mode */
.aside.minimize .logo-text-sidebar {
    display: none !important;
}

/* Adjust logo size in minimize mode */
.aside.minimize .sidebar-logo {
    height: 30px !important;
    margin: 0 auto !important;
}

/* User info text colors */
.aside-loggedin h6,
.aside-loggedin p,
.aside-loggedin .tx-color-03,
.aside-loggedin-user {
    color: rgba(255, 255, 255, 0.9) !important;
}


.aside [data-feather]:hover,
.aside .feather:hover {
    color: #fff !important;
    stroke: #fff !important;
}

/* Fix for menu item after icon color */
.nav-aside .with-sub .nav-link::after {
    border-color: rgba(255, 255, 255, 0.5) transparent transparent transparent !important;
}

.nav-aside .with-sub.show .nav-link::after {
    border-color: transparent transparent rgba(255, 255, 255, 0.5) transparent !important;
}

/* User section at bottom */
.aside-body {
    display: flex !important;
    flex-direction: column !important;
}

.aside-body > .nav-aside:first-child {
    flex: 1 !important;
}

.aside-user-section {
    margin-top: auto !important;
    padding-top: 20px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.aside-user-section .nav-aside .nav-item {
    margin-bottom: 5px;
}
.aside-user-section .nav-aside .nav-link {
    height: 30px;
    width: 30px;
}
.aside-user-section .nav-aside .nav-link i {
    font-size: 20px;
    margin-right: 15px;
    padding: 5px;
}
.aside-user-section .nav-aside .nav-link img {
    width: 30px;
    height: 30px;
    margin-right: 15px;
    padding: 3px;
}

.aside-user-section .nav-aside .nav-link:hover i {
    border-radius: 50px;
    padding: 4px;
}
.aside-user-section .nav-aside .nav-link:hover img {
    border-radius: 50px;
    padding: 2px;
}

/* User/Profile link hover - Blue theme (feather-user icon) */
.aside-user-section .nav-aside .nav-link:hover i.feather-user {
    background-color: rgba(1, 104, 250, 0.15);
    border: solid 1px rgba(1, 104, 250, 0.4);
    color: #0168fa;
}

/* Logout link hover - Red/Danger theme (feather-log-out icon) */
.aside-user-section .nav-aside .nav-link:hover i.feather-log-out {
    background-color: rgba(220, 53, 69, 0.15);
    border: solid 1px rgba(220, 53, 69, 0.4);
    color: #dc3545;
}

/* Scikiq logo link hover - Orange/Brand theme (img) */
.aside-user-section .nav-aside .nav-link:hover img {
    background-color: rgba(1, 104, 250, 0.15);
    border: solid 1px rgba(1, 104, 250, 0.4);
}

.aside-user-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 20px 10px 20px;
}

.aside-user-section .nav-link.disabled {
    cursor: default !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.aside-user-section .nav-link.disabled:hover {
    background-color: transparent !important;
}

/* Ensure logout link is visible */
/* .aside-user-section .nav-link.text-danger {
    color: #ff6b6b !important;
}

.aside-user-section .nav-link.text-danger:hover {
    color: #ff5252 !important;
} */

/* Adjust content area after removing header */
.content-header {
    display: none !important;
}

/* Main content area with gradient background */
.content {
    padding-top: 0 !important;
    /* Gradient: top 20% is sidebar color, rest is white */
    /* background: linear-gradient(to bottom, 
        rgb(244, 245, 248) 0%, 
        rgb(244, 245, 248) 20%, 
        #ffffff 20%, 
        #ffffff 100%) !important; */
    min-height: 100vh !important;
    /* background: linear-gradient(240deg, #cce4f2, #f5fafe); */
    background: #f5f7fa;
}

.content-body {
    top: 0 !important;
    /* padding: 0px !important; */
    background: transparent !important;
    position: relative;
}

/* Ensure content stays above the background */
.filterStatusContainer {
  display: flex;
  gap: 10px; /* 10px gap between divs */
  position: relative;
}

.filterStatusContainer .first {
  padding: 0px;
}

.filterStatusContainer .item {
  text-align: left;
}

.header-sticky-top {
    position: sticky;
    top: -26px;
    z-index: 1020;
    padding: 10px 0 10px 0px;
    background-color: #f5f7fa;
    /* border-bottom: solid 1px #000; */
}

.read-more-full {
        text-wrap: auto;
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border-color: #c0ccda;
    border-radius: 0.25rem;
    height: 35px;
    outline: none;
}
/* body {
    font-family: "Rubik", sans-serif !important;
} */
/* h2, .h2 {
    color: #e73b2b;
}
h5, .h5 {
    color: #525b75;
} */
.bullet-item {
    height: 0.5rem;
    width: 1rem;
    border-radius: 2px;
}
.translate-middle {
    -webkit-transform: translate(-50%, -50%) !important;
    -ms-transform: translate(-50%, -50%) !important;
    transform: translate(-50%, -50%) !important;
}
.start-50 {
    left: 50% !important;
}
.top-50 {
    top: 50% !important;
}
.bgicon {
    border-radius: 50%;
    background-color: #fff;
    width: 32px;
    height: 32px;
}

/* Status indicators */
    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
    }

    .status-badge.pending {
        background-color: #FFF4E6;
        color: #D6730F;
        border: 1px solid #F7B924;
    }

    .status-badge.processing {
        background-color: #E6F3FF;
        color: #0066CC;
        border: 1px solid #0078D4;
    }

    .status-badge.completed {
        background-color: #F3F9F0;
        color: #107C10;
        border: 1px solid #16C60C;
    }

    .status-badge.failed {
        background-color: #FDF2F2;
        color: #D13438;
        border: 1px solid #E74856;
    }

    .status-badge.cancelled {
        background-color: #F5F5F5;
        color: #605E5C;
        border: 1px solid #8A8886;
    }

    .status-badge.partial {
        background-color: #FFF9E6;
        color: #CA5010;
        border: 1px solid #FF8C00;
    }

    .status-icon {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
    }

    .status-icon.pending {
        background-color: #F7B924;
    }

    .status-icon.processing {
        background-color: #0078D4;
        animation: pulse 2s infinite;
    }

    .status-icon.completed {
        background-color: #16C60C;
    }

    .status-icon.failed {
        background-color: #E74856;
    }

    .status-icon.cancelled {
        background-color: #8A8886;
    }

    .status-icon.partial {
        background-color: #FF8C00;
    }

    /* Badge indicators */
    .notification-badge {
        display: inline-block;
        padding: 3px 3px;
        min-height: 17px;
        min-width: 17px;
        font-size: 75%;
        font-weight: 700;
        line-height: 12px;
        text-align: center;
        white-space: nowrap;
        vertical-align: middle;
        border-radius: 50%;
        background-color: #7987a1;
        color: #fff;
        margin-left: 5px;
        transition: color 0.15s 
        ease-in-out, background-color 0.15s 
        ease-in-out, border-color 0.15s 
        ease-in-out, box-shadow 0.15s 
        ease-in-out;
    }
    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        padding: 6px 12px;
        border-radius: 1rem;
        font-size: 0.75rem;
        font-weight: 500;
        text-transform: uppercase;
        border: 1px solid #e2e5ed;
        background-color: #fff !important;
        color: inherit;
    }
    .badge.bg-secondary {
        background-color: #f5f5f5 !important;
        color: #7987a1 !important;
        border: 1px solid #7987a1 !important;
    }
    .badge.bg-secondary::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        background-color: #7987a1 !important;
    }
    .badge.bg-danger {
        background-color: #fdf2f2 !important;
        color: #d13438 !important;
        border: 1px solid #e74856 !important;
    }
    .badge.bg-danger::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        background-color: #e74856 !important;
    }
    .badge.bg-primary {
        background-color: #e6f3ff !important;
        color: #0066cc !important;
        border: 1px solid #0078d4 !important;
    }
    .badge.bg-primary::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        background-color: #0078d4 !important;
    }

    .badge.bg-warning {
        background-color: #fff4e5 !important;
        color: #d67a0f !important;
        border: 1px solid #f7b924 !important;
    }
    .badge.bg-warning::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        background-color: #f7b924 !important;
    }
    .badge.bg-success {
        background-color: #f3f9f0 !important;
        color: #107c10 !important;
        border: 1px solid #16c60c !important;
    }
    .badge.bg-success::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        background-color: #16c60c !important;
    }
    .badge.bg-info {
        background-color: #f9feff !important;
        color: #00b8d4 !important;
        border: 1px solid #00b8d4 !important;
    }
    .badge.bg-info2 {
        background-color: #f9feff !important;
        color: #00b8d4 !important;
        border: 1px solid #00b8d4 !important;
    }
    /* .badge.bg-info::before {
        content: '';
        width: 8px;
        height: 8px;
        border-radius: 50%;
        display: inline-block;
        background-color: #ff8c00 !important;
    } */
    .badge.badge-secondary {
        background-color: #f5f5f5 !important;
        color: #7987a1 !important;
        border: 1px solid #7987a1 !important;
    }

#dynamicModal .modal {
    z-index: 9999;
}
.modal .card-header {
    border-bottom: 0px;
}
.modal .card-header {
    border-bottom: 0px;
}
.modal .card-header h6 {
    font-size: 1.09375rem;
}

/* .modal .accordion-item {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
} */
.modal .accordion-button {
    box-shadow: none;
    /* border-radius: 0px; */
    padding: 8px 10px;
}
.modal .accordion-button:focus {
    box-shadow: none;
    padding: 8px 10px;
    border-color: unset;
}
.modal .accordion-item:first-of-type .accordion-button {
    font-size: 14px;
}
.modal .accordion-button:not(.collapsed) {
    background-color: #f5f7fa;
    color: #000;
    font-weight: 600;
    border-bottom: solid 1px #dee2e6;
}

/* DataTables FixedColumns Styling */
.dataTables_scrollBody {
    border-bottom: solid 1px #eeeeee;
}
table.dataTable thead tr > .dtfc-fixed-left,
table.dataTable thead tr > .dtfc-fixed-right {
    background-color: #f8f9fa !important;
}
table.dataTable tbody tr > .dtfc-fixed-left,
table.dataTable tbody tr > .dtfc-fixed-right {
    background-color: #fff !important;
}
table.dataTable tbody tr:nth-of-type(odd) > .dtfc-fixed-left,
table.dataTable tbody tr:nth-of-type(odd) > .dtfc-fixed-right {
    background-color: #f8f9fa !important;
}
table.dataTable tbody tr:hover > .dtfc-fixed-left,
table.dataTable tbody tr:hover > .dtfc-fixed-right {
    background-color: #e9ecef !important;
}
/* Use pseudo-element for shadow to work with sticky positioning */
table.dataTable th.dtfc-fixed-left:last-of-type,
table.dataTable td.dtfc-fixed-left:last-of-type {
    position: relative;
}
table.dataTable th.dtfc-fixed-left:last-of-type::after,
table.dataTable td.dtfc-fixed-left:last-of-type::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to right, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}
table.dataTable th.dtfc-fixed-right:first-of-type,
table.dataTable td.dtfc-fixed-right:first-of-type {
    position: relative;
}
table.dataTable th.dtfc-fixed-right:first-of-type::before,
table.dataTable td.dtfc-fixed-right:first-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -6px;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to left, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}