*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
    cursor: default;
    background-color: #F0F8FF;
    font-family: Verdana, Helvetica, Arial;
    font-size: 10pt;
    padding-right: .8em;
    vertical-align: middle;

    position: relative;
}

.HREF {
    text-decoration: underline;
}

.offwhite {
    background-color: #D0D0D0;
}

.light {
    background-color: #C5C5C5;
}

.dark {
    background-color: #222222;
}

.All {
    width: 100%;
    height: 100%;
}

.nosel {
 /*   -webkit-touch-callout:none;
    -webkit-user-select:none;
    -khtml-user-select:none;
    -moz-user-select:none;
    -ms-user-select:none;
    user-select:none;*/
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.TopLeft {
    font-weight: bold;
    font-size: larger;
    width: 100%;
    margin-bottom: 2em;
}

.TopBaer {
    vertical-align: text-bottom;
    width: 32px;
    height: 32px;
}

.TopLeft a:visited {
    color: #000000;
}

.TopLeft a:active{
    color: #000000;
}

.StopDiv {
    clear: both;
}

.ErrorBox {
    margin-top: 1em;
    border: .4em solid black;
    background-color: red;
    width: 100%;
}

.FileListTable {

    border: thin solid black;
    border-collapse: collapse;

    box-shadow: .3em .3em #000000;
  //  position: absolute;
    padding: .4em;
    width: 25.0em;
    color: #000;
    background-color: #FFF;

    font-family: Verdana, Helvetica, Arial;
    font-size: 10pt;
    font-weight: normal;
}

.MenuItem {
    padding: .2em;
    vertical-align: top;
}

.MenuIcon {
    width: 1.3em;
    height: 1.3em;
}
.MenuBoxTable {

    border: thin solid black;
    border-collapse: collapse;

    box-shadow: .3em .3em #000000;
    position: absolute;
    padding: .4em;
    width: 25.0em;
    color: #000;
    background-color: #FFF;

    font-family: Verdana, Helvetica, Arial;
    font-size: 10pt;
    font-weight: normal;
}

.MenuBoxTable .enabled:hover {

    color: #FFF;
    background-color: #000;
}

.MenuBoxTable .enabled:active {

    color: #FFF;
    background-color: #000;
}

.MenuBoxTable .disabled {

    color: #888;
}

.MenuDiv {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

#FileList .points {

    width: 5em;
    float: right;
    text-align: right;
    display: inline-block;

}

.FileList {
    margin: 0em;
    padding: .4em;
    text-align: left;
    vertical-align: middle;
    overflow: auto;
    color: #FFF;

    width: 100%;
}

.FileList #name {
    width: 18.0em;
    margin-bottom: 1.0em;
}

.CategoryBox {
    margin: 0em;
    padding: .2em;
  //  margin-bottom: .2em;
    float: left;
}

.leftw {
  padding-left: .2em;
}

.rightw {
  padding-right: .2em;
}

.CategoryTitle {
    clear:both;
    width: 100%;
    color: black;
    margin-bottom: .1em;
    font-weight: bold;
    text-align: center;
}

.CategoryTitle:hover {

    color: white;
    background-color: black;
}

.FormationBox {
  clear:both;
  width: 100%;
  color: green;
  margin-top: .2em;
  padding: .2em;
  vertical-align: top;
}

.FormationTitle {

  font-weight: bold;
  text-align: left;
}

.Selection {
  display: inline;
}

.Option {
  color: blue;
}

.Option .Option {
  color: red;
  display: inline;
}

.Option .Option {
  color: red;
  display: inline;
}

.EditBox table {
  width: 100%;
  border: .5pt solid black;
  margin-top: 5pt;
  border-collapse: collapse;
}

.EditBox table table {
  width: 98%;
  border: .5pt solid black;
  margin-left: 1%;
  margin-right: 1%;
  margin-bottom: 2pt;
}

.EditBox th:last-of-type {
  text-align: left;
}

.EditBox th:first-of-type {
  text-align: center;
}

.EditBox td:last-of-type {
  text-align: left;
  padding-left: 2em;
}

.EditBox td:first-of-type {
  text-align: center;
  padding-left: 2em;
}

.EditBox th.Button {
  width: 20em;
  text-align: center;
}

.EditBox td {
  text-align: center;
}

.EditBox tr:first-of-type {
  background-color: gray;
}

.EditBox th {
  text-align: center;
  font-weight: bold;
  padding: .5em;
}

.EditBox textarea {
  width: 100%;
}

@media screen {
 .Run {
     display: none;
 }
}

.Run table {
  font-size: smaller;
  width: 98%;
  border: .5pt solid black;
  margin-top: 5pt;
  border-collapse: collapse;
  background-color: white;
  page-break-inside: avoid;
}

.Run th:first-of-type {
  text-align: left;
}

.Run td:last-of-type {
  text-align: right;
  padding-right: 2em;

}

.Run td:first-of-type {
  text-align: left;
  padding-left: 2em;
}

.Run th.Button {
  width: 20em;
  text-align: center;
}

.Run td {
  text-align: left;
  padding-top: 2em;
  padding-bottom: 2em;
}

.Run tr:first-of-type {
  background-color: inherit;
}

.Run th {
  text-align: left;
  font-weight: bold;
  padding: .5em;
}

.Run textarea {
  width: 100%;
}

div .amission  {
width: 13.5cm;
padding: .5em;
border-width: .5pt;
border-style: none;
border-color: black;
border-top-style: solid;
break-inside: avoid;
}

.mission table {
  width: 98%;
  margin: 0pt;
  padding: 0em;
  border-collapse: collapse;
  border-width: .5pt;
  border-style: solid;
  border-color: black;
  text-align: center;
}

.mission td {
  margin: 0pt;
  padding: 1em;
  border-collapse: collapse;
  border-width: .5pt;
  border-style: solid;
  border-color: black;
  text-align: center;
}

.mission th {
  margin: 0pt;
  padding: 1em;
  border-collapse: collapse;
  border-width: .5pt;
  border-style: solid;
  border-color: black;
  text-align: center;
}


/*
.FileList .FormationCell {

    vertical-align: text-top;
}

#ArmyBox .Formation {

    margin-top: .1em;
    padding: .2em .4em;
    font-weight: normal;
    color: black;
    background-color: white;

}

.FileList .unit {
    padding-left: .4em;
    font-size: smaller;
    text-decoration: none;
}

.FileList  .unit .fixed {
	font-style: italic;
}

.FileList  .unit .default {
	text-decoration: none;
}

#ArmyBox .Header:hover {

    color: #FFF;
    background-color: #222;

}

#ArmyBox .Title:hover {

    color: #FFF;
    background-color: #222;
}

#ArmyBox .default:hover {

    color: #FFF;
    background-color: #222;
}

#ArmyBox .points {

    width: 5em;
    float: right;
    text-align: right;
    display: inline-block;

}

.FileList form .points {

	margin-top: .4em;
    margin-right: .4em;

    float: right;

    text-align: right;
    vertical-align: middle;
    font-weight: bold;

    display: inline-block;
}

.FileList .save {

	margin-left: .5em;
	padding: .2em .4em;
	border: .1em solid black;
	background-color: white;
	color: black;
	text-align: center;
	vertical-align: top;
	font-weight: bold;
	text-decoration: none;
}




.ProfileBox {

    margin-top: .0em;
    padding: .4em;
    text-align: left;
    color: #FFF;
    width: 100%;

}

.ProfileBox table {
    border: none;
    border-collapse:collapse;
    text-align: center;
    width: 100%;
}

.ProfileBox th {
    color: black;

    padding-top: .5em;
    padding-bottom: .5em;
    font-weight: bold;
}

.ProfileBox td {
    padding-top: .2em;
    padding-bottom: .2em;
    vertical-align: text-top;
}

.ProfileBox .left {
    padding-left: .4em;
    text-align: left;
}

.ProfileBox .center {
    text-align: center;
}

.ProfileBox .notes {
    padding-left: .8em;
    text-align: left;
}

.ProfileBox .odd {
    background-color: white;
    color: black;
}

.ProfileBox .even {
    color: black;
}

.ProfileBox .nodd {
    background-color: white;
    font-size: smaller;
    color: black;
}

.ProfileBox .neven {
    font-size: smaller;
    color: black;
}

.ProfileBox table table {
    margin-left: .4em;
    border: thin solid #223355;
    float: right;
    width: 75%;
    text-align: left;
    background-color: transparent;
}

.ProfileBox table table td {
    border: thin solid #223355;
    padding: .4em;
}

.ProfileBox .inset {
    margin: .4em 4em;
}

.ProfileTable td {
    white-space: nowrap;
}

.ProfileTable td:last-child {
    white-space: normal;
    text-align: left;
}


.Error {
    padding: .2em .4em;
    color: white;
}

.OuterBox {
    vertical-align: top;
    position: relative;
    text-align:  center;
    float: left;
    left: 50%;
    width: 50%;
}


.SystemBox {
    vertical-align: top;
    position: relative;
    float: left;
    left: -100%;
    width: 200%;
}

.System {
    vertical-align: top;
	background-color: #223355;
	padding: .4em;
	min-width: 28em;
	margin-right: .4em;
    margin-bottom: .4em;
    display: inline-block;
    border-collapse: collapse;
}

.Systemname {
    color: white;
    font-weight: bold;
    margin-bottom: .2em;
}

.System .AllOfList {
    font-weight: normal;
    color: black;
    background-color: #C5DFFA;
    border: 1px solid #222;
}

.System .NewList {
	text-align: center;
	padding: .2em .5em;
}

.System .NewList:hover {
	background-color: #222;
    color: white;
}

.System .Files  {
    background-color: white;
    color: black;
    width: 100%;
    padding: .2em .5em;
    border-top: 2px solid #222;

    border-collapse: collapse;
}

.System .File td {
    padding: .2em .5em;
    border-top: 1px solid #222;
}

.System .File:hover {
	background-color: #222;
    color: white;
}

.System .Kill {
    padding: 1px;
    width: 1.4em;
    height: 1.4em;
}

.System .Kill:active {
    padding: 2px 0 0 2px;
}

.DoIt {

    border: .4em solid #223355;
    background-color: #223355;
    color: yellow;
    width: 100%;

}

.DoIt p {
    font-size: larger;
    font-weight: bold;
    margin: 0 .4em;
    padding: .4em;
}

.ArmyText {
    text-align: left;
    margin-top: .0em;
    color: black;
    border: .4em solid #223355;
    background-color: white;
    width: 100%;
}

.ArmyText p {

    color: black;
    margin: .0em .4em;
    padding: .2em;

}

.ArmyText a {
    font-weight: bold;
    color: #000000;
}

.ArmyText a:visited {
    color: #000000;
}

.ArmyText a:active{
    color: #000000;
}

.ArmyText .title {
    font-weight: bold;
}

.ArmyText textarea {
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
}



.spells {
    table-layout: fixed;
    vertical-align: top;
    color: black;
    border-collapse: collapse;
}

.spells td {
    vertical-align: top;
    border: thin solid black;
    padding: .4em;
    width: 1%;
}
.spells .title {
    text-align: center;
    font-weight: bold;
}

@media (max-width: 600px) {
    body {
        font-size: 8pt;
        -webkit-text-size-adjust: none;
    }
    .MenuBox {
        font-size: 8pt;
    }
}

.saveRestore {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
}

.saveRestore td {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}

.saveRestore textarea {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.saveRestore form {
    margin-top: .0em;
    border: .4em solid #223355;
    background-color: white;
    width: 100%;
}

.centeredTable th {
    text-align: center;
}
.centeredTable td {
    text-align: center;
}

form .icon {
    vertical-align: text-top;
    padding: 0px 4px 1px 0px;
    width: 1.4em;
    height: 1.4em;
}

form .icon:active {
    padding: 2px 0 0 2px;
}

#popup {
    visibility: hidden;

    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    text-align:center;
    z-index: 1000;
}

#popup div {
    margin: 10px auto;
    background-color: #88F;
    border:1px solid #000;

    padding:5px;
    text-align:left;
    display: inline-block;
}

#popuptext {
     font-family: monospace;
     margin: auto auto;
     background-color: #fff;
     padding:15px;
     text-align:left;
     display: inline-block;
 }

#PointsBox .ArmyTable {
    margin: 0;
    width: 100%;
    vertical-align: text-top;
    border: none;
    border-collapse:collapse;
    text-align: left;
}

#PointsBox input {
    margin-left: 1em;
}

#PointsBox form {
    white-space: nowrap;
    margin-right: 2em;
}

#PointsBox .FormationCell {
    width: 100%;
    vertical-align: text-top;
}

#PointsBox td {
    padding-top: .2em;
    padding-bottom: .2em;
    vertical-align: middle;
    color: #000000;
}

#PointsBox .header {
    font-weight: bold;
    padding-bottom: .5em;
}
#PointsBox .footer {
    font-weight: bold;
    padding-top: .5em;
}

#PointsBox .Formation {

    margin-top: .1em;
    padding: .2em .4em;
    font-weight: normal;
    color: black;
}

#PointsBox .points {

    width: 10em;
    float: right;
    text-align: right;
    display: inline-block;

}

.white {
    background-color: white;
}

.bold {
    font-weight: bold;
}

.smallBold {
    font-weight: bold;
    font-size: 93%;
}
.small {
    font-weight: normal;
    font-size: 93%;
}


.UnitListBox .CategoryTitle {

    color: white;
    margin: 0em 0em;
    padding: .2em 0em;
    font-size: larger;
    font-weight: bold;
    text-align: left;
}

.UnitListBox .Title {

    color: white;
    margin: 0em 0em;
    padding: .6em 0em 0em 0em;
    font-weight: bold;
    text-align: left;
}

.UnitListBox .unit {

    color: white;
    margin: 0em 0em;
    padding: .6em 0em ;
    text-align: left;
}

.card {
  width: 56mm;
  font-size: 4pt;
  margin-bottom: 10pt;
}

.Tactic {
  border-style: solid;
  display: inline-block;
  width: 250px;
}

.TacticHeader {
  padding: 3px;
  color: white;
  background: black;
  height: 4mm;
}

.TacticFooter {
  padding: 3px;
  color: white;
  background: black;
  text-align: right;
  height: 4mm;
}

.KTTactics {
  color: black;
  background-color: white;

  float: left;
  position: relative;
  border-style: solid;
  border-color: black;

  display: inline-block;
  width: 63mm;
  margin: 1mm;
  page-break-inside: avoid;
}

.KTTactics .TacticHeader {
  padding: 2mm;
  margin: 0px;
}

.KTTactics .TacticFooter {
  padding: 2mm;
  width: 59mm;
  margin: 0px;
}

.KTTactics .TacticText {
  padding: 2mm;
  margin: 0px;
  min-height: 90mm;

}

.Page {
  clear: both;

  position: relative;
  float: none;
  display: block;
  page-break-after: always;
}

.KTCard {
  color: black;
  background-color: white;

  float: left;
  position: relative;
  border-style: solid;
  border-color: black;
  display: inline-block;

  width: 110mm;
  min-height: 76mm;
  margin: 2px;
  page-break-inside: avoid;
  padding-bottom: 1mm;
}

.KTSpecialCard {

  width: 100%;
}

.KTCard .unit {
  padding: 1mm;
  padding-bottom: 0px;
}

.KTCard .unitTitle {
  padding: 1mm;
  padding-bottom: 0px;
  margin-top: 1mm;
  font-weight: bold;
  font-size: smaller;

}

.unBold {
  font-weight: normal;
}

.KTCard .Title {
  color: white;
  background: black;
  padding: 2mm;
  margin: 0px;
}

.KTCard .points {

    width: 4em;
    float: right;
    text-align: right;
    display: inline-block;

}

.KTCard .NotesTable {
  width: 100%;
  border-collapse: collapse;
  vertical-align: top;

  margin-top: 2mm;
}

.KTCard .NotesTable td {
  margin: 0px;
  padding: 1mm;
  padding-bottom: 0mm;
  vertical-align: top;
}

.KTCard .ProfileTable {
  width: 100%;
  border-collapse: collapse;

  font-size: smaller;
  margin-top: 2mm;
}

.KTCard .ProfileTable tr:first-of-type {
  background-color: #C0C0C0;
  width: 100%;
}

.KTCard .ProfileTable td {
  margin: 0px;
  padding: 1mm;
  padding-bottom: 0mm;
  vertical-align: top;
}

.KTCard .center {
    text-align: center;
}
.KTCard .ProfileTable th {
  margin: 0px;
  padding: 1mm;
}

.KTCard .notes {
}

.KTScout {
  width: 120mm;
}

.KTScout .TacticText {
  min-height: 70mm;
}

.KTScout .TacticFooter {
  width: 116mm;
}

.flag  {
  position: relative;
  top: 6px;
  width: 30px;
  height: 20px;
  border-width: 2px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0);
}

#modal {
    visibility: hidden;

    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 1000;
    text-align: left;
}

#modal div {
    margin: 10px auto;
    background-color: #88F;
    border:1px solid #000;

    padding:5px;
    text-align:left;
    display: inline-block;
}

#modaltext {
     font-family: monospace;
     margin: auto auto;
     background-color: #fff;
     padding:15px;
     font-size: 20px;
     text-align:left;
     display: inline-block;
 }

 .ApocCard {

   width: 105mm;
   min-height: 148mm;
 }
*/
