@CHARSET "UTF-8";

body {
	font-family: 'Verdana CE' , Verdana, 'Arial CE' , Arial, 'Helvetica CE' , Helvetica, sans-serif;
	font-size: 0.7em;
	font-weight: normal;
	color: #000000;
	margin: 0px;
	padding: 0px;
	background-color: #f2efee;
}

h1 {
	font-size: 130%;
	font-weight: bold;
	margin: 0px 0px 5px 0px;
}

h2 {
	font-size: 120%;
	font-weight: bold;
	margin-bottom: 5px;
}

h3 {
	font-size: 110%;
	font-weight: bold;
	margin: 0px;
}

a {
	color: #013983;
	font-weight: bold;
}

a:hover {
	color: #DE7109;
}

a.nounderline {
	text-decoration:none;
}

a.nobold {
	font-weight:normal;
}

.pointer {
	cursor: pointer;
}

.clickable {
	cursor: pointer;
}
.clickable:hover {
	text-decoration:underline;
	color: #DE7109;
}

form {
	margin: 0px;
	padding: 0px;
}

textarea {
	font-family: 'Verdana CE', Verdana, 'Arial CE', Arial, 'Helvetica CE', Helvetica, sans-serif;
	font-size: 100%;
}

hr {
	height: 1px;
	color: silver;
}

img {
	border: none;
}


.alert {
	color: red;
}

input.warning {
	background-color: red;
}


fieldset {
	margin: 2px;
	padding: 4px;
}

.fsBox {
	width: 415px;
	float: left;
}
.fsBox.none {
	float: none;
	clear: both;
}

.half {
	width: 600px;
}
.third {
	width: 400px;
}
.twoThird {
	width: 810px;
}
.quarter {
	width: 300px;
}
.threeQuarter {
	width: 900px;
}
.doubleWidth {
	width: 850px;
}
.pageWidth {
	width:1240px;
}


.fieldsetContent {
	padding: 2px;
}





legend {
	padding: 0px 5px 0px 5px;
}

.displayNone {
	display: none;
}

.floatLeft {
	float:left;
}
.floatRight{
	float:right;
}

.clear, .clearLeft {
	font-size: 1px;
	height: 1px;
	line-height: 1px;
}
.clear {
	clear: both;
}
.clearLeft {
	clear: left;
}
.clearRight {
	clear: right;
}
.alignLeft {
	text-align: left;
}
.alignCenter {
	text-align: center;
}
.alignRight {
	text-align: right;
}


.numericTextBox {
	text-align: right;
}

.disabledLink {
	color: Gray;
}

.disabledLink:hover {
	color: Gray;
}


.custom-button {
    align-items: flex-start;
    text-align: center;
    cursor: default;
    color: white;
    box-sizing: border-box;
    padding: 2px 6px 3px;
    border: 2px outset buttonface;
    border-image: initial;
    text-decoration: none;
}
.custom-button:hover{
    color: white;
}


.link-button {
    align-items: flex-start;
    text-align: center;
    cursor: default;
    color: white;
    box-sizing: border-box;
    padding: 2px 6px 3px;
    border-width: 2px;
    border-style: outset;
    border-color: buttonface;
    border-image: initial;
    text-decoration: none;

    background-color: #c3b3ad;
    color: #45352f;
    font-weight: normal;
}

.link-button:hover {
    text-decoration: underline;
    color: white;
    cursor: pointer;
}

.loginBox {
	width: 300px;
	text-align: center;
	margin: 0px auto;
}

.loginBtn {
	display: inline-block;
	box-sizing: border-box;
	position: relative;
	margin: 0.2em;
	padding: 0 15px 0 46px;
	border: none;
	text-align: left;
	line-height: 34px;
	white-space: nowrap;
	border-radius: 0.2em;
	font-size: 13px;
	color: #fff;
	text-decoration: none;
	width: 210px;
}

.loginBtn:before {
	content: "";
	box-sizing: border-box;
	position: absolute;
	top: 0;
	left: 0;
	width: 34px;
	height: 100%;
}

.loginBtn:focus {
	outline: none;
	color: #fff;
}

.loginBtn:active {
	box-shadow: inset 0 0 0 32px rgba(0,0,0,0.1);
}

.loginBtn--google {
	background: #DD4B39;
}

.loginBtn--google:before {
	border-right: #BB3F30 1px solid;
	background: url('../images/icon_google.png') 6px 6px no-repeat;
}

.loginBtn--google:hover,
.loginBtn--google:focus {
	color: #fff;
	background: #E74B37;
}

.loginBtn--microsoft {
	background: #2F2F2F;
}

.loginBtn--microsoft:before {
	border-right: #5E5E5E 1px solid;
	background: url('../images/icon_ms.png') 6px 6px no-repeat;
}

.loginBtn--microsoft:hover,
.loginBtn--microsoft:focus {
	color: #fff;
	background: #5E5E5E;
}

.strong {
	font-weight:bold;
}

.smallFont {
	font-size: 90%;
}

.bigText {
	font-size: 120%;
	font-weight: bold;
}

.italic {
	font-style:italic;
}

.alignBottom {
	vertical-align: bottom;
}

.inlineInfo {
	font-size: 80%;
	color: gray;
}


/* right-hand column of forms: one card with the action buttons above the portrait, all stretched to one fixed width */
.sideColumn {
	--side-w: 200px;
	float: right;
	display: flex;
	flex-direction: column;
	gap: 10px;
	box-sizing: border-box;
	width: var(--side-w);
	margin-right: 20px;
	padding: 8px;
	border: 1px solid #9b9d9e;
	border-radius: 4px;
}

.sideActions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4px;
}

.sideActions > * {
	grid-column: 1 / -1;
	margin: 0;
}

.sideActions > .sideActionHalf {
	grid-column: auto;
}

.sideActionCheck {
	font-size: 90%;
	cursor: pointer;
}

/* the column is the card, the portrait is just its content */
.sideColumn > .portraitBox {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.sideColumn > .portraitBox > legend {
	display: none;
}

.sideColumn > .portraitBox .fieldsetContent {
	padding: 0;
}

.portraitPlaceholder {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	box-sizing: border-box;
	width: 120px;
	aspect-ratio: 3 / 4;
	margin: 0 auto;
	padding-top: 15%;
	overflow: hidden;
	border-radius: 4px;
	background: #e4e6e8;
}

.portraitPlaceholder svg {
	width: 80%;
	fill: #b4b8bc;
}

.dangerAction {
	display: block;
	padding: 4px 8px;
	border-radius: 2px;
	color: #c62828;
	font-weight: bold;
	text-align: center;
	text-decoration: none;
}

.dangerAction:hover {
	background: #fdecea;
}

.sideNote {
	font-size: 90%;
	color: gray;
}

/* forms with tabs: the column sits beside the tabs; below the width both need (two card columns in the tabs + column)
   it moves above them, with the buttons and the photo side by side to save height */
#tabsForm:has(> #tabs):has(> .sideColumn) {
	container: sideColumnForm / inline-size;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

#tabsForm:has(> #tabs):has(> .sideColumn) > * {
	flex: 0 0 100%;
}

#tabsForm:has(> #tabs):has(> .sideColumn) > #tabs {
	flex: 0 0 auto;
	float: none;
}

#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn {
	flex: 0 0 auto;
	float: none;
	margin-left: auto;
}

/* content placed after the tabs (e.g. the HubSpot import) must not end up between the tabs and the column */
#tabsForm:has(> #tabs):has(> .sideColumn) > #tabs ~ :not(.sideColumn) {
	order: 1;
}

#tabsForm:has(> #tabs):has(> .sideColumn) > br {
	display: none;
}

@container sideColumnForm (max-width: 1320px) {
	/* a full-width row forces the break even when a narrow column (no portrait) would fit beside the tabs */
	#tabsForm:has(> #tabs):has(> .sideColumn) > #tabs {
		box-sizing: border-box;
		flex-basis: 100%;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn {
		order: -1;
		display: grid;
		grid-template-columns: max-content;
		gap: 0 12px;
		align-items: start;
		width: fit-content;
		margin: 0 0 10px;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn:has(> .portraitBox) {
		grid-template-columns: max-content auto;
		grid-template-rows: auto 1fr;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn > .sideActions {
		min-width: 160px;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn > .sideActions + :not(.portraitBox) {
		margin-top: 10px;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn > .portraitBox {
		grid-column: 2;
		grid-row: 1 / span 2;
		min-width: var(--side-w);
		max-width: 520px;
	}

	/* photo on the left, name, status and notes flow beside it */
	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn > .portraitBox .fieldsetContent {
		display: flow-root;
		text-align: left;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn > .portraitBox .fieldsetContent > :first-child {
		float: left;
		margin-right: 10px;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn > .portraitBox .fieldsetContent > :not(:first-child) {
		overflow: hidden;
		margin-top: 0;
		margin-bottom: 6px;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn .portraitBox img {
		display: block;
		width: auto;
		max-height: 110px;
	}

	#tabsForm:has(> #tabs):has(> .sideColumn) > .sideColumn .portraitPlaceholder {
		width: auto;
		height: 110px;
	}
}

/* Homepage */
/* Base styles for the layout container */
.homePageLayout {
	display: flex;
	flex-direction: row; /* Sidebar on the right, main content on the left */
	align-items: flex-start;
	margin-left: 0px !important;
	width: auto !important;
}

.homePageSideBar {
	flex: 0 1 auto;
	order: 2;  /* Sidebar on the right */
	margin-left: 10px !important;
	width: 429px !important;
}

.homePageMainContent {
	flex-grow: 1; /* Main content takes up the rest of the space */
	order: 1;  /* Main content on the left */
}



.portraitBox {
	width: 160px;
	text-align: center;
	float: right;
    margin-bottom: 10px;
}
.portraitBox .fieldsetContent {
	padding: 5px;
}

.footer {
	width: 100%;
	text-align: center;
}

.portraitBox .fullName {
	font-size: 110%;
	margin: 5px 0px 2px 0px;
}

.portraitBox .status {
	font-weight: bold;
}
.portraitBox .status_active {
	color: #00AA00;
}
.portraitBox .status_vip {
	color: #0000AA;
}
.portraitBox .status_eliminated_nms {
	color: #AA0000;
}
.portraitBox .status_eliminated_own {
	color: #880000;
}

.portraitBox .eliminationReason {
	margin-top: 10px;
	font-size: 90%;
	text-align: left;
}
.portraitBox .eliminationReason ul {
	margin: 0px;
	padding: 0px;
}
.portraitBox .eliminationReason ul li {
	margin-left: 5px;
}


.portraitBox .noteUnderPhoto {
	margin-top: 15px;
	font-size: 90%;
	text-align: left;
}

.note {
	font-style: italic;
	color: gray;
}

.invalid {
	font-style: italic;
	color: gray !important;
	text-decoration: line-through;
}

.tinyFont {
	font-size: 90%;
}

.standAloneBox {
	background-color: White;
}

.standAloneBox .header {
	background-color: Gray;
	color: White;
	position: relative;
	height: 14px;
	padding-left: 2px;
}


ul.actions {
	list-style: none;
	margin: 0px;
	padding: 0px;
}

ul.actions li {
	margin: 5px;
	padding: 0px;
}


/*****************************************************************************/
/**********************************  links  **********************************/
/*****************************************************************************/


#links {
}

#links ul {
	list-style: none;
	margin: 0px;
	padding: 5px 0px 0px 0px;
}

#links ul li {
	float: left;
	padding: 0px;
	border-right: solid 1px #013983;
}

#links ul li a, #links ul li strong {
	text-decoration: none;
	display: block;
	padding: 2px 5px 2px 5px;
}



/*****************************************************************************/
/*******************************  main content  ******************************/
/*****************************************************************************/

#mainContent {
	position: relative;
	margin: 5px 5px 0px 5px;
}

#mainContent .navigationPath {
	background-color: #e9e2e2;
	padding: 2px;
	margin-bottom: 10px;
}

#mainContent .navigationPath ul {
	list-style: none;
	margin: 0px;
	padding: 0px;
}

#mainContent .navigationPath ul li {
	float: left;
	padding: 0px 5px 0px 0px;
}

#mainContent .navigationPath ul li a {
	color: black;
	text-decoration: none;
	font-weight: normal;
}

#mainContent .navigationPath ul li a:hover {
	text-decoration: underline;
}

#mainContent .navigationPath ul li .active {
	font-weight: bold;
}

.browserSearchResult {

}



/*****************************************************************************/
/**********************************  colors  *********************************/
/*****************************************************************************/

.colorSchema {
	width: 100%;
}

.colorSchema td {
	padding: 4px;
	border: solid 1px white;
}

.bgColorRed {
	background-color: rgb(183,40,39)!important;
	color: white!important;
}

.bgColorGreen {
	background-color: rgb(87,145,69)!important;
	color: white!important;
}

.bgColorOchre {
	background-color: rgb(215,127,47)!important;
	color: white!important;
}

.bgColorBlue {
	background-color: rgb(0,58,108)!important;
	color: white!important;
}

.bgColorYellow {
	background-color: rgb(240,183,4)!important;
	color: black!important;
}



.fgColorRed {
	color: rgb(183,40,39)!important;
}

.fgColorGreen {
	color: rgb(87,145,69)!important;
}

.fgColorOchre {
	color: rgb(215,127,47)!important;
}

.fgColorBlue {
	color: rgb(0,58,108)!important;
}

.fgColorYellow {
	color: rgb(240,183,4)!important;
}

.rotate {
  animation-name: rotate;
  animation-duration: 2.1s;
  animation-iteration-count: infinite;
}

@keyframes rotate {
  0% {
    rotate: 0;
  }
  3% {
    rotate: 0;
  }
  12% {
    rotate: -15deg;
  }
  88% {
    rotate: 735deg;
  }
  97% {
    rotate: 720deg;
  }
  100% {
    rotate: 720deg;
  }
}

.balance .red {
	color: #c0392b;
}

.balance .green {
	color: #27ae60;
}


/* Homepage - today's attendance filter */
.attendance-filter {
	float: right;
	display: inline-flex;
	margin-left: 12px;
	border: 1px solid #b5b5b5;
	border-radius: 4px;
	overflow: hidden;
	font-size: 11px;
	font-weight: normal;
	line-height: 1;
}

.attendance-filter-option {
	margin: 0;
	padding: 3px 7px;
	border: 0;
	border-left: 1px solid #b5b5b5;
	background: #fff;
	color: #555;
	font: inherit;
	cursor: pointer;
}

.attendance-filter-option:first-child {
	border-left: 0;
}

.attendance-filter-option:hover {
	background: #eee;
}

.attendance-filter-option.is-active {
	background: #555;
	color: #fff;
}

fieldset.attendance-today[data-filter="working"] .attendance-table-row-type-not-working,
fieldset.attendance-today[data-filter="not-working"] .attendance-table-row-type-working {
	display: none;
}
