body {
    /*    lightgray background color*/
    background-color: var( --body-bg-color);
}

.requirement-parent {
    background-color: #2a2e35 !important; 
}
.simplebar-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.wrapper {
    width: 100%;
    padding-inline: var(--cui-sidebar-occupy-start, 0) var(--cui-sidebar-occupy-end, 0);
    will-change: auto;
    transition: padding 0.15s;
}

@media (prefers-reduced-motion: reduce) {
    .wrapper {
        transition: none;
    }
}

.header > .container-fluid,
.sidebar-header {
    min-height: calc(4rem + 1px);
}

.sidebar-brand-full {
    margin-left: 3px;
}

.sidebar-header .nav-underline-border {
    --cui-nav-underline-border-link-padding-x: 1rem;
    --cui-nav-underline-border-gap: 0;
}

.sidebar-header .nav-link {
    display: flex;
    align-items: center;
    min-height: calc(4rem + 1px);
}

.sidebar-narrow .sidebar-toggler,
.sidebar-narrow-unfoldable:not(:hover) .sidebar-toggler {
    -webkit-margin-end: auto;
    margin-inline-end: auto;
}

.header > .container-fluid + .container-fluid {
    min-height: 3rem;
}

[data-coreui-theme=dark] body {
    background-color: var(--cui-dark-bg-subtle);
}

[data-coreui-theme=dark] .footer {
    --cui-footer-bg: var(--cui-body-bg);
}


.indent-0 {
    padding-left: 15px !important;
}

.indent-1 {
    padding-left: 30px !important;
}

.indent-2 {
    padding-left: 45px !important;
}

.indent-3 {
    padding-left: 60px !important;
}

.checkbox-input {
    width: 30px;
}

.collapse-btn {
    text-align: center;
    width: 110px;
}

.action-btn-wrapper {
    width: 100%;
    padding: 10px;
}

.req-name {
    font-weight: 500;
    font-size: 20px;
}

.code-txt {
    width: 150px;
}

.bg-info-title {
    background: rgb(239, 246, 252) !important;
    height: 32px;
    color: black;
}

.page-title {
    margin-inline-end: 6rem !important;
    height: 71px;
}

.w-110 {
    width: 110px
}

.w-30 {
    width: 30px;
}

.w-150 {
    width: 150px;
}

.mw-300 {
    max-width: 300px;
}

.action-btn-wrapper .edit-icon {
    display: none;
}

.action-btn-wrapper:hover .edit-icon {
    display: inline-block;
}

/*.document-viewer {
    display: flex;
    justify-content: center;
    border: 1px solid var(--cui-border-color);
    padding: 50px 15px;
    min-width: 25cm;
    background-color: white;
}*/

.doc-card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Gap between each card */
}

.doc-card {
    width: 350px;
    /*    border-radius: 10px;*/
    /*    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);*/
    /*border: 1px solid var(--cui-border-color);*/
    border: 1px solid var(--cui-light-border-subtle) !important;
    transition: transform 0.2s;
    position: relative;
    flex-shrink: 0;
    /*background-color: var(--cui-white);*/
}

.doc-card:hover {
    /*        transform: translateY(-3px);*/
    /*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    background-color: var(--cui-light-border-subtle);
}

.doc-card__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.doc-card__edit-link {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.doc-card__content-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 3px;
}

.doc-card__file-icon {
    font-size: 40px;
    
}

.doc-card__name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hover-button {
    transition: transform 0.3s ease;
}

.hover-button:hover {
    transform: scale(1.2);
}

.card-header{
    font-weight: bold;
}

/*.loader {
    height: 3px;
    --c: no-repeat linear-gradient(#5856d6 0 0);
    background: var(--c),var(--c),#e7eaee;
    background-size: 60% 100%;
    animation: l16 3s infinite;
}

@keyframes l16 {
    0% {
        background-position: -150% 0,-150% 0
    }

    66% {
        background-position: 250% 0,-150% 0
    }

    100% {
        background-position: 250% 0, 250% 0
    }
}*/

[data-coreui-theme=light] .page-header-bg {
    background-color: #fff;
}

[data-coreui-theme=dark] .page-header-bg {
    background-color: #212631;
}

.tree-view-header {
    font-weight: 700;
    min-height: 50px;
    border-bottom: var(--cui-border-width) var(--cui-border-style) var(--cui-border-color) !important;
}

.tree-view-header,  [data-coreui-theme=dark] .dark\:bg-body-tertiary, [data-coreui-theme=dark] .dark\:bg-body-tertiary:not([class*="dark:"]) {
    --cui-bg-opacity: 1;
    background-color: rgba(var(--cui-tertiary-bg-rgb), var(--cui-bg-opacity)) !important;
}

.tree-view-header, .tree-view-row {
    border-bottom-width: var(--cui-border-width) !important;
    border-bottom-style: var(--cui-border-style) !important;
    border-bottom-color: var(--cui-light-border-subtle) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}
[data-coreui-theme=dark] .tree-view-row {
    border-bottom-width: var(--cui-border-width) !important;
    border-bottom-style: var(--cui-border-style) !important;
    border-bottom-color: var(--cui-dark-border-subtle) !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

    [data-coreui-theme=dark] .tree-view-row.selected a,
    [data-coreui-theme=dark] tr.table-active a,
    [data-coreui-theme=dark] .table-active a,
    [data-coreui-theme=dark] .table-active .table-view-cell a,
    [data-coreui-theme=dark] .table-active {
        color: var(--cui-link-hover-color-rgb) !important;
    }

.tree-view-row.table-active {
    background-color: var(--selected-row-bg-color) !important;
    border-right: 4px solid #5856d6 !important;
}

.table tr.table-active,
.table tr.table-active *,
.table tr.table-active a{
    background-color: var(--selected-row-bg-color) !important;
    --cui-table-bg-state: #fff0;
}

.table tr {
    transition: background-color 0.3s ease, border-left 0.3s ease;
}

.tree-view-row, .tree-node-has-children {
/*    background-color: var(--cui-table-bg);*/
    color: var(--cui-table-color);
}

.tree-view-row-active {
    background-color: var(--cui-table-active-bg) !important;
    color: var(--cui-table-active-color) !important;
}

.tree-view-row[data-state="none"]:not([class*="tree-node-has-children"]):hover {
    background-color: var(--cui-bg-subtle);
}

.accordion-button:focus {
    box-shadow: none;
    outline: none;
}

.tox-tinymce-inline {
    z-index: 1600 !important;
}

.offcanvas-backdrop {
    z-index:1065;
}

.custom-nav-tabs .nav-link.active {
    border-bottom: none !important; /* Bootstrap primary */
/*    border-right: none !important;
    border-left: none !important;*/
    border-top: 2px solid #5856d6; /* Bootstrap primary */
    font-weight: 500;
    background-color: var(--action-bar-bg-color) !important;
    color: var(--tab-item-text-color) !important
}

.custom-nav-tabs .nav-link {
    color: var(--my-text-muted) !important;
}
.custom-nav-tabs{
    min-height: 49px;
}
.custom-nav-link{
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.default-custom-nav-tabs .nav-link.active {
    border-top: 3px solid #5856d6; /* Bootstrap primary */
    border-bottom: none !important;
    font-weight: 500;
    color: var(--tab-item-text-color) !important
}

.default-custom-nav-tabs .nav-link {
    color: var(--my-text-muted) !important;
}
.bg-light {
    background-color: var(--body-bg-color) !important;
}
.table.custom-table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}

.table.custom-table thead th {
    /*    border-bottom: none;*/
    height: 48px;  
    --cui-bg-opacity:1;
    background-color: rgba(var(--cui-tertiary-bg-rgb), var(--cui-bg-opacity)) !important;

}

.table.custom-table tbody td {
    min-height:44px;
}
    .table.custom-table td,
    .table.custom-table th {
        /*border-bottom-color: var(--cui-light-border-subtle) !important;*/
        border-bottom: none !important;
        word-wrap: break-word;
    }

.custom-row-padding {
    --cui-bg-opacity: 1;
    background-color: rgba(var(--cui-tertiary-bg-rgb), var(--cui-bg-opacity)) !important;
}

/* Light mode */
:root {
    --primary: #0d6efd;
    --primary-emphasis: #3634a3; /* Bootstrap Primary */
    --secondary-emphasis: #2b2f32; /* Bootstrap Secondary */
    --success-emphasis: #0a3622; /* Bootstrap Success */
    --danger-emphasis: #58151c; /* Bootstrap Danger */
    --warning-emphasis: #ffc107; /* Bootstrap Warning */
    --info-emphasis: #0dcaf0; /* Bootstrap Info */
    --light-emphasis: #f8f9fa; /* Bootstrap Light */
    --dark-emphasis: #212529; /* Bootstrap Dark */
    --my-text-muted: #6c757d; /* Bootsrap text-muted mimic*/
    --body-bg-color: #f6f8fa;
    --text-color: black;
    --icon-color: #5856d6;
    --folder-text-color: var(--primary-emphasis);
    --action-bar-bg-color: var(--body-bg-color) !important;
    --selected-row-bg-color: #e6f0ff;
    --parent-row-text-color: var(--primary-emphasis);
    --child-row-text-color: #5856d6;
    --page-title-text-color: #052c65d4;
    --tab-item-text-color: var(--primary-emphasis);
}

/* Dark mode */
html[data-coreui-theme="dark"] {
    --text-color: white;
    --icon-color: #a5a3ff;
    --folder-text-color: #a5a3ff;
    --action-bar-bg-color: #474d5c !important;
    --selected-row-bg-color: #3a6ea5;
    --parent-row-text-color: #a5a3ff;
    --child-row-text-color: white;
    --page-title-text-color: white;
    --my-text-muted: #FFFFFF99;
    --tab-item-text-color: var(--my-text-muted);
}

/*.accordion-button:not(.collapsed) {
    background-color: rgba(37,42.92,54.02, 0.03);
    color: black;
}*/

.accordion-button:not(.collapsed) {
    background-color: #fff;
    color: black;
}

.modal-full-height .modal-content {
    height: 100vh;
}

.modal-dialog-scrollable .modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.ca-rtx > p {
    margin-top: 0;
    margin-bottom: 0;
}

.list-group-item {
    border: none;
    border-bottom: 1px dashed rgba(222, 226, 230, 0.3);
}

    .list-group-item:last-child {
        border-bottom: none;
    }

.input-validation-error {
    border-width: 1px;
    border-color: rgba(222, 90, 90, 0.4);
}

turbo-frame:has(form button[disabled]) #loadingSpinner {
    display: flex !important;
}

.entry-form .input-group-text:first-child,
.detail-form .input-group-text:first-child {
    min-width: 200px;
    height: 31px;
}

.code-status-bar .input-group-text:first-child {
    min-width: unset !important;    
}
.entry-form .input-group-text:last-child,
.detail-form .input-group-text:last-child {
    background-color: var(--cui-body-bg);
    /*color:#aaa;*/
}

.content-area {
    max-width:1345px;
}

.table-container {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    /*max-height: 710px;*/
}

.table-container table {
    border-collapse: collapse;
    width: auto;
    min-width: max-content;
}

.status-icon {
    cursor: pointer;
}

.table-header-rotated th.rotate {
    height: 210px;
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    vertical-align: bottom;
    padding: 0;
    font-size: 12px;
    line-height: 2.5;
    position: relative;
    background-color: transparent;
    border: none;
}

.table-header-rotated th.rotate > div {
    position: relative;
    height: 100%;
    left: 105px;
    transform: skew(-45deg, 0deg);
    overflow: visible;
    background-color: #f3f4f7;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 4px;
}

.table-header-rotated th.rotate span {
    transform: skew(45deg, 0deg) rotate(315deg);
    display: inline-block;
    width: auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    position: relative;
    bottom: 10px;
}

.table-header-rotated td {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
}

.table-header-rotated th.sticky-col,
.table-header-rotated td.sticky-col {
    position: sticky;
    height: 50px;
    left: 0;
    z-index: 2;
    border: none;
    background: var(--cui-card-bg);
    color: var(--text-color);
}

.table-header-rotated td,
.table-header-rotated th.rotate > div {
    border: 1px solid var(--cui-light-border-subtle);
}

/* Dark mode */
html[data-coreui-theme="dark"] .table-header-rotated td,
html[data-coreui-theme="dark"] .table-header-rotated th.rotate > div {
    border: 1px solid var(--cui-dark-border-subtle);
}

.table-header-rotated thead th.sticky-col {
    z-index: 3;
}

/* Dark mode */
html[data-coreui-theme="dark"] .function-row {
    background-color: var(--cui-card-bg);
}

.new-user-row td {
    text-align: start;
    padding-left: 2rem;
    color: #6c757d;
    cursor: pointer;
}

.select2-results__option .bi {
    margin-right: 8px;
}

.disabled-cell {
    pointer-events: auto;
    opacity: 0.6;
    cursor: not-allowed;
}

.disabled-cell a, .disabled-cell button,
.disabled-cell input,
.disabled-cell select,
.disabled-cell textarea {
    pointer-events: none !important;
}

.note-editable {
    border: 1px solid var(--cui-border-color-translucent);
    
}

.disabled-form input:not(.nav-link):not(accordion-button),
.disabled-form button:not(.nav-link):not(accordion-button):not(skip-disable),
.disabled-form .dropdown-toggle,
.disabled-form textarea,
.disabled-form .note-editable,
.disabled-form select {
    pointer-events: none !important;
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    border: 0.666667px solid rgb(219, 223, 230);
}


.disabled-form .dropdown-toggle {
    display: none
}

.expiry-cell {
    position: relative;
}

.expiry-cell::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-bottom: 10px solid #f9b115;
    border-left: 10px solid transparent;
    opacity: 0;
    transition: opacity .12s ease-in-out;
    z-index: 10;
}

.expiry-cell:hover::after {
    opacity: 1;
}

.expiry-cell[aria-describedby]::after {
    opacity: 1;
}

.expiry-cell:has(.status-icon[aria-describedby])::after {
    opacity: 1;
}

.popover-body {
    padding: 0px;
}

.status-icon-pic {
    width: 1.05em;
    height: 1.05em;
    vertical-align: -0.125em;
    object-fit: contain;
}



.icon-only {
    border: none;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

    .icon-only::after {
        content: none;
    }

    .icon-only:focus {
        outline: none;
        box-shadow: none;
    }

.top-modal {
    z-index: 1060;
}

    .top-modal .modal-dialog {
        z-index: 1061;
    }

.custom-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6); /* darker than default */
    z-index: 1055; /* above first modal (1050), below second modal (1060) */
}

/* Review Dashboard specific styles */
/* Year Calendar Grid */
.year-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.month-calendar {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.month-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.month-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* Mini Calendar Grid */
.mini-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.mini-weekdays {
    display: contents;
}

.mini-weekday {
    padding: 0.25rem;
    text-align: center;
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.mini-calendar-days {
    display: contents;
}

.mini-calendar-day {
    min-height: 2rem;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background: white;
    transition: all 0.2s;
    position: relative;
}

    .mini-calendar-day:hover {
        background: #f8fafc;
        border-color: #cbd5e1;
    }

    .mini-calendar-day.today {
        background: #eff6ff;
        border-color: #3b82f6;
    }

    .mini-calendar-day.empty {
        background: transparent;
        border: none;
    }

.mini-day-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mini-day-number {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.75rem;
    margin-bottom: 0.125rem;
}

.mini-day-events {
    display: flex;
    flex-wrap: wrap;
    gap: 0.125rem;
    flex-grow: 1;
}

.mini-event-item {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

    .mini-event-item.review {
        background: #f59e0b;
    }

        .mini-event-item.review.completed {
            background: #10b981;
        }

    .mini-event-item.task {
        background: #6366f1;
    }

        .mini-event-item.task.completed {
            background: #10b981;
        }

    .mini-event-item:hover {
        transform: scale(1.5);
    }

/* Responsive adjustments */
@media (max-width: 1200px) {
    .year-calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .year-calendar-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }

    .month-calendar {
        padding: 0.75rem;
    }

    .mini-calendar-day {
        min-height: 1.5rem;
        padding: 0.125rem;
    }

    .mini-day-number {
        font-size: 0.625rem;
    }

    .mini-event-item {
        width: 3px;
        height: 3px;
    }
}

@media (max-width: 576px) {
    .year-calendar-grid {
        grid-template-columns: 1fr;
    }
}

.improvement-point-count {
    border-radius: 50%;
    text-align: center;
    line-height: 1rem;
    display: inline-block;
    width: 1rem;
    height: 1rem;
}
.improvement-point-count:hover {
    background-color: var(--selected-row-bg-color);
 
  
}


    .status-dot {
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
        display: inline-block;
    }