/*
 * Description:   A basic theme, with Bootstrap 4.1.1
 * Fixed top navigation, table listings, project view, table with divs
 * Author:        DG Mikkeli - TiKe
 * Modified:      240718 
 * Version:       1.0.3
*/

/* Dynamically loaded Bootstrap Modal does not scroll on iOS 9 - bugfix */

.modal { 
    -webkit-overflow-scrolling: auto !important; 
    overflow-y; auto !important;
}


/* basics */
body {
    background-color: #f5f5f5;    
    padding-top: 60px;
    font-size: 1em;
    padding-bottom: 30px;
}

h1 {
    font-size: 1.5em;
}


h2 {
    font-size: 1.1em;
    font-weight: 600;
    color: #454545;
    padding-top: 10px;
}

h3, h4, h5, h6 {
    font-size: 1em;
    font-weight: 600;  
    color: #626262;    
}

h3:before {
    content: '-- ';
}

h3:after {
    content: ' --';    
}

table {
    width: 100%;
}

.sort , .maara, .hintam, .pointer{
	cursor:pointer;
}

.lihavoitu {
    font-weight: 500;
}

.div-table:hover {
    background-color: #f5f5f5;
}

.div-table:nth-of-type(2n+1):hover {
    background-color: #f2f2f2f2;
}

 .valinta , #valitseKaikki {width: 20px; height: 20px; text-align: center; vertical-align: center;}


.table {
    background-color: #FFF;
    font-size: 1em !important;
}

.table th {
	padding-top: .2rem;
    padding-bottom: .2rem;
    font-size: 1em;
    font-weight: 600;
    border-top: 0px;
    background-color: #FFF !important;
    border-bottom: 1px solid #e9e9e9;
    color: #000;
}

.colorBox {
    display: block;
    float:left;  
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

.boxed-row {
    background-color: #FFF;
    /*margin-bottom: 10px;*/
    padding-top: 10px;
    padding-bottom: 20px;
    border: 1px solid #e9e9e9;
}

.row {
    margin-top: 5px;
}

/* "tables" made with divs */
.div-th { 
	padding-top: .3rem;
    padding-bottom: .2rem;
    font-size: 0.8em;
    font-weight: 400;
    border-top: 0px;
    border-bottom: 1px solid #e9e9e9;
    color: #8e8e8e;
}

.div-table > div{
	padding-top: .3rem;
    padding-bottom: .2rem;
    padding-left: 5px !important;
}

.div-table:nth-of-type(2n+1) {
	background-color: rgba(0,0,0,.03);
}



/* forms */
label {
    font-size: 0.8em;
    margin-bottom: 0px;
    color: #454545;
}

.form-control {
	font-size: 0.9rem;
}

.form-group {
	margin-bottom: 0.3rem;
    width: 100%;
}

.form-group .col{
    padding-right: 0px;
    padding-left: 0px;
}


.right-padded {
    float:right !important; 
    padding: 5px !important;    
}

button {
    margin-top: 3px;
}

/* slider switch */
.switchy {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switchy input {display:none;}

.slidery {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slidery:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slidery {
  background-color: #2196F3;
}

input:focus + .slidery {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slidery:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slidery.round {
  border-radius: 34px;
}

.slidery.round:before {
  border-radius: 50%;
}

.triggers, .tilat {
    margin: 0px;
    padding: 0.3em;
    border-bottom: 1px solid #dee2e6;
}

/* nav */
.navbar {
    padding: 0rem 0.5rem;
}

.navbar-brand {
    /*padding-bottom: 0;*/
    line-height: 0em;
}

.navbar-nav {
    line-height: 1.5em;
}

.navbar .nav-link {
	display: block;
	padding: .5rem 1rem !important;
}

.navbar .navbar-dark .navbar-nav .active > .nav-link {
	color: #fff;
    background-color: #000;
}

.navbar .user {
    color: #FFF;
    padding: 0px 5px 0px 17px;
}



/* Media queries */
@media (max-width: 1200px) {
    .container {
        max-width: 100% !important;
    }    
}

@media (max-width: 768px) {
      
    .navbar {
        padding: 0 5px;
    }    
    
    .navbar-nav {
        padding-bottom: 10px;
    }
    
    .navbar-collapse {
        padding: 10px 0px 10px 0px;
    }
    
    table th {
        display: none;
    }
    
    table td {
        display: block;
        width: 100%;
		min-width: 100%;
    } 
    
    /* responsive div "tables" */
    .div-table {
        padding: 3px 5px 5px 5px;
        margin-top: 5px;
        margin-bottom: 8px;
    }
    
}

/*
	tarjoustyökalu
*/

.sidebar-left .main{
  float:right;
}
.idebar-left .sidebar{
  float:left;
}

.sidebar-right .main{
  float:left;
}
.sidebar-right .sidebar{
  float:right;
}

/** tuoExcelModalin CSS */

.kentat {
    padding: 0.25em 0;
    margin: 0;
}
.kentat span {    
    font-size: 12px;
    font-style: italic;
}
.valikko select {
    border-radius: 0;
}
.valikko .col:not(:first-child) select {
    border-left: none;
}
.valikko .col:first-child  select {
    border-bottom-left-radius: .25rem;
    border-top-left-radius: .25rem;
    margin: 0;
}
.valikko .col:last-child select {
    border-bottom-right-radius: .25rem;
    border-top-right-radius: .25rem;
    margin: 0;
}
#esimerkit table {
    margin:0;
}

.flex-item {
    flex-grow: 1;
    flex-basis: 0;
}
