@import 'colors';

// ---------------------------------------------------------------------------------------------------------------------
// modals
// ---------------------------------------------------------------------------------------------------------------------

	// override stupid bootstrap modal animation
	.modal{
		top:0% !important;
		transition: opacity 0.2s;
		top:0%;

		.modal-dialog{
			transition: none !important;
			-webkit-transform:none !important;
			transform:none !important;

		}
	}

	/*
	.modal{
		z-index: 100000000;
	}

	.modal-dialog {
		height: 100%;
		width: 100%;
		display: flex;
		align-items: center;
		margin: 0;
		margin-top:-10%;
	}
	*/

	.modal-content {
		margin: 0 auto;
		width:700px;

		box-shadow: 0 5px 10px rgba(0,0,0,0.1);

		.modal-title{
			margin-top:0 !important;
		}
	}

	.modal-backdrop{
		background-color: #FFF;

		&.in{
			opacity: 0.8;
		}
	}

    .btn-default:focus,
    .btn-default {
	    border-width: 0;
	    background-color: $gray-dark;
    }


    .btn-default:active,
    .btn-default:active:focus {
	    background-color: darken($gray-dark, 10%);
    }

    .btn-default:hover{
	    background-color: lighten($gray-dark, 5%);
    }

	.btn-xs, .btn-group-xs>.btn {
		padding: 1px 9px;
	}

	input[type="radio"],
	input[type="checkbox"] {
		margin-top: inherit;
	}

	label > input,
	label > input + span,
	label > input + span {
		vertical-align: middle;
	}


// ---------------------------------------------------------------------------------------------------------------------
// elements
// ---------------------------------------------------------------------------------------------------------------------

	.navbar {
		border-radius: 4px;
	}

	.navbar-toggle {
		padding: 6px 10px;
	}

	.navbar-default {
		background-color: $gray-lighter;
	}

	.alert{
		padding: 6px 11px;

		i.fa{
			min-width: 16px;
			margin-right: 5px;
			text-align: center;
		}
	}

	.tooltip {

		.tooltip-inner{
			box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
			width:100%;
			max-width: 400px;
			text-align:left;
		}
	}

	a:active,
	a:focus{
		outline:none !important;
	}

	i.icon:not([class*="text-"]) {
	    color: black;
    }


// ---------------------------------------------------------------------------------------------------------------------
// forms
// ---------------------------------------------------------------------------------------------------------------------

	fieldset{
		margin-bottom:1.5em;
	}

	legend{
		margin-bottom:0.3em;
	}

	.inline label.radio {
		padding-top: 0;
	}
	.inline div.radio {
		display: inline-block;
		margin-right: 10px;
	}


// ---------------------------------------------------------------------------------------------------------------------
// components
// ---------------------------------------------------------------------------------------------------------------------

	.pagination,
	.table{
		margin:20px;
		max-width: inherit;
		width:inherit;
	}

	.table + .pagination {
		margin-top:0;
	}

	#output table {

		caption {
			border: 1px solid #ecf0f1;
			border-bottom: none;
			padding: 6px 9px;
			background: rgb(249, 249, 249);
			color: #666666;
			letter-spacing: 0.04em;
			font-size: 0.85em;
			font-weight: bold;
		}

		td, th {
			font-size: 14px;
		}
		td {
			padding:3px 20px 3px 8px;
		}

		td > .icon {
			width: 100%;
			text-align: center;
		}
	}

	#output .table.data {

		th, td{
			font-size: 13px;
			padding:5px 8px;
		}

		thead th{
			font-weight: bold !important;
		}

		thead tr {
			background: inherit;
		}

		tbody th {
			min-width: 50px;
			color:#e74c3c !important;
		}

		tbody td.obj {
			white-space: pre;
			overflow-x:auto
		}

	}

	#output table.error {
		min-width:50%;

		td {
			background: white;
		}
		caption, td{
			text-align: center;
		}
		thead {
			display: none;
		}

	}
