body {
 padding: 5px;
 margin: 5px;
 font-family: Verdana,Tahoma,Arial,Helvetica,Serif; 
 font-size: 11px;
 font-style: normal;
 background-color: white;
}
header {
	background-color: white;
   border: 5px solid white;
   padding-bottom: 2em;

}

header img {
	width: 400px;
}

nav {
    background-color: #fff;
    border: 1px solid #dedede;
    border-radius: 4px;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.055);
    color: #888;
    display: block;
    margin: 8px 22px 8px 22px;
    overflow: hidden;
    clear: both;

}

nav ul {
	list-style-type:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction: row;
	flex-wrap: wrap;
}

nav li {
	flex-grow: 1;
	margin: 0.5em; 
}

nav a {
  background: #0081c6;
  background-image: -webkit-linear-gradient(top, #0081c6, #00539b);
  background-image: -moz-linear-gradient(top, #0081c6, #00539b);
  background-image: -ms-linear-gradient(top, #0081c6, #00539b);
  background-image: -o-linear-gradient(top, #0081c6, #00539b);
  background-image: linear-gradient(to bottom, #0081c6, #00539b);
  -webkit-border-radius: 10;
  -moz-border-radius: 10;
  border-radius: 10px;
  text-shadow: 1px 1px 3px #666666;
  color: #ffffff;
  font-size: 1em;
  padding: 10px 20px 10px 20px;
  text-decoration: none;
  display: block;
  text-align: center;
}
nav a:hover {
  background: #3cb0fd;
  background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -moz-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -ms-linear-gradient(top, #3cb0fd, #3498db);
  background-image: -o-linear-gradient(top, #3cb0fd, #3498db);
  background-image: linear-gradient(to bottom, #3cb0fd, #3498db);
  text-decoration: none;
}

#tools {
	display: none;
	background: #fdc614;
	color: black;
	margin: 2%;
}

.tit_tools{
	font-weight: bold;
	margin-bottom: 2%;
}

.herramientas {
	float: left;
	width: 48%;
	padding: 1%;
}

#tools:after{
	content: "";
	display: table;
	clear: both;
}

#tools-icon {
	width: 32px;
	cursor: pointer;
}

table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
}
 
table tr {
  background: #f8f8f8;
  border: 1px solid #ddd;
  padding: .35em;
}

table tr:nth-child(even) {
	background: #e8e8e8;
}
 
table th, table td {
  padding: .625em;
  text-align: center;
}

/* Ensure DataTables headers are also centered */
table.dataTable thead th {
  text-align: center;
}
 
table th {
  font-size: .95em;
  letter-spacing: .1em;
  text-transform: uppercase;
  background-color: #00a500;
  border-right: 1px solid #33c200;
  color: #ffffff;
}

table .fecha {
	width: 10em;
}

img.orden {
	padding-left: 5px;
}

a {
  background: transparent url(../imagenes/enter.png) center right no-repeat;
  padding-right: 18px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline overline;
}

a.link-sin-icono {
  background: none;
  padding-right: 0;
  font-weight: normal;
}

a.link-sin-icono:hover {
  text-decoration: underline;
}

#carta {
	border: solid 1px #cccccc;
	padding: 2em;
	background-color: #eeeeee;
}

#carta h1 {
	background-color: #dddddd;
	padding: 1em;
	-webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
}

#carta h2 {
	font-size: 1.5em;
}

#carta ul {
	list-style-type:none;
	margin:0;
	padding:0;
	display:flex;
	flex-direction: row;
	flex-wrap: wrap;
}

#carta li {
	flex-grow: 0;
	margin: 0.5em;
	border-bottom: 1px solid #f6f6f6;
	padding: 1em;
}

#carta li .titulo {
	font-variant: small-caps;
	font-weight: bold;
}

#carta li .contenido {
	float: right;
	font-size: 110%;
	
}

#carta aside {
	float:left;
	width:20%;
	background-color: #dddddd;
	padding: 1em;
	-webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
}

#datosbasicos {
	float: right;
	width: 72%;
	background-color: #dddddd;
	padding: 1em;
	margin: 1em;
	-webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
}

#datosadicionales {
	float: right;
	width: 72%;
	background-color: #dddddd;
	padding: 1em;
	margin: 1em;
	-webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   -moz-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
   box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
}

#cartasrelacionadas {
	background-color: #dddddd;
	padding: 1em;
}



@media screen and (max-width: 639px) {
  header img {
  	width: 40%;
  	float: none;
  	clear: both;
  }
  
  h1 {
  	font-size: 1.5em;
  }
 
  table { border: 0; }
 
  table thead { display: none; }
 
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
 
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
 
  table td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
 
  table td:last-child {
  	 border-bottom: 0; 
  }
  
  #carta aside {
  	clear: both;
  	width: 100%;
  }
  
  aside img {
  	 display: none;
  }
  
  #datosbasicos {
	clear: both;
	width: 100%;
  }
  
  #datosadicionales {
    clear: both;
	 width: 100%
  }
  
  #cartasrelacionadas {
  	clear: both;
  	width: 100%;
  }
}


fieldset {
border: 1px solid #000080;
width: 35em
}

.fieldsetancho {
width: 55em;
}

.centrar {
 position: absolute;
 left:50%;
 width:36em;
 margin-left:-18em;
 padding:5px;
 clear: both;
}

legend {
color: #fff;
background: #000080;
border: 1px solid #781351;
padding: 2px 6px;
font-weight: bold;
} 

#login label {
width: 9em;
float: left;
text-align: right;
margin-right: 0.5em;
display: block;
font-weight: bold;
}

#login input {
color: #000000;
background: #e0ffff;
border: 1px solid #000080;
}

#login .submit input {
margin-left: 7.5em;
color: #ffffff;
background: #000080;
border: 2px outset #d7b9c9
} 

h1 {
text-align: center;
color: #045080;
font-style: normal;
}

h1 a {
  background-image: none;
  padding: 0px;
}

h2 {
  text-align: center;
  color: #6495ed;
  font-size: 20px;
}

.codnovalido {
	text-align: center;
	margin: 5em;
	color: red;
	font-size: 120%;
}

#registro label {
	margin: 0.3em;
	display: inline-block;
	font-weight: bold;
}

#registro label span {
	display: inline-block;
	width: 13em;
	text-align: right;
	margin-right: 1em;
	vertical-align: top;
}
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 1em;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    z-index: 1001;
}

.modal-overlay.modal-open {
    display: block;
}

.button-new {
	background-image: linear-gradient(#42A1EC, #0070C9);
	border: 1px solid #0077CC;
	border-radius: 4px;
	box-sizing: border-box;
	color: #FFFFFF;
	cursor: pointer;
	direction: ltr;
	display: block;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.47059;
	min-width: 30px;
	overflow: visible;
	padding: 4px 15px;
	text-align: center;
	vertical-align: baseline;
	user-select: none;
	-webkit-user-select: none;
	touch-action: manipulation;
	white-space: nowrap;
}

	.button-new:disabled {
		cursor: default;
		opacity: .3;
	}

	.button-new:hover {
		background-image: linear-gradient(#51A9EE, #147BCD);
		border-color: #1482D0;
		text-decoration: none;
	}

	.button-new:active {
		background-image: linear-gradient(#3D94D9, #0067B9);
		border-color: #006DBC;
		outline: none;
	}

        .button-new:focus {
                box-shadow: rgba(131, 192, 253, 0.5) 0 0 0 3px;
                outline: none;
        }

.error-message {
    color: #ff0000;
}
