.font-override-dynamic-content *:not(.fa):not(.icon) {
  font-family: "Inter", sans-serif !important;
}

select{
    display: inline-block;
    width: auto;
    height: calc(1.5em + 1.5rem + 2px);
    padding: .75rem 1.25rem;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.5;
    color: #434343;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #D8D8D8;
    box-shadow: inset 0 2px 3px 0 rgb(0 0 0 / .11);
    border-radius: 12px;
    transition: border-color 0.15s ease-in-out,box-shadow 0.15s ease-in-out;
}
 
.impact-bar.low {
    background: #0aa401;
}
.impact-bar.medium {
    background: #209bff;
}
.impact-bar.high {
    background: #faa300;
}
.impact-bar.critical {
    background: #fe2626;
}
 
.impact-bar:first-child {
    height: 5px;
}
.impact-bar:nth-child(2) {
    height: 12px;
}
.impact-bar:nth-child(4) {
    height: 24px;
}
.impact-bar:nth-child(3) {
    height: 16px;
}
.form label span {
    color: #989898;
    font-size: 15px;
    font-weight: 300;
    position: static !important;
}
.impact-bar {
    text-indent: -9999px;
}
.impact-bar {
    width: 5px;
    height: 5px;
    background: #e0e0e0;
    display: inline-block;
    vertical-align: bottom;
}
.notes {
    background: #edf5f8;
    color: #000;
    font-size: 17px;
    font-weight: 400;
    padding: 15px 25px;
    text-align: center;
    margin-top: 25px;
    position: relative;
}
.select2-container {
    z-index: 1050; /* Bootstrap modal */
}

.select2-dropdown {
    z-index: 1060; /* Ensure it appears above the modal */
}

.mform .form-inline .form-group.\!mr-3 {
    margin-right: 0.75rem !important;
}

.policy-manager-container {
    padding-top: 20px;
}
/* 
.card {
    border: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.card-header {
    border-radius: 0.5rem 0.5rem 0 0;
    padding: .35rem;
} */

.section-list .list-group-item {
    border-left: none;
    border-right: none;
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.section-list .list-group-item:hover {
    background-color: #f1f3f5;
}

.section-list .list-group-item.active {
    background-color: #e9ecef;
    font-weight: bold;
}

.page-item-active-link::before {
  content: "" !important;
  top: calc(50% - 4px);
  width: 8px;
  border-radius: 8px;
  display: block !important;
  height: 8px;
  position: absolute;
  background-color: #8096a3;
  right: 10px;
}

#section-description {
    min-height: 25px;
}

.dropdown-menu {
    min-width: 150px;
}

.mform .form-inline .form-control, .mform .form-inline .custom-select{
    width: 80%;
}

.btn-sm.btn-light {
    background-color: #fff;
    border: 1px solid #ccc;
}

.btn-sm.btn-light:hover {
    background-color: #f8f9fa;
}



.bg-baz-primary {
    background-color: var(--baz-primary-color, #005fa3) !important; /* fallback to standard BAZ blue */
}
.bg-baz-secondary {
    background-color: var(--baz-secondary-color, #017d73) !important; /* fallback to standard BAZ green */
}

.checkbox-card {
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.checkbox-card:hover {
    border-color: #0d6efd;
    background-color: #f0f8ff;
}
.checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-card.checked {
    border: 2px solid #007bff;
    background-color: #e9f5ff;
}


.btn-clear-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: #888;
    cursor: pointer;
    display: none;
}
input[type="search"]::-webkit-search-cancel-button {
    display: none;
}
.table th, .table td {
    border: 1px solid #ddd;
    padding: 8px;
}

/* Bootstrap DataTable Pagination Styles */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .pagination {
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    margin-left: 2px;
    margin-right: 2px;
    color: #002d47 !important; /* BAZ primary */
    background: #fff;
    border: 1px solid #e0e0e0; /* BAZ border */
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.active {
    color: #fff !important;
    background: #002d47 !important; /* BAZ primary */
    border-color: #002d47 !important;
    z-index: 2;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.active) {
    background: #e3f2fd; /* BAZ light primary */
    color: #002d47 !important; /* BAZ primary */
    border-color: #90caf9;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    color: #bdbdbd !important; /* BAZ disabled */
    background: #fff;
    border-color: #e0e0e0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.6;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
	padding: .12rem .75rem !important;
	font-size: .85rem;
}
.accordion-button {
    font-weight: 500 !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    background-color: transparent !important;
    position: relative;
    box-shadow: none !important;
}
.accordion-button:not(.collapsed)::after {
    transform: rotate(-180deg); 
}
.accordion-button.collapsed::after {
    transform: rotate(0deg); 
}
.filemanager .fp-navbar {
    display: none !important;
}



#topofscroll.show-drawer-left {
  display: flex;
}

#topofscroll.show-drawer-left #page-content {
  width: calc(100% - 400px);
  margin-right: 20px;
}
#topofscroll.show-drawer-left .page-course-content {
  margin-top: 30px;
}

.page-header-wrapper {
    position: sticky;
    top: 115px;
    background: #fff;
    padding: 25px 0 20px;
    z-index: 10;

}
.policycontent {
	border: 1px solid #D8D8D8;
	border-radius: 12px;
	padding: 12px !important;
}
.policyname {
	font-weight: 400;
	font-size: 1rem;
}
.policydetails{
    font-size: 14px;
}
.text_to_html {
	/* border: 1px solid #d8d8d8; */
	padding: 0;
	background-color: #fff;
	border-radius: 12px;
}
.policy-title-accordion
{
    padding: 0.75rem !important;
}
.hide-button{
    display: none;
}

.policylink {
    flex-grow: 1 !important;
	font-weight: 500;
	font-size: 14px;
	color: #212121;
    position: relative;
}
.gap-1 {
    gap: 4px;
}
.gap-4 {
    gap: 16px
}

.gap-8 {
    gap: 32px;
}
.user-info-lable{
    padding: 4px 12px;
    border: 1px solid #D8D8D8;
	border-radius: 8px;
}

.rounded-none{
    border-radius: 0 !important;
}
.icon-24{
    height: 24px !important;
    width: 24px !important;
}
.icon-16{
    height: 16px !important;
    width: 16px !important;
}

.sined-policy{
    border-radius: 5px;
    height: 25px;
    width: 25px;
    text-align: center; 
    line-height: 25px;   
}
.font-14{
    font-size: 14px;
}
.white-space-nowrap {
    white-space:nowrap;
}

.form-select {
	background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23434343' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right 10px center / 8px 10px no-repeat !important;
    -webkit-appearance: none; /* Safari / iOS */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Standard */
	padding-right: 2.25rem;
}
.modal-body{
    padding: 0.5rem !important;
}
.modal-body .card{
    padding: 0 !important;
}
#mysop-table thead th, #all_cat_policies thead th, #all_cat_sops th {
    position: relative;
    padding-right: 28px !important; /* Space for icon */
}

/* Remove default background arrows */
#mysop-table thead .sorting,
#mysop-table thead .sorting_asc,
#mysop-table thead .sorting_desc,

#all_cat_sops thead .sorting,
#all_cat_sops thead .sorting_asc,
#all_cat_sops thead .sorting_desc,

#all_cat_policies thead .sorting,
#all_cat_policies thead .sorting_asc,
#all_cat_policies thead .sorting_desc {
    background-image: none !important;
}

/* Default state: neutral (both arrows) - only show if column is NOT actively sorted */
#mysop-table thead th.sorting:not(.sorting_asc):not(.sorting_desc)::after,
#all_cat_sops thead th.sorting:not(.sorting_asc):not(.sorting_desc)::after, 
#all_cat_policies thead th.sorting:not(.sorting_asc):not(.sorting_desc)::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f884";           /* fa-up-down (perfect neutral icon in FA6) */
    /* Or use: "\f0dc" for classic arrows */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.9em;
}

/* Active ascending */

#mysop-table thead th.sorting_asc::after,
#all_cat_sops thead th.sorting_asc::after,
#all_cat_policies thead th.sorting_asc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f160";           /* fa-sort-up */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    color: #434343;
    font-size: 1em;
}

/* Active descending */
#mysop-table thead th.sorting_desc::after,
#all_cat_sops thead th.sorting_desc::after,
#all_cat_policies thead th.sorting_desc::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f161";           /* fa-sort-down */
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    color: #434343;
    font-size: 1em;
}
/*
 * SOP view: keep embedded section/subsection images responsive.
 *
 * Editor images are stored with explicit width/height attributes (e.g.
 * width="1202"), which overflow the nested Moodle `.no-overflow` wrappers
 * (each is overflow:auto), making every nesting level render its own
 * scrollbar. Constraining images to the container width removes the overflow,
 * and therefore all the extra scrollbars, while preserving aspect ratio.
 */
#page-content .no-overflow img:not(.sign-img),
#page-content .sopsubcontent img:not(.sign-img),
#page-content .sopcontent img:not(.sign-img) {
    max-width: 100%;
    height: auto;
}

/*
 * Signature images (pharmacy authorisation / "Reviewed and Approved by" table)
 * are authored with height="50". The responsive rule above sets height:auto,
 * which overrides that HTML attribute and blows the signature up to full size.
 * Pin the signature back to its intended small size and exclude it above.
 */
#page-content .sign-img {
    height: 50px !important;
    width: auto;
    max-width: 100%;
}
