/* PERSONALIZE COMMON CSS  */

/********** SIDEBAR **********/

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";
body {
    font-family: 'Poppins', sans-serif;
    background: #fafafa;
}

p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1em;
    font-weight: 300;
    line-height: 1.7em;
    color: white !important;
}

nav ul a,
nav li a,
nav ul li
{
    color: white !important;
    text-decoration: none;
    transition: all 0.3s;
    
}
nav ul li div.dropdown-menu {
    background: #8C1304; /* #274275;  TODO BLUE */
    color: white !important;
    transition: all 0.3s;
    text-align: left; /* Cambio para alinear a la izquierda */
    cursor: pointer;
    min-width: 300px; /* Aumenta el ancho */
}

nav ul li div.dropdown-menu a label{
	cursor:pointer !important;
	width:100%;
}

nav ul li div.dropdown-menu div:hover {
    color: #8C1304 !important; /* #274275 !important;  TODO BLUE */
    background: #fff;
}

nav span{
	cursor: pointer;
}

.navbar {
    padding: 15px 10px;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.navbar-btn {
    box-shadow: none;
    outline: none !important;
    border: none;
}

.line {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed #ddd;
    margin: 40px 0;
}

i,
span :not(.select2[class*="selection"]){    
	display: inline-block;
}

/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #8C1304; /*#274275; TODO BLUE */
    color: white !important;
    transition: all 0.3s;
}

#sidebar.active {
    min-width: 90px;
    max-width: 90px;
    text-align: center;
}

#sidebar.active .sidebar-header h3,
#sidebar.active .CTAs {
    display: none;
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    text-align: left;
}

#sidebar ul li div{
    padding: 20px 10px;
    text-align: left;
}


#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}


#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #0cc2aa;
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.8em;
}

#sidebar ul.components {
    padding: 20px 0;
    border-bottom: 1px solid #47748b;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover, #topbar ul li a:hover{
    color:  #8C1304 !important; /*#274275 !important; TODO BLUE */
    background: #fff;
}

#topbar ul li.active > a {
    border-radius: 8px;
    border: 2px solid #8C1304; /*#274275; TODO BLUE */
    background: #fff;
    color:  #8C1304; /*#274275; TODO BLUE */
}

/* Hover effect for top-level items in the topbar */
.topbar {
padding:5px;
}

#sidebar ul li a i {
    margin-right: 10px;
}

#sidebar ul li.active>a,
#topbar ul li.active>a,
a[aria-expanded="true"] {
    color: #8C1304 !important; /*#274275 !important; TODO BLUE */
    background: #fff;
}

a[data-toggle="collapse"] {
    position: relative;
}

.dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #0cc2aa;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}

a.download {
    background: #fff;
    color: #8C1304; /*#274275; TODO BLUE */
}

a.article,
a.article:hover {
    background: #0cc2aa !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (min-width: 768px) {
	.mobile{
		display: none !important;
	}
	.browser{
		display: block !important;
	}
}

@media (max-width: 768px) {
	.browser{
		display: none !important;
	}
	
	.mobile{
		display: inline !important;
	}
	
	
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }
    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }
    #sidebar.active {
        margin-left: 0 !important;
    }
    #sidebar .sidebar-header h3,
    #sidebar .CTAs {
        display: none;
    }
    #sidebar .sidebar-header strong {
        display: block;
    }
    #sidebar ul li a {
        padding: 20px 10px;
    }
    #sidebar ul li a span {
        font-size: 0.85em;
    }
    #sidebar ul li a i {
        margin-right: 0;
        display: block;
    }
    #sidebar ul ul a {
        padding: 10px !important;
    }
    #sidebar ul li a i {
        font-size: 1.3em;
    }
    #sidebar {
        margin-left: 0;
    }
    #sidebarCollapse span {
        display: none;
    }
}

/********** GENERAL **********/


.login-form{
	box-sizing: border-box;
    margin: auto;
    width: 90%;
  	max-width: 300px;
}

.login-form-alert{
	box-sizing: border-box;
    margin: auto;
    width: 90%;
  	max-width: 500px;
}

thead {
 	background-color: #8C1304; /*#274275;  TODO BLUE */
	color:white
}

.panel-heading{
	background-color: #8C1304 !important; /*#274275 !important;  TODO BLUE  */
	color:white !important;
}

/*Datatables*/
.dataTables_filter { display: none; }


.table>tbody>tr.odd {
	background-color: #fff;
} 

.table>tbody>tr.even {
	background-color: #F2F2F2;
}

.table{
	width: 100%;
}
.table-bordered {
	border: 0 0 1px 0!important;
}

.table-responsive{
	border: 0 0 1px 0!important;
	margin: 0!important;
}
.btn-table{
	margin: 0 1px !important;
	
}

.image-upload>input {
	display: none;
}

.pointer{
	cursor: pointer;
}

.addbutton{
	color: #28a745;
}

.avatar {
	float:right;
    width: 100%;
    height: 100%;
    border-radius: 10%;
}
	
.fc-widget-header>table>thead {
	background-color: white ;
	color: black;
}
.fc-content-skeleton>table>thead {
	background-color: transparent ;
	color: black;
}
.fc-content { cursor: pointer; }

.fc-bgevent{
  opacity: 0.70;
  font-weight: bold;
  color: white ;
  font-size: 12px;
  padding:2px 0 2px 2px !important;
}

.fc-button{
	color: white ;
	background: #8C1304; /* #274275; TODO BLUE */
}
.calendar {
    margin: 0 auto;
}
  
span.hours-day {
    bottom: 0;
    font-size: 0.75em !important;
    position: absolute;
    opacity: 1 !important;
    color: black !important;
	padding-left: 2px; 
	pading-bottom: 10px;
}  
 
.input-noborders, .input-noborders:focus{
	border:none;
	box-shadow: none;
	outline: none;
}
.input-even{
	background: #f2f2f2 !important;
}
.input-odd{
	background: white !important;
}

textarea{
	resize: none;
}

.index-margin{
	padding-top: 22%;
}

#borrarImatge,.borrarImatge{
	cursor:pointer;
	color: #F11129;
}

.divisa-select{
	padding: 6px 0px !important;
}
a.downloadFile, a.deleteFile{
	cursor:pointer;
}

.nav-tabs .nav-link {
	cursor: pointer !important;
}

/* TODO BLUE .btn-primary{
	background-color: #5599f2;
	border-color: #5599f2;
}

.btn-primary:hover{
	background-color:#9ac1f8;
	border-color: #9ac1f8;
}

.btn-danger{
	background-color: #4e7bb5;
	border-color: #4e7bb5;
}

.btn-danger:hover{
	background-color: #7597c6;
	border-color: #7597c6;
}

li.paginate_button.active > a{
  	background-color: #4e7bb5;
	border-color: #4e7bb5;
}

li.paginate_button.active > a:hover{
	background-color: #7597c6;
	border-color: #7597c6;
}

li.paginate_button.active > a:focus{
  	background-color: #9ac1f8;
	border-color: #9ac1f8;
}

.form-control:focus {
  border-color: #9ac1f8;
  box-shadow: 0 0 3px 0 rgba(154, 193, 248, 0.6); /* Adjust values as needed */
/*}*/

.btn-primary{
	background-color: #E99710;
	border-color: #E99710;
}

.btn-primary:hover{
	background-color:#ffb440;
	border-color: #ffb440;
}

.btn-danger{
	background-color: #E91063;
	border-color: #E91063;
}

.btn-danger:hover{
	background-color: #FF598E;
	border-color: #FF598E;
}

li.paginate_button.active > a{
  	background-color: #E91063;
	border-color: #E91063;
}

li.paginate_button.active > a:hover{
	background-color: #FF598E;
	border-color: #FF598E;
}

li.paginate_button.active > a:focus{
  	background-color: #E91063;
	border-color: #E91063;
}

.form-control:focus {
  border-color: #ffb440;
  box-shadow: 0 0 3px 0 rgba(255, 180, 64, 0.6); /* Adjust values as needed */
}