/* GENERIC */
body {
	background-color:olive;
	margin:0.2em 2em 2em 2em;
}
table {
	border-collapse:collapse;
}
th {
	padding:0.5em 1em 0.5em 1em;
}
td {
	padding:0.7em 1em 0.5em 1em;
}
tr.interactive:hover > td {
	cursor:pointer;
	background-color:#333;
	color:orange !important;
}
.inactive {
	cursor:auto;
	font-style:italic;
	color:#666;
}
.viewDiv {
//	margin-top:1em;
}
/* ORBAT */
#notes {
	margin:1em;
	font-size:x-small;
	width:56%;
}
#orbatDiv {
	margin-bottom:15em;
}
.orbat > * > tr > td, .orbat th {
	padding-left:8mm;
	padding-right:8mm;
}
#orbatTitle {
	text-align:left;
	font-weight:bold;
	font-size:normal;
}
.orbat {
	font-family:sans-serif;
	background-color:#fff;
	border:3px solid black;
	width:60%;
}
#orbatListName {
	font-style:italic;
	font-size:x-small;
	font-weight:normal;
}
.orbat tr {
	border-bottom:none;
}
.orbat tr.orbatFormation td {
	padding-bottom:0;
	border-bottom:none;
	font-weight:bold;
	font-size:small;
}
.orbat span.upgradeMultiplier {
	float:left;
}
tr.orbatUpgrade > td.points {
	padding-left:8mm;
	color:white;
}
tr.orbatUpgrade > td {
	font-size:x-small;
	padding-left:8mm;
	padding-top:0;
	padding-bottom:0;
	color:#444444;
}
tr.mandatory > td {
	color:black;
}
.orbat tr.orbatDetails > td {
	font-size:x-small;
	padding-top:0.2em;
	padding-bottom:0.5em;
	color:#555;
}
.formationDetailsContent .profileCard {
	border:1px solid #ddd;
	padding:0.4em 0.6em;
	margin:0.25em 0;
	background:#fafafa;
}
.formationDetailsContent .profileCardReference {
	border-style:dashed;
	background:#fffdf2;
}
.formationDetailsContent .formationComposition {
	margin:0.15em 0 0.45em;
	color:#444;
}
.formationDetailsContent .profileName {
	font-weight:bold;
	color:#222;
}
.formationDetailsContent .profileStats,
.formationDetailsContent .profileSubheading {
	margin-top:0.25em;
}
.formationDetailsContent ul {
	margin:0.2em 0 0.4em 1.3em;
	padding:0;
}
.formationDetailsContent .noProfileData {
	font-style:italic;
}
.orbat tbody {
	border-top:dotted 1px gray;			
}
.points {
	padding-left:0;	
	text-align:right;
	vertical-align:top;
}
#orbatTotal {
	vertical-align:top;
	text-align:right;
//s	font-weight:normal;
}
#formationDivider {
	border-bottom:1px dotted gray;
}
#controls a {
	padding-right:1em;
}
#controls a.selected {
	text-decoration:none;
	cursor:auto;
	color:#363;
}
#printV2Div {
	display:none;
	padding:0;
	font-family:sans-serif;
	color:#000;
}
body.printV2Mode {
	background-color:#fff;
	margin:0.35in;
}
body.printV2Mode #armyList,
body.printV2Mode #controls,
body.printV2Mode #orbatDiv {
	display:none;
}
body.printV2Mode #printV2Div {
	display:block;
}
.printV2Sheet {
	width:100%;
}
.printV2Header {
	border-bottom:1px solid #000;
	padding-bottom:0.25em;
	margin-bottom:0.45em;
}
.printV2Title {
	font-size:1.25em;
	font-weight:bold;
}
.printV2Meta {
	font-size:0.9em;
	color:#000;
	margin-top:0.2em;
}
.printV2Summary {
	width:100%;
	font-size:0.85em;
	border-collapse:collapse;
}
.printV2Summary th,
.printV2Summary td {
	padding:0.2em 0.3em;
	border-bottom:1px solid #000;
	vertical-align:top;
}
.printV2Summary th {
	text-align:left;
	background:transparent;
}
.printV2Summary .printV2SummaryTotal td {
	font-weight:bold;
	border-top:2px solid #777;
	border-bottom:0;
	background:#f5f5f5;
}
.printV2Points {
	text-align:right;
	white-space:nowrap;
}
.printV2ArmySummary {
	margin:0.45em 0 0;
	padding:0.4em 0.55em;
	border:1px solid #c7c7c7;
	background:#f8f8f8;
	font-size:0.8em;
	line-height:1.3;
	color:#111;
	-webkit-print-color-adjust:exact;
	print-color-adjust:exact;
}
.printV2ArmySummary p {
	margin:0;
}
.printV2PageBreak {
	page-break-after:always;
	break-after:page;
	height:0;
}
.printV2RulesAppendix {
	page-break-before:always;
	break-before:page;
	font-size:0.82em;
}
.printV2AppendixTitle {
	font-size:1.05em;
	font-weight:bold;
	margin-bottom:0.35em;
	padding-bottom:0.15em;
	border-bottom:1px solid #000;
}
.printV2RulesSection {
	margin-bottom:0.8em;
}
.printV2RulesSectionTitle {
	font-size:0.95em;
	font-weight:bold;
	margin-bottom:0.25em;
}
.printV2RulesEmpty {
	border:1px solid #000;
	padding:0.25em 0.35em;
}
.printV2RuleCard {
	border:1px solid #000;
	margin-bottom:0.35em;
	padding:0.25em 0.35em;
	background:transparent;
	page-break-inside:avoid;
	break-inside:avoid;
}
.printV2RuleHead {
	display:flex;
	justify-content:space-between;
	gap:0.5em;
	border-bottom:1px solid #000;
	padding-bottom:0.12em;
	margin-bottom:0.18em;
}
.printV2RuleName {
	font-weight:bold;
}
.printV2RuleSource {
	font-size:0.75em;
	white-space:nowrap;
}
.printV2RuleBody p {
	margin:0 0 0.18em 0;
}
.printV2RuleBody p:last-child {
	margin-bottom:0;
}
.printV2Profiles {
	font-size:10px;
	line-height:1.25;
	column-count:2;
	column-gap:4mm;
}
.printV2Profiles .profileCard {
	display:inline-block;
	width:100%;
	margin:0 0 3mm 0;
	box-sizing:border-box;
	page-break-inside:avoid;
	break-inside:avoid;
	border:1px solid #8c8c8c;
	background:#fff;
	border-radius:2px;
	overflow:hidden;
	-webkit-print-color-adjust:exact;
	print-color-adjust:exact;
}
.printV2Profiles .profileCardHeader {
	background:#f5f5f5;
	color:#000;
	font-size:1.05em;
	font-weight:bold;
	letter-spacing:0.02em;
	padding:0.45em 0.6em;
	border-bottom:1px solid #bdbdbd;
}
.printV2Profiles .profileStatsGrid {
	display:table;
	width:100%;
	table-layout:fixed;
	border-bottom:1px solid #d0d0d0;
	background:#f1f1f1;
}
.printV2Profiles .profileStatItem {
	display:table-cell;
	padding:0.35em 0.2em 0.4em;
	text-align:center;
	border-right:1px solid #d0d0d0;
}
.printV2Profiles .profileStatItem:last-child {
	border-right:0;
}
.printV2Profiles .profileStatLabel {
	font-size:0.68em;
	font-weight:bold;
	letter-spacing:0.04em;
	text-transform:uppercase;
	color:#555;
}
.printV2Profiles .profileStatValue {
	font-size:0.92em;
	font-weight:bold;
	color:#111;
}
.printV2Profiles .profileSection {
	margin:0.45em 0.45em 0.4em;
	border:1px solid #d3d3d3;
	background:#f7f7f7;
	page-break-inside:avoid;
	break-inside:avoid;
}
.printV2Profiles .profileSectionTitle {
	padding:0.22em 0.45em;
	border-bottom:1px solid #d3d3d3;
	background:#e6e6e6;
	font-size:0.72em;
	font-weight:bold;
	letter-spacing:0.05em;
	text-transform:uppercase;
	color:#333;
}
.printV2Profiles .profileWeaponsTable {
	width:100%;
	border-collapse:collapse;
	table-layout:fixed;
	font-size:0.76em;
	background:#fff;
}
.printV2Profiles .profileWeaponsTable th,
.printV2Profiles .profileWeaponsTable td {
	padding:0.28em 0.42em;
	border-bottom:1px solid #e0e0e0;
	vertical-align:top;
	text-align:left;
}
.printV2Profiles .profileWeaponsTable th {
	background:#efefef;
	font-size:0.88em;
	font-weight:bold;
	color:#333;
}
.printV2Profiles .profileWeaponsTable tbody tr:last-child td {
	border-bottom:0;
}
.printV2Profiles .profileWeaponsTable th:nth-child(1),
.printV2Profiles .profileWeaponsTable td:nth-child(1) {
	width:46%;
}
.printV2Profiles .profileWeaponsTable th:nth-child(2),
.printV2Profiles .profileWeaponsTable td:nth-child(2) {
	width:22%;
}
.printV2Profiles .profileWeaponsTable th:nth-child(3),
.printV2Profiles .profileWeaponsTable td:nth-child(3) {
	width:32%;
}
.printV2Profiles .profileWeaponName {
	font-weight:bold;
	color:#111;
}
.printV2Profiles .profileWeaponNotes {
	margin-top:0.15em;
	font-size:0.92em;
	font-weight:normal;
	color:#555;
}
.printV2Profiles .profileCompactText {
	padding:0.28em 0.45em 0.34em;
	background:#fff;
}
.printV2Profiles .profileCompactText p {
	margin:0 0 0.22em 0;
	font-size:0.77em;
	line-height:1.25;
	text-indent:0;
}
.printV2Profiles .profileCompactText p:last-child {
	margin-bottom:0;
}
.printV2Profiles .profileCompactEmpty {
	font-style:italic;
	color:#666;
}
#controls {
	font-family:monospace;
	font-size:small;
	margin-top:0.5em;
	margin-bottom:0.5em;
}
#warnings {
	color:#aa0000;
	font-size:x-small;
	font-weight:normal;
}
.units {
	font-size:x-small;
	font-weight:normal;
//	color:black;
}
.detailsToggle {
	float:right;
	font-size:x-small;
	font-weight:normal;
	text-decoration:none;
	margin-left:0.6em;
}


/* DROP DOWN */
div.dropDown {
	cursor:auto;
	position:absolute;
	z-index:99;
	width:44%;
	margin-left:10%;
	margin-top:-4px;
}

div.dropDown .listDiv table td {
	font-weight:normal;
}

/* ARMY LISTS */
#armyList {
	padding:0 1em 1em 1em;			
	position:fixed;
	right:0;
	top:0;
	height:100%;
	width:33%;
	overflow:auto;
}
#armyList .listDiv {
	margin-top:2em;
}
.listDiv {
	padding:0.5em 1em 1em 1em;
	border:1px solid #222;
	background-color:#ddd;
	color:#222;
	font-family:serif;
	font-size:small;
	box-shadow:black 5px 5px 5px;
	-webkit-box-shadow: black 5px 5px 5px;
	-moz-box-shadow: black 5px 5px 5px;
}
.listDiv table {
	width:100%;
}
.listDiv table td {
	padding:0 1em 0 1em;
}
.listDiv td.points {
	padding-left:0;
	text-align:right;
}
.listDiv table th {
	border-bottom:1px solid #222;
}
.listDiv .constraint {
	float:right;
}
.even {
	background-color:#ccc;
}

@media print {
	body {
		background-color:white;
	}
	body.printV2Mode #armyList,
	body.printV2Mode #controls,
	body.printV2Mode #orbatDiv,
	#armyList, #controls, div.dropDown, #notes {
		display:none;
	}
	body.printV2Mode #printV2Div {
		display:block !important;
		padding:0;
	}
	body.printV2Mode .printV2Header,
	body.printV2Mode .printV2Summary th,
	body.printV2Mode .printV2Summary td,
	body.printV2Mode .printV2Profiles .profileCard,
	body.printV2Mode .printV2ArmySummary {
		color:#000 !important;
	}
	body.printV2Mode .printV2Profiles .profileCard {
		break-inside:avoid;
		page-break-inside:avoid;
	}
	body.printV2Mode .printV2Profiles .profileCard,
	body.printV2Mode .printV2Profiles .profileSection,
	body.printV2Mode .printV2Profiles .profileWeaponsTable,
	body.printV2Mode .printV2Profiles .profileWeaponsTable th,
	body.printV2Mode .printV2Profiles .profileWeaponsTable td {
		-webkit-print-color-adjust:exact;
		print-color-adjust:exact;
	}
	body.printV2Mode .printV2RulesAppendix,
	body.printV2Mode .printV2RuleCard,
	body.printV2Mode .printV2RulesEmpty {
		background:transparent !important;
		color:#000 !important;
	}
	body.printV2Mode .printV2RulesAppendix,
	body.printV2Mode .printV2RuleCard {
		border-color:#000;
	}
	body.printV2Mode .printV2RuleBody p {
		margin:0 0 0.18em 0;
	}
	body.printV2Mode .printV2Summary .printV2SummaryTotal td {
		background:#f5f5f5 !important;
		border-top-color:#777 !important;
	}
	body.printV2Mode .printV2ArmySummary {
		background:#f8f8f8 !important;
		border-color:#c7c7c7 !important;
	}
	body.printV2Mode .printV2Profiles .profileCardHeader {
		background:#f5f5f5 !important;
		color:#000 !important;
	}
	body.printV2Mode .printV2Profiles .profileStatsGrid {
		background:#f1f1f1 !important;
	}
	body.printV2Mode .printV2Profiles .profileSection {
		background:#f7f7f7 !important;
		border-color:#cfcfcf !important;
	}
	body.printV2Mode .printV2Profiles .profileSectionTitle,
	body.printV2Mode .printV2Profiles .profileWeaponsTable th {
		background:#e6e6e6 !important;
	}
	body.printV2Mode .printV2Profiles .profileCompactText,
	body.printV2Mode .printV2Profiles .profileWeaponsTable {
		background:#fff !important;
	}
	#orbat {
		width:100%;
		margin-bottom:1em;
	}
	.orbatUpgrade td.points {
		color:white;
	}
}

#plainTextDiv {
	width:60%;
}

#importDiv {
	margin-bottom:1em;
}
#importDiv textarea {
	width:40em;
	height:10em;
}
