@charset "utf-8";
/* CSS Document */

:root {
  --white: #fff;
  --black:#000000;
  --red:#f00;
  --lightBlue:#75aee0;
  --red:#ff0000;
  --lightGray:#edf0f5;
  --darkGray: #999;
  --darkBlue: #133450;
  --darkRed: #93291e;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--darkGray);
  font-size: 1.1em;
}

@media screen and (min-width: 1600px) {
  body {
    font-size: 0.9em;
  }
}

body.start {
  position: relative;
  margin: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--darkRed);
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

.box {
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, .1), 0 5px 15px rgba(0, 0, 0, .07);
}

button {
  cursor: pointer;
  outline: none;
  color: var(--white);
  background: var(--darkBlue);
  border-radius: 4px;
  border: 2px solid var(--darkBlue);
  padding: 6px;
  width: auto;
  text-transform: uppercase;
  font-weight: bold;
}

button:hover {
  background: var(--darkRed);
  border: 2px solid var(--darkRed);
}

button, input, optgroup, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button, input {
  overflow: visible;
}

input[type=text], input[type=password] {
  font-family: 'Roboto', sans-serif;
  width: 96%;
  padding: 2%;
  border: 0;
  border-bottom: 1px solid var(--darkGray);
}

input[type=password] {
  padding-right: calc(2% + 30px);
  width: calc(96% - 30px);
}

.field-icon {
  position: absolute;
  right: 0;
  cursor: pointer;
  width: 30px;
  border-bottom: 1px solid var(--darkGray);
  padding: 2% 0;
}

div#login {
  position: absolute;
  width: 300px;
  height: 380px;
  text-align: center;
  background: var(--white);
}

div#login h1 {
  font-weight: 700;
  font-size: 1.5em;
  color: var(--darkBlue);
}

.form-group, p.but-line {
  position: relative;
  margin-top: 20px;
}

label {
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--darkGray);
  background-color: var(--white);
  z-index: 10;
  transition: transform 150ms ease-out, font-size 150ms ease-out;
}

.focused label {
  transform: translateY(-150%);
  font-size: .75em;
  color: var(--darkGray);
}

.logo-home {
  height: 50px;
  margin: 0 auto 20px auto;
}

.logo-home:first-of-type {
  margin-top: 10px;
  margin-bottom: 0;
}

#box-login, #box-recovery, #box-device, #box-offline {
  height: calc(100% - 130px - 20px);
  width: 280px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

#box-recovery, #box-device, #box-offline {
  display: none;
}

div#print-device {
  position: absolute;
  width: 200px;
  bottom: 10px;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8em;
  right: 15px;
}

#wrapper {
  position: absolute;
  top: 0;
  width: 100%;
  min-height: 100vh;
  z-index: 9;
  background: var(--white);
  transition: margin-left .5s, width .5s;
  -webkit-transition: margin-left .5s, width .5s;
}

#popup,
#message,
.prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 999;
}

#popup-box,
#message-box, 
.prompt-box {
	position: fixed;
	top: 50%;
  left: 50%;
  width: 400px;
  height: 200px;
  margin-left: -200px;
  margin-top: -100px;
	padding: 0;
	text-align: center;
	z-index: 99;
	background-color: var(--white);
  overflow: hidden;
}

#message-box {
  height: 250px;
  margin-top: -125px;
}

#popup-box {
  top: 50%;
  left: 50%;
  width: 800px;
  height: 560px;
  margin-left: -400px;
  margin-top: -280px;
  padding: 20px;
}

#message-box h1, 
.prompt-box h1 {
  padding:10px;
  margin:0 0 20px 0;
  background:#133450;
  color:#fff;
  font-size:1.2em;
  border-radius:10px 10px 0 0;
  text-transform:uppercase;
  display:flex;
  justify-content:space-between;
}

#message-box p.butLine,
.prompt-box p.butLine {
  position:absolute;
  bottom:10px;
  width:100%;
  text-align:center;
  line-height:3;
}

#message-box p.butLine a, 
#message-box p.butLine a:visited,
.prompt-box p.butLine a, 
.prompt-box p.butLine a:visited {
  cursor:pointer;
  outline: none;
  color:#fff;
  background:#133450;
  border-radius:4px;
  border:2px solid #133450;
  padding:6px;
  width:auto;
  text-transform:uppercase;
  font-weight:bold;
  text-decoration:none;
}

#message-box p.butLine a:hover, 
#message-box p.butLine a:active,
.prompt-box p.butLine a:hover, 
.prompt-box p.butLine a:active {
  background:#C94043;
  border:2px solid #C94043;
}
#message-box a.item_close,
.prompt-box a.item_close {
  cursor:pointer;    
  width:10px;
  height:10px;
  border-radius:10px;
  padding:4px;
  background:#fff;
  color:#133450;
  font-size:0.8em;
  line-height:0.75em;
}
#message-box a.item_close:hover,
.prompt-box a.item_close:hover {
  color:#fff;
  background:#93291E;
}
#message-box input {
  padding: 6px;
  border-radius: 3px;
  border: 1px solid #ddd;
  width: calc(100% - 30px);
}

#top-header {
  position: fixed;
  z-index: 99;
  top: 0;
  right: 0;
  width: 100%;
  height: 40px;
  padding: 10px;
  background: var(--white);
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.85em;
}

#top-header ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

#top-header ul li {
  position: relative;
  display: inline-block;
  height: 40px;
  min-width: 40px;
  cursor: pointer;
  margin: 0 5px;
}

#top-header ul li:hover {
  color: var(--darkBlue);
}

#top-header li.profile span {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: inherit;
}

#top-header li.profile img {
  height: 100%;
  border-radius: 50%;
  margin-right: 5px;
}

#top-header li.profile ul.dropdown {
  display: none !important;
  position: absolute;
  min-width: 160px;
  padding-top: 10px !important;
  z-index: 1;
  top: 40px;
  right: -10px;
}

#top-header li.profile ul.dropdown li {
  display: block !important;
  margin: 0 !important;
  padding: 0;
  height: auto !important;
  background: var(--darkBlue);
}

#top-header li.profile ul.dropdown li a {
  padding: 10px;
  color: var(--white);
  text-decoration: none;
  display: block;
}

#top-header li.profile ul.dropdown li a:hover {
  color: var(--white);
  background: var(--darkRed);
  text-decoration: none;
}

#top-header li.profile:hover ul.dropdown {
  display: list-item !important;
  background: none !important;
  background-color: transparent !important;
}

#content {
  background: var(--lightGray);
  padding: 70px 60px;
  min-height: calc(100vh - 70px - 70px);
}

#content h1 a[title]:hover::after, 
#content h2 a[title]:hover::after, 
#content table td.actions a[title]:hover::after {
  content: attr(title);
  font-family: "Roboto", sans-serif;
  font-weight: normal;
  position: absolute;
  top: -100%;
  right: 0;
  background: var(--darkBlue);
  color: var(--white);
  font-size: 10px;
  white-space: nowrap;
  padding: 2px;
  text-transform: uppercase;
}

#content h1 {
  font-size:1.5em;
  text-transform:uppercase;
  margin:20px 0;
  color: var(--darkBlue);
}

#content h2 {
  color: var(--darkBlue);
}

#content h1 div.group {
  float: right;
  width: 200px;
  margin-top: -6px;
}

#content h1 div.group select#groupActions {
  font-size: 0.65em;
  border-radius: 3px;
  border:1px solid var(--darkGray);
  width: 100%;
  outline: none;
  padding: 6px;
}

#content h1 a.item_ins, #content h1 a.item_ins:visited, 
#content h2 a.item_ins, #content h2 a.item_ins:visited, 
#content h1 a.item_filter, #content h1 a.item_filter:visited,
#content h1 a.item_list, #content h1 a.item_list:visited,
#content h1 a.item_back, #content h1 a.item_back:visited, 
#content a.item_show, #content a.item_show:visited,
#content a.item_add, #content a.item_add:visited,
#content a.item_options, #content a.item_options:visited,
#content a.item_pdf, #content a.item_pdf:visited,
#content a.item_sign, #content a.item_sign:visited,
#content a.item_barcode, #content a.item_barcode:visited,
#content a.item_view, #content a.item_view:visited,
#content a.item_upd, #content a.item_upd:visited,
#content a.item_del, #content a.item_del:visited {
  font-family: "Font Awesome 5 Free";
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  float: right;
  text-decoration: none;
  cursor: pointer;
  margin-left: 10px;
  color: var(--darkBlue);
  position:relative;
}

@media screen and (min-width: 1600px) {
  #content h1 a.item_ins, #content h1 a.item_ins:visited,
  #content h2 a.item_ins, #content h2 a.item_ins:visited, 
  #content h1 a.item_filter, #content h1 a.item_filter:visited,
  #content h1 a.item_list, #content h1 a.item_list:visited,
  #content h1 a.item_back, #content h1 a.item_back:visited, 
  #content a.item_show, #content a.item_show:visited,
  #content a.item_add, #content a.item_add:visited,
  #content a.item_options, #content a.item_options:visited,
  #content a.item_pdf, #content a.item_pdf:visited,
  #content a.item_sign, #content a.item_sign:visited,
  #content a.item_barcode, #content a.item_barcode:visited,
  #content a.item_view, #content a.item_view:visited,
  #content a.item_upd, #content a.item_upd:visited,
  #content a.item_del, #content a.item_del:visited {
    font-size: 18px;
  }
}

#content h1 a.item_ins:hover, #content h1 a.item_ins:active,
#content h2 a.item_ins:hover, #content h2 a.item_ins:active,
#content h1 a.item_filter:hover, #content h1 a.item_filter:active,
#content h1 a.item_list:hover, #content h1 a.item_list:active, 
#content h1 a.item_back:hover, #content h1 a.item_back:active,
#content a.item_show:hover, #content a.item_show:active,
#content a.item_add:hover, #content a.item_add:active,
#content a.item_options:hover, #content a.item_options:active,
#content a.item_pdf:hover, #content a.item_pdf:active,
#content a.item_sign:hover, #content a.item_sign:active,
#content a.item_barcode:hover, #content a.item_barcode:active,
#content a.item_view:hover, #content a.item_view:active,
#content a.item_upd:hover, #content a.item_upd:active,
#content a.item_del:hover, #content a.item_del:active {
  color: var(--darkRed);
}

#content a.item_show.disabled, #content a.item_show.disabled:visited, #content a.item_show.disabled:hover, #content a.item_show.disabled:active {
  cursor: default;
  color: var(--lightGray);
}

#content h1 a.item_ins::before,
#content h2 a.item_ins::before {
	content: "\f067";
}

#content h1 a.item_filter::before {
	content: "\f0b0";
}

#content h1 a.item_list::before {
	content: "\f03a";
}

#content h1 a.item_back::before {
	content: "\f04a";
}

#content a.item_show::before {
	content: "\f07c";
}

#content a.item_add::before {
	content: "\f067";
}

#content a.item_options:before {
  content: "\f141";
}

#content a.item_pdf:before {
  content: "\f1c1";
}

#content a.item_sign:before {
  content: "\f5b7";
}

#content a.item_barcode:before {
  content: "\f02a";
}

#content a.item_view:before {
  content: "\f06e";
}

#content a.item_upd:before {
  content: "\f303";
}

#content a.item_del:before {
  content: "\f2ed";
}

#content table.table-list td.actions ul.dropdown {
  display: none;
  list-style: none;
  margin: 0;
  position: absolute;
  top: calc(50% + 20px);
  right: 0;
  padding: 0;
  border: 1px solid var(--darkGray);
  background: var(--white);
  z-index: 9;
}

#content table.table-list td.actions ul.dropdown li {
  cursor: pointer;
  color:var(--darkBlue);
  text-align: left;
  white-space: nowrap;
  line-height: 2em;
  padding: 0 10px;
  font-size: 0.95em;
  transition: 0.3s;
}

#content .pre_list {
  text-align: left;
  background: var(--white);
  padding: 6px;
  margin-top: 20px;
  display: none;
}

#content .pre_list.fixed {
  display:table;
  width: 96%;
  position: fixed;
  top:0;
  z-index:9;
}

#content .pre_list .box {
  display:inline-block;
  line-height: 50px;
  border-radius:0;
  box-shadow:none;
}

#content .pre_list div#buttons {
  float:right;
  display:inline-block;
  line-height: 50px;
}

#content .pre_list label {
	position:relative;
  top:auto;
  left:auto;
  z-index:auto;
  transition:none;
}

#content .pre_list select, 
#content .pre_list label, 
#content .pre_list input {
	padding:6px;
  display: inline-block;
  width:auto;
	line-height:1;
  margin-bottom:0;
  outline:none;
}

#content .pre_list select {
  border:1px solid var(--darkGray);
}

#content .pre_list input.number {
	width:40px;	
}

#content .pre_list input.date {
	width:100px;	
}

#content .post_list {
	line-height:40px;
  height:40px;
	width: 100%;
  color:var(--darkGray);
}

#content .post_list select {
	padding:3px 2px;
  border: 1px solid var(--darkGray);
}

#content .post_list a,
#content .post_list a:visited {
	padding:4px 8px;
	color:var(--darkGray);
  border: 1px solid var(--darkGray);
	text-decoration:none;
}

#content .post_list a:active, 
#content .post_list a:hover {
	color:var(--darkGray);
	border:1px solid var(--darkGray);
	text-decoration:none;
}

#content .post_list a.current {
  background:var(--darkBlue);
	border:1px solid var(--darkBlue);
  color:var(--white);
  font-weight: bold;
}

#content .boxContainer {
  width:100%;
  background:var(--white);
}

#content .boxLeft, 
#content .boxRight {
  width:calc(50% - 20px);
}

#content .boxLeft {
  float:left;
}

#content .boxRight {
  margin-left:calc(50% + 20px);
}

#content .boxContainer .inner-box {
  margin-top:20px;
  padding: 20px 10px 10px 10px;
}

#content .boxContainer p.row, 
#content .boxContainer p.view {
  padding:0;
  position:relative;
}

#content .boxContainer p.view {
  padding-bottom:1.1em;
}

#content .boxContainer p.row label, 
#content .boxContainer p.view label {
  position:relative;
  display:inline-block;
  top:0;
  width:150px;
  padding:6px;
}

#content .boxContainer p.view label {
  vertical-align: top;
}

#content .boxContainer p.view span {
  display: inline-block;
  width: calc(100% - 150px - 30px);
  padding:6px;
}

#content .boxContainer p.row input, 
#content .boxContainer p.row select, 
#content .boxContainer p.row textarea {
  padding:6px;
  border-radius:3px;
  border:1px solid var(--darkGray);
  width:calc(100% - 150px - 30px);
  vertical-align:top;  
}

#content .boxContainer p.row select {
  width:calc(100% - 150px - 18px); 
}

#content .boxContainer p.row span.details {
  font-size:0.8em;
  font-style:italic;
  display:block;
  width:100%;
  text-align:right;
}

#content p.butLine {
  margin-top: 20px;
}

/*TABLES*/
table.table-list,
table.table-sublist {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

table.table-list {
  box-shadow: 0 15px 35px rgba(0,0,0,.1),0 5px 15px rgba(0,0,0,.07);
}

table.table-list caption h1 {
  font-size: 1.5em;
  font-weight:bold;
  text-align:left;
  text-transform:uppercase;
  color:var(--darkBlue);
  margin:.67em 0;
}

table.table-list thead tr {
  color: var(--white);
  background: var(--darkBlue);
}

table.table-sublist thead tr {
  color: var(--white) !important;
  background: var(--darkGray) !important;
  border: 0 !important;
}

table.table-list thead tr th:first-child {
  border-top-left-radius: 10px;
}

table.table-list thead tr th:last-child {
  border-top-right-radius: 10px;
}

table.table-sublist thead tr th:first-child,
table.table-sublist thead tr th:last-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

table.table-list tbody tr {
  background-color: var(--white);
  border: 1px solid var(--darkGray);
  padding:6px;
  line-height:1.2em;
}

table.table-sublist tbody tr {
  background:transparent;
  border: 1px solid var(--darkGray);
}

table.table-list th,
table.table-list td {
  padding: 6px;
  text-align: center;
}

table.table-list td {
  padding:12px 6px;
}

table.table-list th.id, 
table.table-list td.id {
  width:40px;
}

table.table-list td span.highlight,
table.table-sublist td span.highlight {
  background:#ffA500;
  color:#222;
}

table.table-list th.actions, 
table.table-list td.actions {
  width:110px;
  position: relative;
}

table.table-list tr.active {
  background: var(--lightGray);
}