/*=== FONTS ===*/
/* roboto-300 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/roboto-v50-latin-300.woff2') format('woff2');
}

/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/roboto-v50-latin-regular.woff2') format('woff2');
}

/* roboto-700 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/roboto-v50-latin-700.woff2') format('woff2');
}

/* --- STACKED HALF-WIDTH STATUS SLIDER --- */

/* Force the Editor Field container to stack vertically */
div.DTE_Field_Type_status {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* Keeps slider to the left */
    width: 100% !important;
    margin-bottom: 15px;
}

div.DTE_Field_Type_status label {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
    margin-bottom: 0.5rem !important; /* Bootstrap standard margin */
    padding-top: 0 !important;
    
    /* Matching standard inputs */
    font-weight: 400 !important; 
    font-size: 1rem; 
    color: #212529; /* Standard Bootstrap dark grey */
    display: inline-block;
}

/* If you are using Bootstrap Floating Labels in your Core config */
/* We add a little top margin to align with where the floating label would sit */
div.DTE_Field_Type_status {
    margin-top: 0.5rem;
}

/* STATUS Slider Track (50% Width) */
.status-slider-track {
    position: relative;
    display: flex;
    background: #f1f3f5;
    border: 1px solid #dee2e6;
    border-radius: 6px; 
    padding: 2px;
    width: 50%; /* This makes it half width */
    min-width: 220px; /* Ensures text "Inactive/Active" doesn't overlap */
    height: 36px; /* Slightly sleeker height */
    overflow: hidden;
}

/* The Buttons and Thumb */
.status-opt {
    position: relative;
    z-index: 2;
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 700;
    color: #6c757d;
    cursor: pointer;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.status-opt.selected {
    color: #ffffff;
}

.status-thumb {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 2px;
    width: calc(50% - 4px);
    border-radius: 4px;
    background-color: #adb5bd;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Lock the outer shell so the whole page doesn't bounce */
html.layout-fixed, 
body.layout-fixed {
    height: 100% !important;
    overflow: hidden !important; 
}

/* Target the main area - DO NOT use Flexbox here */
.app-main {
    /* Height = Screen - Header(50px) - Footer(50px) */
    height: calc(100vh - 101px) !important; 
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative;
}

/* Reset the Footer to be a full-width strip at the bottom */
.app-footer {
    position: fixed !important;
    bottom: 0;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important; /* Always start with full width */
    height: 50px;
    z-index: 1030;
    background: #fff;
    border-top: 1px solid #dee2e6;
    margin: 0 !important;
    
    /* This pushes the CONTENT inside the footer, not the footer itself */
    padding-left: 250px !important; 
    
    transition: padding-left 0.3s ease-in-out !important;
}

/* When Sidebar is COLLAPSED (Closed) */
/* The footer padding drops to 0 (or mini-width) so it assumes the whole bottom */
.sidebar-collapse .app-footer,
.sidebar-collapsed .app-footer {
    padding-left: 0 !important; /* OR 4.6rem if you want it to stop at the icons */
}

/* Mobile: Always assume whole bottom */
@media (max-width: 991.98px) {
    .app-footer {
        padding-left: 0 !important;
    }
}

/* Keep your App-Main height logic as it was working */
.app-main {
    height: calc(100vh - 101px) !important; 
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* BASE STATE (Normal links - White) */
#navigation .nav-link .nav-icon,
#navigation .nav-link .nav-arrow,
#navigation .nav-link p {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important; /* Base color is white */
    width: auto;
    transition: none !important;
}

/* ACTIVE STATE (The "Primary" Color) */
/* This targets the link when it has the .active class */
#navigation .nav-link.active,
#navigation .nav-link.active .nav-icon,
#navigation .nav-link.active .nav-arrow,
#navigation .nav-link.active p {
    /* Change this hex code to your preferred 'Primary' color */
    color: var(--primary-color) !important; 
    font-weight: bold;
}

/* HOVER STATE (White or light highlight) */
#navigation .nav-link:hover .nav-icon,
#navigation .nav-link:hover .nav-arrow,
#navigation .nav-link:hover p {
    color: #ffffff !important; 
}

/* LAYOUT & ROTATION */
#navigation .nav-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
}

#navigation .nav-link p {
    flex: 1;
    margin: 0 0 0 10px !important;
}

#navigation .menu-open > .nav-link > .nav-arrow {
    transform: rotate(90deg) !important;
}


/* Force the collection/searchbuilder to a reasonable width */
div.dt-button-collection {
    width: auto !important; /* Overrides that 1630px monster */
    min-width: 450px;       /* Keeps SearchBuilder readable */
    max-width: 90vw;        /* Prevents it from going off-screen */
    left: auto !important;
    right: 0 !important;    /* Aligns it to the right of the button bar */
    transform: none !important;
}

/* Fix for SearchBuilder specifically inside the popover */
div.dtsb-searchBuilder {
    padding: 1rem;
    background: var(--bs-body-bg);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Ensure the background overlay covers the fixed layout correctly */
div.dt-button-background {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999;
}

/*=== GLOBAL ===*/
.pagination .page-item .page-link {
    color: var(--pagination-color) !important; /* Default text color */
    background-color: #fff !important; /* Default background */
    border: 1px solid #dee2e6 !important; /* Default border */
}

.pagination .page-item.active .page-link {
    background-color: var(--pagination-color) !important; /* Active page background */
    border-color: #dee2e6 !important; /* Active page border */
    color: #fff !important; /* Active page text */
}

.pagination .page-item .page-link:hover {
    color: var(--pagination-hover-color) !important;
    background-color: #e9ecef !important;
    border-color: #dee2e6 !important;
}

.my-text-dark  
{
    font-family: var(--font-family);
    font-size: 0.8em;
    font-weight: normal;
    color: black;
}

.my-text-light
{
    font-family: var(--font-family);
    color: white;
}

.my-link
{
    color: var(--primary-color);
    text-decoration: none;
    user-select: none;
}

.my-link-disabled
{
    color: var(--primary-color-disabled);
    text-decoration: none;
    pointer-events: none;
}

/*=== SIDEBAR ===*/
.app-sidebar
{
    background-color: black;
}

/*= ICON =*/
li > a > svg  {                         
    color: white;
}

/*= ARROW =*/
.bi-chevron-right{                      
    color: white;
}

/*= PARENT =*/
.menu-parent
{
    color: var(--menu-parent-color);
    user-select: none;
}

/*= CHILD =*/
.menu-child
{
    color: var(--menu-child-color);
    user-select: none;
}


.app-wrapper
{   
    
}

.app-main-wrapper
{

}

/*=== SIDEBAR - CARD ===*/
.card
{
    color: var(--primary-color);
}

.card-header
{
    height: 50px;
}

/*=== SIDEBAR ===*/
.sidebar-wrapper
{
    padding: 0px;
    margin: 0 auto;
}

/*=== LOGO ===*/
.brand-logo-light 
{
    height: 97px;
    width: 100%;
    background-color: black;
    color: white;
}

.brand-logo-dark
{
    height: 97px; 
    width: 100%;
    background-color: white;
    color: black;
}


.brand-logo-text-light 
{
    font-family: var(--font-family);
    font-size: 1em;
    color: black;
    padding-left: 10px;
    line-height: 12px;
}

.brand-logo-text-dark 
{
    font-family: var(--font-family);
    font-size: 1em;
    /*color: white;*/
    color: black;
    padding-left: 10px;
    line-height: 12px;
}

.brand-env-text-light 
{
    color: var(--primary-color);
    font-size: 0.5em;
}

.brand-env-text-dark 
{
    color: var(--primary-color);
    font-size: 0.5em;
    user-select: none;
}

/*=== FOOTER ===*/

.my-footer-light
{
    font-family: var(--font-family);
    font-size: 0.7em;
    font-weight: normal;
    color: black;
    background-color: white;
    user-select: none;
}

.my-footer-dark
{
    font-family: var(--font-family);
    font-size: 0.7em;
    font-weight: bold;
    color: white;
    background-color: black;
    user-select: none;
}

.my-error-text
{
    font-family: var(--font-family);
    font-size: 0.7em;
    user-select: none;
}

/*=== HEADER ===*/
.app-wrapper > nav 
{
    background-color: var(--primary-color);
}

.app-wrapper > nav > div > ul > li > a > svg  
{
    color: black;
}

.app-content-header {
    font-family: var(--font-family);
    font-size: 0.7em;
    font-weight: normal;
    color: white;
    background-color: black;
    height: 40px;
    position: relative;
    margin: 0;
    /*border: 8px solid black;*/
}

.app-content-header-title
{
    margin: 0;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    user-select: none;
}

/*=== FOOTER ===*/
.app-footer
{
    user-select: none;
}

/*=== OTHER ===*/
.dropdown-item
{
    user-select: none;
}

.brand-link
{
    user-select: none;
}

/*=== BUTTONS - Override Bootstrap's default button color ===*/
a.btn.btn-primary,
input.btn.btn-primary,
button.btn.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

a.btn.btn-primary:hover,
input.btn.btn-primary:hover,
button.btn.btn-primary:hover {
  background-color: var(--primary-hover-bgcolor);
  border-color: var(--primary-hover-color);
}

a.btn.btn-primary:active,
input.btn.btn-primary:active,
button.btn.btn-primary:active {
  background-color: var(--primary-click-bgcolor);   /* Change background color on click */
  border-color: var(--primary-click-bordercolor);   /* Change border color on click */
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);  /* Add a subtle shadow on click */
}

/*=== DATATABLE - HEADER ===*/
table.dataTable th{
  font-family: var(--font-family);
  font-size: 0.9em;
  font-weight: bold;
}

/*=== DATATABLE - ROW ===*/
table.dataTable td{
  font-family: var(--font-family);  
  font-size: 0.875em;
}

/*=== DATATABLE - ROW SELECTED ===*/
table.dataTable tbody tr.selected {
    color: var(--dt-row-selected) !important;
    background-color: #eeeeee !important;
}

table.dataTable tbody tr.selected td,
table.dataTable tbody td.selected {
    border-top-color: white !important;
    box-shadow: inset 0 0 0 9999px var(--dt-row-selected) !important;
}

table.dataTable tbody tr:active td {
    background-color: var(--dt-row-selected) !important;
}

/*=== DATATABLE - BUTTONS ===*/

.btn-create{
  background-color: var(--btn-create);
  border-color: var(--btn-create);
}

.btn-edit{
  background-color: var(--btn-edit);
  border-color: var(--btn-edit);
}

.btn-remove{
  background-color: var(--btn-remove);
  border-color: var(--btn-remove);
}

.btn-colvis{
  background-color: var(--btn-colvis);
  border-color: var(--btn-colvis);
}

.btn-export{
  background-color: var(--btn-export);
  border-color: var(--btn-export);
}

.btn-builder{
  background-color: var(--btn-builder);
  border-color: var(--btn-builder);
}

/*=== DATATABLE - ROW HOVER ===*/
table.dataTable tbody tr:hover, table.dataTable tbody tr:hover td {
    background-color: var(--primary-hover-bgcolor) !important;
    color: var(--primary-hover-color);
}

/*=== DATATABLE - PAGINATION ===*/
.pagination > li > a,
.pagination > li > span {
    color: var(--pagination-color);
}
.pagination > .active > a:focus,
.pagination > .active > a,
.pagination > .active > span:focus,
.pagination > .active > span{
    background-color: var(--pagination-color);
    border-color: var(--pagination-color);
}

.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: var(--pagination-hover-color);
    border-color: var(--pagination-hover-color);
}

/*=== DATATABLE - ALIGN NUMERIC COLUMNS LEFT ===*/
table.dataTable th.dt-type-numeric,table.dataTable th.dt-type-date,table.dataTable td.dt-type-numeric,table.dataTable td.dt-type-date {
    text-align: left;
}

/*=== DATATABLE EDITOR - BUTTONS ACTIVE/INACTIVE ===*/
button.inputButton {
    float: left;
    text-align: center;
    display: block;
    cursor: pointer;
    margin: 0 20px 10px 0;
    padding: 6px 0;
    background: #F8F8F8;
    background: -webkit-gradient(linear, center bottom, center top, from(#CCC), to(white));
    background: -moz-linear-gradient(top, white, #CCC);
    background: linear-gradient(to bottom, white, #CCC);
    text-shadow: 0 1px 0 white;
    border: 1px solid #999;
    border-radius: 3px;
    /*-moz-border-radius: 3px;*/
    -webkit-border-radius: 3px;
    box-shadow: 0px 0px 2px #999;
    /*-moz-box-shadow: 0px 0px 2px #999;*/
    -webkit-box-shadow: 0px 0px 2px #999;
    width: 80px;
}
 
button.inputButton.selected {
    font-weight: normal;
    background: #02475A;
    background: -webkit-gradient(linear, center bottom, center top, from(#777), to(#333));
    background: -moz-linear-gradient(top, #333, #777);
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-color));
    box-shadow: inset 0px 0px 2px #222;
    /*-moz-box-shadow: inset 0px 0px 2px #222;*/
    -webkit-box-shadow: inset 0px 0px 2px #222;
    color: white;
    text-shadow: none;
}

.folder_explorer
{
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 99%;
    z-index: 10;
}

ul.jqtree-tree li.jqtree-selected > .jqtree-element,
ul.jqtree-tree li.jqtree-selected > .jqtree-element:hover 
{ 
        background: var(--primary-hover-color);
        /*background: linear-gradient(#bee0f5, #89afca);*/
        background: linear-gradient(to right, #eef2f3, #8e9eab);
        
        
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.jqtree-closed-icon
{
    color: var(--primary-color);
}

.td-small-text 
{
  font-size: 0.5rem;
}

/* 1. Force Active Parent Icons to use Version 7 */
.nav-item.menu-open > .nav-link.active .nav-icon,
.nav-item.menu-open > .nav-link .nav-icon,
.nav-link.active .nav-icon {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 900 !important;
    /* Prevent AdminLTE from changing the display type */
    display: inline-block !important;
    visibility: visible !important;
}

/* 2. Fix the Arrow icon specifically for the active state */
.nav-link.active .nav-arrow,
.menu-open > .nav-link .nav-arrow {
    font-family: "Font Awesome 7 Free" !important;
    font-weight: 900 !important;
}
