/* Forces the AdminLTE styles in the menu form. */
#menuForm li.header {
     color: #4b646f;
     background: #1a2226;
 }

#menuForm li a {
    border-left: 3px solid transparent;
    position: relative;
    padding: 12px 5px 12px 15px;
    display: block;
}

#menuForm li a .fa {
    width: 20px;
}

#menuForm li a:hover {
    text-decoration: none;
    outline: none;
    color: white;
}

/* Aligns the contents of footers of panels (usually buttons) to the right. */
body div.ui-panel div.ui-panel-footer {
    text-align: right;
}
body div.ui-datatable div.ui-datatable-footer {
    text-align: right;
}
body div.ui-dialog div.ui-dialog-footer {
    text-align: right;
}

/* Removes border from paginators in CRUD data tables. */
body div.ui-datatable div.ui-paginator-bottom {
    border-bottom: none;
}

/* Fixes Font Awesome x PrimeFaces bug in which some icons don't work. */
.fa {
    font-family: 'FontAwesome';
}

/* Prevents icons from becoming white when selected in data tables. */
body .ui-datatable tr.ui-datatable-selectable.ui-state-highlight .ui-icon:before {
    color: black;
}

/* Buttons formatting in CRUD data tables. */
body .ui-datatable .ui-datatable-header {
    text-align: right;
}
body .ui-datatable .ui-datatable-header input {
    margin-left: 8px;
    width: 200px;
}
body .ui-datatable th.crudButtons2 {
    width: 110px;
    text-align: center;
}
body .ui-panel button {
    margin-left: 3px;
}
body .ui-datatable button {
    margin-left: 3px;
}
body .ui-dialog button {
    margin-left: 3px;
}

.center {
    text-align: center;
}

.menu-pad tbody>tr:hover{
    text-decoration: none;
    outline: none;
    background-color: #e4e1e1;
    transition-delay: 0.03s;
}

/* ---------------------------- */
/* Style for the new TieredMenu */
/* ---------------------------- */

.sidebar-menu {
    width: 100%;
    background-color: #222d32; /* Same background as AdminLTE sidebar */
    border: none;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Style for menu links */
.sidebar-menu .ui-menuitem-link {
    color: #b8c7ce; /* Light gray text */
    padding: 12px 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
    text-decoration: none;
}

.sidebar-menu .ui-menu-parent > .ui-menuitem-link {
    font-weight: bold;
    background-color: #222d32;
    color: #c2c7d0;
}

/* Align icons on the left */
.sidebar-menu .ui-menuitem-icon {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Hover and active menu item highlight */
.sidebar-menu .ui-menuitem-link:hover,
.sidebar-menu .ui-menuitem.active > .ui-menuitem-link {
    background-color: #222d32 !important;
    color: white !important;
}

    /* Top-level submenu style */
.sidebar-menu .ui-submenu > .ui-menuitem-link {
    background-color: #222d32; /* Slightly lighter background for submenu */
    font-weight: bold;
    width: 500px;
    padding-left: 20px;
}

/* Child submenu container */
.ui-menu .ui-menu-parent .ui-menu-child {
    width: 120%;
}
.sidebar-menu .ui-menu-child {
    background-color: #2c3b41;
    padding-left: 10px;
}

/* Separator between items */
.sidebar-menu .ui-menuitem {
    border-bottom: 1px solid #2b3c42;
}

/* ----------------------------- */
/* Style for the Growl component */
/* ----------------------------- */
div.ui-growl {
    width: 40%;
    float: right;
    left: auto;
}


/* -------------------------------- */
/* Fix for the dataTatble paginator */
/* -------------------------------- */

/* 1. Remove the PrimeFaces standard icons (background image). */
.ui-paginator .ui-icon {
    background-image: none !important;
    text-indent: 0 !important; /* Garante que o caractere da fonte apareça */
    font-family: 'FontAwesome' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    display: inline-block;
    -webkit-font-smoothing: antialiased;
}

/* 2. Define FontAwesome icons instead. */
.ui-icon-seek-first:before { content: "\f100" !important; } /* fa-angle-double-left */
.ui-icon-seek-prev:before  { content: "\f104" !important; } /* fa-angle-left */
.ui-icon-seek-next:before  { content: "\f105" !important; } /* fa-angle-right */
.ui-icon-seek-end:before   { content: "\f101" !important; } /* fa-angle-double-right */

/* Fixes date picker button colors. */
.ui-datepicker-prev, .ui-datepicker-next {
    background-color: #3c8dbc;
    border: none;
}

/* PrimeFaces-style rounded button on AdminLTE. */
.rounded-button {
    border-radius: 2rem !important;
    width: 2rem !important;
    padding: 0 !important;
    height: 2rem !important;
}

.logo-lg {
    font-size: 1.8rem;
}

.ui-column-title {
    font-weight: bold;
}
