@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

body {
  background: #ffffff;
  position: relative;
  font-family:  'Roboto', sans-serif;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.003em;
  font-size: 1.3rem;
}
.responsive {
    max-width: 120px;
    height: auto;
    padding: 0px;
}

.error {
  color: red;
  font-size: .8em;
}
/*########## GLOBAL VARIABLES ############## */
:root {
    --main-bg-color: rgba(255, 229, 205, 0.96);
    --main-border: solid 2px grey;
    --radio-border: 5px;
    --interior-border: solid 1px #cccccc;
}

/*################FILES EN DESCRIPTION#######################*/
 input[type=file] {
            width: 1px;
            height: 1px;
            opacity: 0;
            overflow: hidden;
            position: relative;
            display: inline-block;
            left:15px;
            z-index: -1;
        }
 label[for*=_files] {
        font-size: 1.25em;
        font-weight: 700;
        color: #1d1d1d;
        background-color: black;
        display:inline-block;
    }
    label[for*=_files]:hover,
    label[for*=_files]:focus{
        background-color: #716e71;
    }

    label[for*=_files] {
        width: auto;
        text-align: center;
        background-color: #DBDADB;;
        border: 1px solid black;
        border-radius: 3px;
        padding: 7px 14px;
        outline: none;
        white-space: nowrap;
        -webkit-user-select: none;
        -webkit-text-fill-color: #292929;
        cursor: pointer;
        font-weight: normal;
        font-size: 11pt;
        margin-top: 10px;
        margin-left: 4px;
    }
/*//ESTO de abajo mas el margin-top10px del label[for*=filename] */
    span.help-block{
          color: #f97d1c;
          padding-left: 10px;
          display: inline-block;
          margin: 0;
        }
    .banana li.azucar a {
        border: 1px solid rgba(14, 19, 41, 0.32);
        border-radius: 5px;
        text-decoration: none;
        background-color: rgba(17, 113, 187, 0.65);
        color:white;
        padding: 4px 6px 4px 6px;
    }
    .banana li.azucar{
        display: inline;
        float: left;
        margin-right:5px;
        margin-bottom: 8px;
        -ms-transform: translate(0,15px); /* IE 9 */
        -webkit-transform: translate(0,15px); /* Safari prior 9.0 */
        transform: translate(0,15px); /* Standard syntax */
    }
    .banana li.azucar a:hover {
       text-decoration: none;
       background-color: rgb(33, 67, 120);
    }
    ul.banana {
      padding:0;
    }
    .close {
      cursor: pointer;
      margin-left: 3px;
    }
/*#####################*/
img.foto {
    height: 50%;
    width: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
}

fieldset {
    padding: 20px;
	border:3px solid #d1d2d3;
  	border-radius: 3px 18px;
  	margin-bottom: 20px;
  	}
legend {
  padding: 0.3em 0.7em;
  border:3px solid #d1d2d3;
  border-radius: 3px 12px;
  width: auto;
  color:black;
  font-size:105%;
  text-align:left;
  //text-decoration-line: underline;
  text-decoration-style: solid;
  font-weight: bold;
  //font-style:italic;
  }

h1.upper {
  font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
  font-size: 35px;
  text-align: center;
  text-transform: uppercase;
  text-rendering: optimizeLegibility;
  margin-bottom: 20px;
}
h1.elegantshadow {
  margin:10px;
  color: #434343;
  letter-spacing: 0.1em;
  text-shadow:  -1px 1px 1px #9e9c9c,  -2px 2px 1px #a8a6a6;
}
@media only screen and (max-width: 768px) {
        h1 {
            font-size: 28px !important;
        }
        h2{
            font-size: 24px !important;
            margin: 4px 0 !important;
        }
        div.fixed-table-toolbar{
            display: table-cell;
        }
    }

.required:before{
      content:"*";
      font-weight:bold;
      color:red;
}

/*################FILES EN DESCRIPTION#######################*/
 p.help-block > a,span.help-block > a{
        background-color: rgba(17, 66, 255, 0.66);
        border-radius: 5px;
        padding: 6px 9px;
        color:white;
        line-height: 3;
    }
    p.help-block > a:hover, span.help-block > a:hover{
        text-decoration: none;
        background-color: rgba(138, 135, 136, 0.56);
    }
 /*################Filtros de la tablas######################*/
input[class*='bootstrap-table-filter-control']{
      color: #ff8287;
  }
/*################Prevenir que agranden los text areas mas anchos######################*/
textarea {
    resize: vertical;
}

/*######################sidenavs###################*/
 .sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 15;
  top: 65px;
  left: 0;
  background-color: black;
  overflow-x: hidden;
  overflow-y: scroll;
  bottom: 0;
  transition: 0.5s;
  padding-top: 55px;
}

.sidenav a {
  padding: 8px 8px 8px 10px;
  text-decoration: none;
  font-size: 20px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f1f1f1;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 20px;
  font-size: 36px;
  margin-left: 50px;
}

@media screen and (max-height: 450px) {
  .sidenav {padding-top: 15px;}
  .sidenav a {font-size: 18px;}
}

div.has-search{
    margin-bottom: 0 !important;
}

div.checkbox input[type=checkbox]{
    float:none !important;
    margin-left: 10px !important;
}

.badge.badge-primary{
    background-color: darkblue !important;
}

.badge.badge-danger{
    background-color: #ec0000 !important;
}

.badge.badge-success{
    background-color: #00a90b !important;
}
a.list-group-item{
    background-color: #ffeed7;
}

/*###################### NAVBAR ###################*/
/* Base styles */
.navbar {
    position: fixed;
    transition: all 0.3s ease !important;
    z-index:1000;
    top: 0;
    left: 0;
    right: 0;
}

.navbar-light {
    background-color: #f8f9fa;
}

.navbar-brand img {
    max-height: 40px;
}

/* Widescreen styles */
@media (min-width: 992px) {
    body>div.container{
        margin-top:72px;
    }
    .navbar {
        padding: 10px 40px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .navbar a{
        line-height:25px !important;
    }
    .navbar .dropdown-item{
        min-width: 150px; /* Set the minimum width */
        width: auto !important; /* Allow the width to adjust based on content */
        white-space: nowrap !important; /* Prevent wrapping of text */
        overflow: hidden; /* Optional: Hide overflow if content exceeds width */
        text-overflow: ellipsis; /* Optional: Add ellipsis (...) for overflowing text */
        box-sizing: border-box; /* Ensures padding is included in the total width */
        }
#navbarNav > ul > li:last-child {
    position:absolute;
    right:3vw;
}
#navbarNav > ul > li > a{
    text-decoration: none !important;
}
    .navbar-nav .nav-link {
        font-size: 1.25rem;
        padding: 0.5rem 1rem;
        transition: color 0.3s ease;
        margin: 0 8px;
    }

    .navbar-nav .nav-link:hover {
        color: #007bff;
    }

    .dropdown-menu {
        display: none;
        border: none;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        line-height:25px !important;

    }

    .dropdown:hover > .dropdown-menu {
        display: block;
        animation: fadeIn 0.3s ease;
    }

    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu > .dropdown-menu {
        display: none;
        position: absolute;
        left: 100%;
        top: 0;
    }

    .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        padding: 0.5rem 1.5rem;
        font-size: 1.2rem;
    }

    .dropdown-item:hover {
        background-color: #f8f9fa;
        color: #007bff;
    }
}

/* Small screen styles */
@media (max-width: 991px) {
    body {
        padding-top: 65px; /* Adjust based on your navbar height */
    }

    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        padding: 0.5rem 1rem;
        background-color: #fff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    #navbarNav {
        transition: 1s !important;
    }

    .navbar-brand {
        margin-right: auto;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
        margin-left: 0.5rem;
    }

    .navbar-toggler-icon {
        width: 1.5em;
        height: 1.5em;
    }

    .navbar-collapse {
        position: fixed;
        top: 65px; /* Adjust based on your navbar height */
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        padding: 1rem;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.5s ease-in-out !important;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav .nav-item {
        border-bottom: 1px solid #e9ecef;
    }

    .navbar-nav .nav-link,
    .dropdown-item {
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        color: #333;
    }

    .dropdown-menu {
        display: none;
        border: none;
        padding: 0;
        margin: 0;
        width:100%!important;
    }

    .dropdown-menu.show {
        display: block;
    }

    .dropdown-item,.dropdown-submenu {
        padding-left: 1.5rem;
        width:100% !important;
    }

    .dropdown-submenu,#navbarNav > ul > li > ul > li{
        padding-left: 1.5rem;
        width:100% !important;
    }

    /* Remove dropdown arrows */
    .dropdown-toggle::after {
        display: none;
    }

    /* Style for dropdown toggles */
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /*.dropdown-toggle::before {*/
    /*    content: '\203A'; !* Right-pointing single angle quotation mark *!*/
    /*    font-size: 1.2em;*/
    /*    transition: transform 0.3s ease;*/
    /*}*/

    .dropdown-toggle[aria-expanded="true"]::before {
        transform: rotate(90deg);
    }
    div.navbar-collapse.collapse.show{
        margin:0 !important;
    }
}
nav li>a{
    line-height:21px;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/*MODALES en el pleno centro*/
body.modal-open .modal {
    display: flex !important;
    height: 100%;
}
body.modal-open .modal .modal-dialog {
    margin: auto;
}
body.modal-open .modal .modal-dialog .modal-content{
    min-width: 300px;
}

/* Change pagination color in bootstrap-table*/
.page-link {
    background-color: rgb(108, 117, 125) !important;
    color: white !important;
    border-color: #6c757d !important; /* Set border color directly */
    border-width: 1px; /* Define the border width */
    border-style: solid; /* Define the border style */

    /* Hover state for the border */
    &:hover {
        border-color: #565e64 !important;
        background-color: #5c636a !important;
    }

    /* Focus and active state */
    &:active {
        border-color: #51585e !important;
        background-color: #565e64 !important;
    }

    &:disabled {
        border-color: #6c757d !important;
        background-color: #6c757d !important;
    }
}
