@charset "utf-8";

body {
	max-width: inherit;
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

header {
	padding: 0;
	margin: 0;
}

header h1,
header nav {
	display: inline-block;
}

header h1 {
	font-weight: normal;
	margin-left: 12px;
	color: #34315a;
}

header nav {
	float: right;
}

header nav ul {
	list-style-type: none;
	margin: 12px 12px 0 0;
	padding: 0;
	overflow: hidden;
}

header nav ul li {
	display: inline;
	text-align: center;
	margin: 8px;
	float: left;
}

main {
	margin: 0;
	padding: 0;
}

section {
	padding: 0;
	margin: 0;
}

section p {
	margin: 0.5ex 0 0.5ex 2em;
}

td.right, td.qty, td.id,
th.right, th.qty, th.id { text-align: right; }
td.center, th.center { text-align: center; }
td.left, th.left { text-align: left; }
td.del, th.del { color: FireBrick; }

p.message {
	clear: both;
	margin-left: 132px;
	display: none;
}

p.message.error {
	color: FireBrick;
}

fieldset {
	background: inherit;
	border: none;
}

fieldset div.row {
	display: block;
	width: 100%;
}

label > span {
	display: inline-block;
	margin-left: 12px;
	margin-right: 6px;
	text-align: right;
}

fieldset > label {
	display: block;
}

label:first-child > span,
fieldset > label > span {
	margin-left: 0;
	width: 120px;
}

label > input {
	margin-right: 0;
}

button {
	margin: 8px 0 8px 130px;
}

@media(max-width : 450px) {
	fieldset { width: 320px; }
}

button .fi {
	font-size: 24px !important;
	padding-bottom: 3px;
	vertical-align: middle;
}

button .fi.fi-excel-file {
	color: #488b5b;
}

input, textarea, select, button {
	border: 1px #ccc;
	border-radius: 4px;
}

input, textarea, select {
	margin: 4pt 0;
	padding: 3pt;
}

input[type="submit"], input[type="reset"], button {
	cursor: pointer;
	display: inline;
	padding: 6pt 18pt;
	text-align: center;
}

input[type="submit"][disabled], input[type="reset"][disabled], button[disabled],
input[type="submit"][disabled]:hover, input[type="reset"][disabled]:hover, button[disabled]:hover {
	cursor: not-allowed
}

th, td { padding: 1px 2px; }

table.sortable thead th.sort_up:after { content: "↑"; }
table.sortable thead th.sort_down:after { content: "↓"; }
table.sortable thead th:hover { cursor: default; }
table.sortable thead th[data-sort]:hover { cursor: pointer; }

.app-view { display: none; }
.current-view { display: block; }

.modal {
	z-index: 100;
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
}

div.alert {
	display: none;
	background-color: White;
	width: 480px;
	margin: 120px auto 0 auto;
	border: 1px solid DarkBlue;
	border-radius: 4px;
	padding: 4px 4px;
}

div.alert div.alert-title {
	float: left;
	width: 456px;
	height: 24px;
	color: White;
	background-color: DarkBlue;
}

@media(max-width : 450px) {
	div.alert { max-width: 320px; }
	div.alert div.alert-title { max-width: 296px; }
}

.modal div.alert div.alert-close {
	float: right;
	width: 22px;
	height: 22px;
	font-size: 14px;
	text-align: center;
	border: 1px solid DarkBlue;
}

.modal div.alert div.alert-close:hover { cursor: pointer; }

.modal div.alert div.alert-title:before {
	content: "\e9fe";
	font-family: "Fontice-IconsFont";
	font-size: 16px;
	padding: 0 6px 0 3px;
}

.modal div.alert div.alert-title:after {
	vertical-align: top;
	content: "Info";
}

.modal div.alert div.alert-pane {
	clear: both;
	min-height: 180px;
	font-size: 10pt;
}

.modal div.alert.error,
.modal div.alert.error div.alert-close {
	border-color: FireBrick;
}

.modal div.alert.error div.alert-title {
	background-color: FireBrick;
}

.modal div.alert.error div.alert-title:before {
	content: "\e9ad";
}

.modal div.alert.error div.alert-title:after {
	content: "Error";
}

.modal div.alert.warn,
.modal div.alert.warn div.alert-close {
	border-color: Goldenrod;
}

.modal div.alert.warn div.alert-title {
	background-color: Goldenrod;
}

.modal div.alert.warn div.alert-title:before {
	content: "\e9ae";
}

.modal div.alert.warn div.alert-title:after {
	content: "Atención";
}

.modal div.spinner {
	display: none;
	width: 100%;
	height: 100%;
	background-image: url('../img/spinner.gif');
	background-position: center;
	background-repeat: no-repeat;
}

.rech { background-color: #ffeeee !important; }

.tooltip {
	position: relative;
	cursor: default;
}

.tooltip span {
	visibility: hidden; 
	position: absolute;
	z-index: 1;
	font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
	font-size: 8pt;
	line-height: 10pt;
	background-color: #FEC;
	color: #000;
	text-align: left;
	padding: 3px 3px;
	top: 1em;
	left: 1.5em;
}

.tooltip:hover span {
	visibility: visible;
}
