@import url('requesteditstyle.css');


th {
    text-transform: none !important;
    font-weight: bold !important;
    white-space: normal;  /* Allow text to wrap */
    word-wrap: break-word; /* Break words if needed */
    word-break: break-word; /* Ensure long words break to the next line */
}
.card-body{
    background-color: white!important;
}

td {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 12px !important;
}

.text-left {
    text-align: left !important;
}
html {
    font-size: 12px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

    body.layout-boxed .page {
        overflow: visible; /* ✅ Allow page to grow naturally or let inner containers scroll */
    }

.main-content {
    flex: 1 1 auto;
    overflow-y: auto; /* ✅ Enable vertical scrolling */
}

.side-app {
    min-height: 100%;
    overflow-y: auto;
    padding-bottom: 40px; /* Optional: for spacing if footer overlaps */
}

table
{
    background-color: white!important;
}

.white-background {
    background-color: white !important;
    padding: 50px;
    width: 100%;
}

.nav-tabs-custom-gray {
    border-radius: 0px;
    padding: 0.1rem;
}

    .nav-tabs-custom-gray .nav-link {
        color: #333;
        background-color: transparent;
        border: none;
        border-bottom: 4px solid transparent; /* Reserve space for underline */
        transition: all 0.2s ease;
    }

        .nav-tabs-custom-gray .nav-link:hover {
            background-color: transparent!important;
            font-size: 1.3rem !important;
            border-top: 4px solid #999; /* Hover underline */
            font-weight: 500;
        }

        .nav-tabs-custom-gray .nav-link.active {
            background-color: transparent !important;
            font-size: 1.1rem; /* Slightly larger font size */
            color: #333 !important; /* Active tab color */
            font-weight: bold;
            border-top: 4px solid #999; /* Thicker underline */
        }

/*Edit thead background color of Datatables's info*/ 
.dataTables_info {
    background-color: white !important;
    margin-top:2px;
    padding: 6px 5px;
    padding-top: 10px;
    border-radius: 4px;
    margin-left: 2px; /* shift it to the right */
    display: inline-block;
}
.dataTables_wrapper .row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between; /* or start/end depending on your layout */
}

/* Edit thead background color of Datatables's pagination */

.checkbox-wrapper-34 {
    --blue: #0D7EFF;
    --g08: #E1E5EB;
    --g04: #848ea1;
}

.dataTables_length select {
    background-position: left center !important; /* Moves dropdown arrow to the left */
    padding-left: 2em !important; /* Adjusts spacing to not overlap the arrow */
    padding-right: 0.5em !important;
}

/*NSS blank cell styling*/
.blankcell {
    background-color:orangered!important;
}

.greencell {
    background-color: red!important; /* Light green */
    color: white;
}

/*Horizontal line style*/
.hrline {
    height: 1px;
    background-color: #555; /* dark gray */
    border: none;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    margin-bottom: 4px !important;
    margin-top: 4px !important;
}

/*TinyCME*/
.tox-tinymce {
    border-radius: 4px;
}


/* Supply Chain List*/
/* Base container for the child area */
#reps tbody tr.child td .dt-subtable {
    background: #f8f9fa; /* light base */
    border-radius: .5rem;
    transition: background-color .2s ease, box-shadow .2s ease;
}

/* The small header strip with icon + title */
#reps tbody tr.child td .subtable-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .6rem .45rem .6rem;
    border-left: 4px solid var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 600;
    border-radius: .375rem;
    background: #f3f7ff; /* subtle header bg */
}

    #reps tbody tr.child td .subtable-header i {
        opacity: .95;
        font-size: 1rem;
    }

/* Hover over the whole subtable block */
#reps tbody tr.child td .dt-subtable:hover {
    background: #eef6ff;
    box-shadow: 0 0 0 2px rgba(13,110,253,.12) inset; /* Bootstrap primary = #0d6efd */
}

/* Highlight each subtable row on hover (optional) */
#reps tbody tr.child td .dt-subtable table tbody tr:hover {
    background-color: #e9f5ff;
}

/* Selected/expanded state: the child row is always right after .shown */
#reps tbody tr.shown + tr.child td .dt-subtable {
    background: #e8f2ff;
    box-shadow: 0 0 0 2px rgba(13,110,253,.10) inset;
}

#reps tbody tr.shown + tr.child td .subtable-header {
    background: #e6f0ff;
    color: #0d6efd;
    border-left-color: #0d6efd;
}

    /* Optional: make the icon pop a bit on hover/selected */
    #reps tbody tr.child td .subtable-header:hover i,
    #reps tbody tr.shown + tr.child td .subtable-header i {
        transform: scale(1.05);
    }

/* Keep CKEditor tall even when focused */
#rejectionModal .ck.ck-editor__main > .ck-editor__editable,
.rejection-chat .ck.ck-editor__main > .ck-editor__editable {
    min-height: 280px !important; /* pick your height */
}

    #rejectionModal .ck.ck-editor__main > .ck-editor__editable.ck-focused,
    .rejection-chat .ck.ck-editor__main > .ck-editor__editable.ck-focused {
        min-height: 280px !important;
    }

/* Make the editor take the full width inside the chat input */
#rejectionModal .ck.ck-editor,
.rejection-chat .ck.ck-editor {
    width: 100%;
}

/* Ensure the container doesn't squeeze the editor */
.rejection-chat .chat-input {
    display: flex;
    flex-direction: column;
    align-items: stretch; /* important */
}

.modal-xxl {
    max-width: 30% !important; /* or 1200px, 1400px */
}


/* Progress bar color*/


.bg-danger-subtle {
    background-color: #ffcccc !important;
}

.bg-warning-subtle {
    background-color: #ffffcc !important;
}

.bg-success-subtle {
    background-color: #d9ffcc !important;
}

/* Master fields (AWG/ALS) blank highlight in MAM U5, Hight Risk MAM U5, OPD-SAM and IPD-SAM */
.mam-master.is-blank {
    border-color: #dc3545 !important;
    background: #fff5f5 !important;
}

.mam-master.is-blank:focus {
    box-shadow: 0 0 0 .15rem rgba(220,53,69,.25) !important;
}


/*Sidebar logo guard*/
/* collapsed (icon overlay): only icon logos show */
/* Collapsed (icon overlay): hide desktop, show icon */
/*.sidenav-toggled .desktop-logo,
.sidenav-toggled .desktop-logo-dark {
    display: none !important;
}

.sidenav-toggled .icon-logo,
.sidenav-toggled .icon-logo-dark {
    display: inline-block !important;
}*/

/* Expanded: hide icon, show desktop */
/*:not(.sidenav-toggled) .icon-logo,
:not(.sidenav-toggled) .icon-logo-dark {
    display: none !important;
}*/

/* Pick the correct variant by header theme */
/*.dark-header .desktop-logo {
    display: none !important;
}

.dark-header .desktop-logo-dark {
    display: inline-block !important;
}

.light-header .desktop-logo {
    display: inline-block !important;
}

.light-header .desktop-logo-dark {
    display: none !important;
}

.color-header .desktop-logo {
    display: inline-block !important;
}

.color-header .desktop-logo-dark {
    display: none !important;
}*/

/* Collapsed + dark header: use dark icon */
/*.sidenav-toggled.dark-header .icon-logo {
    display: none !important;
}

.sidenav-toggled.dark-header .icon-logo-dark {
    display: inline-block !important;
}*/
/* Collapsed + light/color header: use light icon */
/*.sidenav-toggled:not(.dark-header) .icon-logo {
    display: inline-block !important;
}

.sidenav-toggled:not(.dark-header) .icon-logo-dark {
    display: none !important;
}*/
