html, body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

html {
    font-size: 12px;
}

@media (min-width: 768px) {
    html {
        font-size: 12px;
    }
}

.container-fluid banner-img {
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI';
    background-color: #f7f9fc;
}

.content-wrapper {
    flex: 1 0 auto;
}

.cf-padding {
    padding-right: 5%;
    padding-left: 5%;
}

body.login_noscroll {
    margin-bottom: 0px;
    overflow: hidden;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: start;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.header-img {
    width: 140px;
    height: auto;
}

.footer {
    background: rgba(36,126,98,1);
    color: white;
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0; 
}

.ft {
    color: white;
}

/*------ Login ------*/
.login-img {
    background-image: url("/images/login.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
    width: 100%;
}

.login_img2 {
    height: 80px;
    width: auto;
    display:block;
    margin: 0 auto;
}

.row {
    margin-left: 0;
    margin-right:0;
}

.microsoft_logo{
    width: 20px;
    height: auto;
    margin-right: 10px;
}

/*------- Menu - Header -------*/
.nav-item {
    margin: 10px;   
}

.nav-item, .nav-link, .dropdown, .navbar-text {
    color: rgb(134, 134, 134);
    font-size: 14px;
}

.nav-link:hover, .nav-link:active, .dropdown:active {
    color: rgba(74, 154, 69, 1);
}

.dropdown-item {
    color: rgb(134, 134, 134);
}

.dropdown-item:hover {
    background: rgba(36, 123, 98, 1);
    color: white !important;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: rgba(74,154,69,1);
}


/*------ Buttons ------*/

.btn {
    font-weight: 500;
}

/* Botón solido 1 */
.btn_v1 {
    background-color: rgba(74,154,69,1);
    color: white;
}

.btn_v1:hover, .btn_v1:active, .btn_v1:disabled {
    background-color: rgba(30,102,25,1) !important;
    border: none !important; 
    color: white;
}

/* Botón outline */
.btn_2 {
    outline-color: rgba(37,123,100,1);
    fill: none;
    color: rgba(37,123,100,1);
}

.btn_2:hover {
    outline-color: rgba(37,123,100,1);
    fill: rgba(37,123,100,1);
    color: white;
}

.btn_2:active {
    outline-color: rgba(11,85,65,1);
    fill: rgba(11,85,65,1);
    color: white;
}


/* Botón solido 2 - Azul (aprobador) */
.btn_v3 {
    background-color: rgba(93,80,214,1);
    color: white;
}

.btn_v3:hover, .btn_v3:active {
    background-color: rgba(55,41,180,1);
    color: white;
}

/* Botón solido 3 - Verde oscuro*/
.btn_v4 {
    background-color: rgba(36,126,98,1);
    color: white;
}

.btn_v4:hover, .btn_v4:active {
    background-color: rgba(8,78,60,1);
    color: white;
}

/* Botón para notas y archivos */
.btn_v5 {
    outline-color: rgba(37,123,100,1);
    fill: none;
    color: rgba(37,123,100,1);
}

.btn_v5:hover, .btn_v5:active {
    outline-color: rgba(37,123,100,1);
    background: rgba(35,123,100,1);
    color: white;
}

/* Botón Regresar*/
.btn_back {
    color: rgb(134, 134, 134);
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
    padding-bottom: 8px;
    -webkit-text-stroke: 2px;
}

.btn_back:hover {
    color: rgba(74,154,69,1);
    transform: translateX(-4px);
    -webkit-text-stroke: 2px;
}


/* Menu - Index*/
.banner-welcome {
    position: relative;
    height: 120px;
    background-image: url("/images/login.jpg");
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid rgba(74, 154, 69, 1);
    margin-bottom: 2%;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 8%;
}

.text-welcome {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.card_menu {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    border: none;
}

.btn_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;  
}

.icon_menu {
    font-size: 30px;
    color: rgb(255, 255, 255, 0.7);
    margin-right: 15px; 
}

.btn_menu:hover {
    background: linear-gradient(90deg, rgba(49, 110, 39, 1) 0%, rgba(7, 28, 7, 1) 100%);
    transform: translateY(-4px); 
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.btn_menu:hover .icon_menu {
    color: rgba(74,154,69,1);
}

.btn_menu:hover .icon_menuAdmin {
    color: rgba(36,126,98,1);
}


/*----- form control -----*/

.form-control, .form-select, .form-check-input {
    background-color: rgba(74,154,69,0.15);
    color: rgb(12, 86, 7);
    margin-top: 10px;
    margin-bottom: 10px;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:hover, .form-control:focus, .form-select:hover, .form-select:focus, .form-check-input:hover, .form-check-input:focus {
    background-color: rgba(74,154,69,0.2);
    color: rgba(18,110,11,1);
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 0.25rem rgba(74, 154, 69, 0.4);
}

.formInputs {
    text-transform: uppercase;
}

.form-control:read-only, .form-check-input:read-only {
    background-color: rgba(242,242,242,1);
    color: rgb(52, 52, 52);
}

/* Formato de autorelleno */
.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus,
.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: rgba(74,154,69,1) !important;
    transition: background-color 5000s ease-in-out 0s !important;
}

/* Quitar spin buttons de campos numéricos */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 5%;
    margin-top: 12px;
    background-color: #ffffff;
}

.card-header {
    background-color: rgba(37, 123, 100, 1) !important;
    color: white !important;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 8px 8px 0px 0px !important;
    border: none;
}


/* Switch */
.form-check-input:checked {
    background-color: rgba(36,126,98,1);
    color: rgba(74,154,69,1);
    
}

.badge {
    background-color: rgba(36,126,98,1);
}

/*----- General ------*/

/* Text */
.tittle1 {
    color: rgb(10, 78, 59);
    font-family: "Helvetica LT Std";
}

.h3 {
    margin-bottom: 0px;
    font-weight: 500;
}

.form-label, .form-check-label, .th {
    font-weight: 500;
    color: rgba(90,90,90,1);
    margin-top: 6px;
}

.icon-profile {
    font-size: 75px;
    color: rgba(74,154,69,1);
    margin: 2px;
}

/* Tabla requisiciones */
.table-container {
    border-radius: 10px;
    overflow-x: auto;
    margin-top: 30px;
    border-radius: 10px 10px 0px 0px;
    overflow-x: auto;
}

.table-header {
    background-color: rgba(37,123,100,1);
    color: white;
    min-width: 100%;
    padding: 10px;
    font-weight: bold;
    border-radius: 10px 10px 0px 0px;
}

.table-r {
    border-collapse: separate;
    min-width: 100%; 
    width: max-content;
}

.table-r thead {
    background-color: rgba(37,123,100,1);
    color: white;
    font-size: 14px;
    padding: 5px;
    border-radius: 10px;
}

.table-r tbody th {
    background-color: rgba(74, 154, 69, 0.7);
    color: white;
}

.table-r tr {
    width: 100%;
}

.table-r th, .table-r td{
    padding:10px;
    padding-left: 20px;
    text-align: start;
}

/* Datatable - Mostrar registro y buscar */
div.dt-container .dt-layout-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important; 
    margin-bottom: 10px;
    margin-top: 20px;
}
div.dt-container .dt-layout-cell {
    width: 100% !important;
    margin-bottom: 0 !important;
}

.datatable {
    width: 100%!important;
    min-width: 100%;
    table-layout: fixed;
}

/* Column resize - Para tablas PO*/
#PO_Table, #UsersTable, #RolesTable, #ActionsTable, #DepartmentsTable, #TrashTable {
    width: max-content !important; 
    table-layout: fixed;
}

#RolePermission_table, #linesTable {
    table-layout: fixed;
    width: 100%;
    min-width: max-content;
}

th {
    position: relative;
}

.table.dataTable th.dt-type-numeric, table.dataTable th.dt-type-date, table.dataTable td.dt-type-numeric, table.dataTable td.dt-type-date, .dt-column-title {
    text-align: left !important;
    padding-right: 10% !important;
}

#PO_Table td.text-end, #PO_Table th.text-end, #PO_Table th.text-end .dt-column-title {
    text-align: right !important;
    padding-right: 0.5rem !important;
}

table.dataTable thead tr th.col-center, table.dataTable thead tr th.col-center .dt-column-title, table.dataTable tbody tr td.col-center {
    text-align: center !important;
}

.resizer {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    cursor: col-resize;
    height: 100%;
}

.resizer:hover {
    background-color: rgba(0,0,0,0.1);
}

/* "Pantalla / indicador de carga */
#globalLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999; 
    display: none;
    justify-content: center;
    align-items: center;
}

/* Tamaño del spinner */
#globalLoader .spinner-border {
    width: 4rem;
    height: 4rem;
    border-width: 0.3em;
}

.uploadFileContainer {
    background: rgb(74, 154, 69, 0.15);
    padding: 10px;
    border-radius: 5px;
}

.icon-modal {
    color: rgb(10, 78, 59);
}

.statusBadge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Colores para estados PO */
.text-orange {
    color: rgba(250, 107, 0, 1) !important;
}

.bg-orange-light {
    background-color: rgb(250, 107, 0, 0.15) !important;
}

.text-purple {
    color: rgb(142, 1, 201)
}

.bg-purple-light {
    color: rgb(142, 1, 201, 0.25)
}


/* Dropdown notificaciones */
.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(74, 154, 69, 0.7);
    border-radius: 10px;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 5px;
    min-width: 18px;
    text-align: center;
}

.notification-menu {
    width: 300px;
    margin-top: 10px !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 8px;
    padding: 0;
}

.notification-menu .dropdown-header {
    font-weight: bold;
    background-color: #fcfcfc;
    border-bottom: 1px solid rgb(228, 228, 228);
    text-align: center;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

.notification-list {
    padding: 5px 0;
    max-height: 300px;
    overflow-y: auto;
}

.notification-mark {
    font-size: 6px;
    position: relative;
    bottom: 2px;
}

.clickeable-row {
    cursor: pointer;
}

/* Modal filtro */
.user-item-hover:hover {
    background-color: #f8f9fa;
    transition: 0.2s;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    max-height: 250px;
    overflow-y: auto;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Sidebar */
.sidebar {
    min-height: calc(100vh - 56px);
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    background-color: #f8f9faff;
    position: sticky;
    top: 56px;
    z-index: 100;
}

.sidebar .nav-item {
    margin: 0;
    padding: 0;
    width: 100%;
}

.sidebar .nav-item .nav-link {
    width: 100%;
    padding: 10px 15px !important;
}

.sidebar .nav-item .nav-link:hover {
    background-color: rgb(221, 221, 221);
    color: rgb(10, 78, 59) !important;
}

.sidebar .nav-item .nav-link.active {
    background-color: rgba(8, 78, 59, 0.90);
    color: white !important;
}

.transition-all {
    transition: all 0.3s ease-in-out;
}

.text-dgreen {
    color: rgba(8, 78, 59, 0.90);
}