/*
 * Extra bootstrap tweaks that cannot be done via the customiser http://getbootstrap.com/customize
 */
 a {
    cursor: pointer;
 }

.bg-main {
    background-color: #fafafa;
}

.table>thead>tr>th {
    background-color: #ddd;
    border-bottom-color: #bbb;
}

.table>tfoot>tr>td {
    background-color: #ddd;
    border-top-color: #bbb;
}

.btn {
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
    min-width: 100px;
}

.btn.btn-sm {
    min-width: auto;
}

.btn-toolbar > .btn-block {
    margin-bottom: 10px;
}

.btn-toolbar > .btn-block:last-child {
    margin-bottom: 0;
}

.btn-toolbar.text-right > .btn {
    float: none;
}

@media only screen and (max-width: 480px) {
    .btn-toolbar {
        margin-right: 5px;
    }
    
    .btn-toolbar > .btn {
        width: 100%;
        display: block;
        margin-bottom: 10px;
    }
    
    .btn-toolbar > .btn:last-child {
        margin-bottom: 0;
    }
}

.form-condensed .form-group {
    margin-bottom: 0;
}
/* Positions the modal vertically at the centre of the screen */
.modal {
    text-align: center;
  }
.modal:before {
    content: '';
    display: inline-block;
    height: 100%;
    vertical-align: middle;
    margin-right: -4px;
  }
  
.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}

/* Make tooltips left aligned and lessen padding */
.tooltip .tooltip-inner {
	text-align: left;
}
.tooltip .tooltip-inner ul {
	padding-left: 1.2em;
}

/* Responsive tables */
@media only screen and (max-width: 767px) {

	/* Force table to not be like tables anymore */
	.table,
	.table thead,
	.table tbody,
	.table th,
	.table td,
	.table tr{ display:block; }
	
	/* Hide table headers (but not display: none;, for accessibility) */
	.table thead tr th { position:absolute; top:-9999px; left:-9999px;	}
	.table thead tr th#select_all_control { position:static; top:0; left:0;	}
	
	.table tr {
	   border:0px solid #fff; border-bottom:1px solid #eee;
	}
	
	/* Behave like a "row", some tables with longer headings will need to increase the padding */
	.table>tbody>tr>td {
	   border: none;
	   border-bottom: 0px solid #eee;
	   position: relative;
	   padding-left: 150px;
	}
	
	.table td:before {
		/* Now like a table header */
		position:absolute;
		/* Top/left values mimic padding */
		top: 8px;
		left: 8px;
		width: 120px; 
		white-space: nowrap;
		content: attr(data-label);
		font-weight: bold;
	}
	.table.table-condensed td:before {
		top: 5px;
		left: 5px;
	}
}
/* End responsive tables */