/*CSS Stylesheet*/

:root{
	--vp-width: calc(100vw - var(--sp-width, 0px));/*Full width for fixed positioned elements*/
	--full-width: var(--vp-width);
	--pg-header-height: 100px;
	--col-header-top: calc(32px + var(--pg-header-height));
	--idx-footer-height: 100px;
}

.centered{
	text-align: center;
}

HTML{
	margin:0px;
	font-size: 16px;
	line-height: 1.2rem;
	height: 100%;
	width: 100%;
	min-height: 100%;
	container-type: size;
	container-name: main;
}

BODY{
	margin:0px;
	font-family: Arial, Helvetica, sans-serif;
	text-align:center;
	overflow-y: scroll;
	overflow-x: auto;
	height: inherit;
}

#ProgSplash {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: url(../images/wait.gif);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 20em;
	animation-duration: 5s;
  	animation-name: splash;
	animation-fill-mode: forwards;
	animation-timing-function: ease-in;
    overflow: hidden;
}

BODY.user.login #ProgSplash {
	background-image: none;
}

@keyframes splash {
	from{
		background-color: rgba(1, 3, 1, 0);
	}

	to{
		background-color: #030D;
	}
}

HTML, DIV#header{
	background: url('../images/nip_logo.png') -10px -10px/auto 115px no-repeat, url('../images/pix_bg.png') 0 7px/auto 200px repeat;
    background-attachment: fixed;
}

DIV.FooterPad{
	background-color: transparent;
}

HTML, BODY{
	box-sizing: border-box;
}

DIV.page{
	box-sizing: border-box;
	/*padding-bottom:5em;*/
	text-align:center;
	margin:0px auto;
	min-width: min-content;
	min-height: calc(100% - 20px);
}

BODY.edit .wraper{
	/*min-width: 65%;*/
	padding: 10px;
	margin: 10px 10px 40px 10px;
}

BODY.edit input[type='checkbox']{
	vertical-align: middle;
}

BODY.view.index DIV.page{
	background-color: white;	
}

BODY.view.login FORM{
	padding: 10px;
}

/*BODY.view.del FORM{*/
BODY.view.del .wraper{ 
	margin-top: 8.6rem;
	padding-bottom:10px;
}

/*DIV.page DIV#header,*/
DIV.IdxHeader, 
DIV.IdxFilters,
DIV.DynCtrlToolsA{
	position: fixed;
	width: var(--full-width);
	box-sizing: border-box;
}

DIV.page DIV#header{
	box-sizing: border-box;
	position: sticky;
	width: var(--full-width);
	left:0;
}

DIV.page DIV#header{
	height: var(--pg-header-height);
	text-align: right;	
	padding: 1em;
	top:0;
	z-index: 4;
	font-size: 14px;
}

TABLE.xdebug-error{
	position: relative;
	float:left;
	width:60%;
	clear:right;
	z-index:99;
	margin-bottom: 2em;
	margin-left:1em;
}

DIV.page DIV.menubar DIV.menu{
	display:inline-block;
	cursor: pointer;
	/*border: 1px black solid;
	border-radius: 10px;*/
	padding:10px;
	width:40px;
	height:40px;
	color: transparent;
	position: relative;
}

DIV.menu#export{
	background: url('../images/export.png') center 0/auto 50px no-repeat;
}

DIV.menu#bell{
	background: url('../images/alert.png') center 0/auto 50px no-repeat;
}

DIV.menu.active#bell{
	background: url('../images/alert_on.png') center 0/auto 50px no-repeat;
	animation: 1s linear 0s blink 4 alternate-reverse; 
	
}

@keyframes blink{
	from { opacity:0.0;}
	to {opacity:1.0;}
}

DIV.menu#nip{
	background: url('../images/general.png') center 0/auto 50px no-repeat;
}

DIV.menu#session{
	background: url('../images/user.png') center 0/auto 50px no-repeat;
}

DIV.wraper{
	background-color: #ffffff;
	display: inline-block;
	padding:0 10px;
	white-space: nowrap;
	text-align:left;
	border: none;
	position: relative;
	clear:both;
	min-width: min-content;
}

BODY.login DIV.wraper{
	margin-top: 5%;
	/*margin-top: calc(120px + 5%);*/
}

BODY.view.edit H1{
    line-height: normal;
    margin-bottom: 10px;
    margin-top: 15px;
}

BODY.view.edit h1 + DIV.usrmsg {
    margin-top: 0px;
}

BODY.filter.edit LABEL+TEXTAREA{
	display: block;
	margin-bottom:5px;
}

BODY.filter.edit TEXTAREA+BR{
	display:none;	
}

BODY.filter.edit LABEL.c1{
	min-width: 70px;
	padding-right:5px;
}

BODY.index DIV.wraper{
	display:block;
	border:none;
	min-height: 70vh;
}

BODY.index.projet A.pp{
  text-transform: uppercase;
  font-weight: 700;
}

INPUT:focus,
TEXTAREA:focus,
SELECT:focus{
	outline: none;
}

INPUT[type="date"]{
	visibility: hidden;
	width: 7em;
}


INPUT[type="text"], INPUT[type="password"], TEXTAREA, SELECT, .Editor IFRAME, .roField{
	color: black;
	font-size: 0.85em;
}

INPUT[type="text"], INPUT[type="password"], INPUT[type="number"], TEXTAREA, SELECT, .Editor IFRAME{
	padding: 3px;
	border: 1px black solid;
}

input[name="hourlyrate"] {
    width: 7ch;
    text-align: right;
}

FORM{
	line-height:2.5em;
	margin:0px;
}

FORM .roField{
	line-height: normal;
	display: block;
	white-space: normal;
}

FORM.IdxBody{
	line-height:1rem;
}

FORM DIV.datesel input{
	font-family: Arial, Helvetica, sans-serif;
	width:10ch;
	margin-right:0.5ch;
}

FORM DIV.datesel input+button{
	background: url('../images/calendar.gif') center right -1px/auto 1em no-repeat;
}

FORM DIV.footer{
	margin-top:0.5rem;
}


LABEL{
	font-weight: bold;
	padding-right:1ch;/*0.3rem;*/
	text-transform: uppercase;	
	min-width: fit-content;
}

BODY.login LABEL{
	min-width:138px;
	display: inline-block;
	box-sizing:border-box;
}


BODY input[type='submit'], BODY button{
	font-size: 1.2rem;
	line-height: 2.2rem;
	font-weight: bold;
	/*border-style: groove;*/
	/*border-radius: 1rem;*/
	border:none;
	text-transform: uppercase;
	padding:0px 1.2rem;
	margin-top: 0.3rem;
	cursor: pointer;
	color: white;
	background-color: black;
}

BODY.edit INPUT.button.save{
	content: none;
	color: transparent;
	background: url('../images/save.png') no-repeat;
	width: 40px;
	height: 40px;
}

BODY.index DIV.button.ccl, 
BODY.edit BUTTON.button.ccl,
BODY.del BUTTON.button.ccl{
    content: none;
    color: transparent;
    overflow: hidden;
    background: url('../images/back.png') 0 0/5rem no-repeat;
    width: 90px;
    height: 2.5rem;
    display: block;
    padding: 0px;
}


BODY.index DIV.button.ccl{
	margin-top: 0.5rem;		
}

BODY.edit BUTTON.button.ccl{
	margin-top: 1rem;			
}

DIV.menubar DIV.username{
	text-transform: uppercase;
}

DIV.menubar DIV.username:before{
	content: '_';
}

BODY.login input[type='submit']{
	margin-left: 138px;
	content:none;
	color: transparent;
	background: url('../images/next.png') no-repeat;
}

BODY.login button.g-recaptcha{
	display: none;
}

BODY.login DIV.usrmsg,
BODY.view.del DIV.usrmsg{
	min-width: 410px;
}

BODY.login input{
	width:225px;
	box-sizing: border-box;
}

body.edit label{
	display: inline-block;
}

/*<PROJECT EDITOR>*/

	BODY.projet.edit LABEL.c1{
		width: 8ch;
		display: inline-block;
	}
	
	BODY.projet.edit LABEL.c2{
		width: 23ch;
		display: inline-block;
	}
	
	BODY.projet.edit LABEL.c3{
		display: inline-block;
	}

	BODY.projet.edit LABEL.c4{
		min-width: 8ch;
		white-space: normal;
		line-height: normal;
	}

	BODY.projet.edit LABEL.c5{
		margin-left: 3ch;
		min-width: 14ch;
	}

	BODY.projet.edit DIV#billAmtFld,
	BODY.projet.edit DIV#lockHoursFld{
		display: inline-block;
	}

	BODY.projet.edit DIV#billAmtFld{
		min-width: 35ch;
	}

	BODY.projet.edit DIV#lockHoursFld{
		min-width: 28ch;
	}
	
	BODY.projet.edit DIV#budgetFld{
		display:inline-block;
		margin-left:2ch;
	}
		
	BODY.projet.edit input[name='budget'],
	BODY.projet.edit input[name='estimatedwork']{
		text-align:right;
		width: 10ch;
	}
	
	BODY.project.edit select[name='parentid'],
	BODY.projet.edit input[name='name']{
		box-sizing: border-box;
		width: calc(100% - 12ch);
	}
	
	
/*</PROJECT EDITOR>*/

/*<TASK EDITOR>*/

	BODY.task.edit label.c1{
		width:8ch;
	}
	
	BODY.task.edit label.c2,
	BODY.task.edit label.c3{
		padding-left:0.45rem;
	}
	
	BODY.task.edit input[name='dateofcompletion_y']{
		width: calc(4rem - 12px);
	}
	
	BODY.task.edit select[name='projecttaskcategoryid']{
		width: 18rem;
	}
	
	BODY.task.edit select[name='projectid']{
		width: calc(100% - 11ch);
	}
	
	BODY.task.edit textarea[name='description']{
		width:100%;
		height:3rem;
		display:block;
		box-sizing: border-box;
	}
	
	BODY.task.edit input[name='actualwork']{
		width:4rem;
	}
/*</TASK EDITOR>*/


/*<RESOURCE EDITOR>*/
BODY.projectuser.edit FORM{
	display: grid;
	line-height: 3ch;
	margin: 0px;
	grid-template-columns: 15ch 1fr 0ch;
}

BODY.projectuser.edit LABEL{
	grid-column: 1;
}

BODY.projectuser.edit DIV.footer{
	grid-column: 1;
}

BODY.projectuser.edit DIV#project {
	display: inline-block;
    white-space: normal;
}
/*</RESOURCE EDITOR>*/

/*<EMPLOYEE EDITOR>*/
	BODY.employee.edit label.c1{
		width: 8ch;
	}
	
	BODY.employee.edit label.c2{
		width: 28ch;
	}
/*</EMPLOYEE EDITOR>*/

INPUT[style="display: none;"]+SPAN.unit{
	display: none;
}

INPUT+SPAN.unit{
	line-height:normal;
	display:inline-block;
	height:24px;
	padding-left:0.3rem;
}

TD, TH{
	vertical-align: top;
	padding:3px;
}

TABLE TD{
	padding-top: 5px;
}

TABLE TD INPUT, TABLE TD TEXTAREA{
	margin-top:-3px;
}

TABLE TD DIV{
	margin-top:-3px;
}

TABLE TD DIV INPUT{
	margin-top:auto;
}

TABLE.DynSelList{
	text-align:left;
}

TABLE.DynSelList DIV.CellWrapper{
	padding:3px 0px;
}

TABLE.DynSelList TD{
	padding-top: 2px;
}

TABLE.DynSelList TD INPUT[type="checkbox"]{
	margin-top:2px;
}

/*TABLE TD DIV INPUT[type="checkbox"]{
	margin-top:2px;
}*/

TABLE TD.LblCol, TABLE TD.LblCol2{
	width: 1px;
	padding-top: 5px;
}

TABLE TD.Tight{
	width: 1px;
}

TABLE TD.Loose{
	width: 77%;
}

/*TABLE TD.Tight DIV{
	white-space: nowrap;
}*/

.NoWrap,
TABLE TD.Tight DIV,
TABLE TD.LblCol Label, 
TABLE TD.LblCol2 Label {
	white-space: nowrap;
}


TABLE.FullWidth{
	width:100%;	
	text-align: left;
}

TABLE.FullWidth TD.Loose{
	width: auto;
}

TD.LblColLinks{
	width: 20px;
}

TEXTAREA{
	width:100%;
}

TEXTAREA.MedDesc{
	width:500pt;
	height:100pt;
	display: block;
}

.Editor TEXTAREA{
	width:100%;
	height:500px;
}

.Editor IMG{
	background-color: #b5b4a8;
}

/*User Messages*/

TABLE TD DIV.UsrInfoMsg:first-child, TABLE TD DIV.UsrWrngMsg:first-child, TABLE TD DIV.UsrErrMsg:first-child{
	margin-top:0px;
}

DIV.UsrWrngMsg{
	background-color: #DDDD99;/*Kind of yellow*/
}

DIV.usrmsg, DIV.err{
	width: auto;
	margin: 0px -10px;
	padding: 10px 20px;
	background-color:#000;
	color: #FFF;
	white-space: normal;
	line-height: 1.2rem;
}

DIV.UsrErrMsg{
	background-color: #DD9955;/*Kind of orange*/
}

DIV.Editor{
	width: 1500px;
	padding: 0px;
	overflow: hidden;
}

.IdxHeader select {
    padding: 0px;
}

DIV.FooterPad{
	height: 20px;
    /*background-color: #39ff0f;*/
    padding: 0px;
    bottom: 0;
	left: 0;
	position: sticky;
	width:100%;
	z-index: 1;
}

/*Data Containers*/
DIV.NumDC{
	text-align: right;
	margin-top:auto;
}

DIV.menu:active + DIV.submenus,
DIV.menu:hover + DIV.submenus,
DIV.submenus:hover{
	display: block;
}

DIV#bellsubmenus{
	margin-left:calc(var(--full-width) - 520px);
	min-height:2em;
	width: 480px;
	overflow-y:scroll;
	max-height: 12rem;
	text-align: left;
	white-space: normal;
}

DIV#bellsubmenus TABLE{
	width: 100%;
}

DIV#bellsubmenus TD.cell.content{
	text-align:left;
}

DIV#bellsubmenus TD.cell.del{
	cursor: pointer;
	font-weight: 700;
}

DIV#nipsubmenus{
	margin-left:calc(var(--full-width) - 165px);
	width:82px;
}

DIV#sessionsubmenus{
	margin-left:calc(var(--full-width) - 110px);
}

DIV.submenus{
	margin-top: 30px;
	position: absolute;
	padding: 5px 3px;	
	top:40px;
	background-color: #fff;
	z-index: 5;
	display:none;
	border: 1px solid #a29e89;
	text-align: center;
	white-space: nowrap;
}

DIV.submenus DIV.submenu{
	cursor: pointer;
    margin: 0.3em 0px;
    padding: 5px;
}

DIV.submenus DIV.submenu:hover{
	background-color: #dedede;
}

TABLE.MainMenu{
	position: fixed;
	right: 0px;
	margin-top:10%;
	margin-bottom:40%;
	color: white;
	text-align:center;
	border-collapse:collapse;
	width:28px;
}

TABLE.MainMenu TD.Item{
	border: 0px black hidden;
	background-color:#1e1f27;
	padding:5px 0px 5px 0px;
}

TD.MenuLimit{
	padding:0px;
	height: 6px;
	text-align: right;
}

TD.MenuLimit DIV{
	height:1px;
	width: 28px;
	margin:0px;
	text-align: left;
	@overflow:hidden;
}

TD.MenuLimit DIV.m0, TD.MenuLimit DIV.m1, TD.MenuLimit DIV.m2, TD.MenuLimit DIV.m3, TD.MenuLimit DIV.m4{
	@width: 28px;
	background-color:#1e1f27;
	position: relative;
}

TD.MenuLimit DIV.m0{
	margin-left: 5px;
}

TD.MenuLimit DIV.m1{
	margin-left: 4px;
}

TD.MenuLimit DIV.m2{
	margin-left: 3px;
}

TD.MenuLimit DIV.m3{
	margin-left: 2px;
}

TD.MenuLimit DIV.m4{
	height:2px;
	margin-left: 1px;
}

TABLE.MainMenu A:HOVER{
	color: #f3f4f6;
	text-decoration: none;
	font-weight:bold;
}

TABLE.MainMenu A{
	color: #8f909d;
	text-decoration: none;
	/*font-weight:bold;*/
}

DIV.TopMenu {
	position:absolute;
	top:0px;
	right: 0px;
	text-align: right;
	background-image: url('../images/top_menu_bg.png');
	background-position: right top;
	background-repeat: no-repeat;
	padding-right: 7px;
	padding-top: 7px;
	height: 28px;
	width:50%;
}

DIV.TopMenu A{
	cursor: pointer;
}

A#VersionInfo {
	position: absolute;
	right: 216px;
	margin-top:0px;
}

A#VersionInfo:hover{
	color: #757791;
} 																			

A#VersionInfo:active, A#VersionInfo:visited{
	color: #51536b;
}



DIV.DebugConsole{
	position: fixed;
	right: 5px;
	bottom: 5px;
}

@container main (max-width: 800px){
	
	DIV#bellsubmenus {
		width: calc(var(--full-width) - 2em);
		margin-left: -0.5em;
	}

	BODY.view.login .wraper,
	BODY.view.edit .wraper{
		font-size: 3vw;
	}

	BODY.view.edit.project .wraper{
		font-size: 2.7vw;
	}

	BODY.view.login LABEL{
		min-width: 27vw;
	}

	BODY.login input{
		width: 30vw;
	}

	BODY.login input[type='submit']{
		margin-left: 27vw;
		border-radius:0;
		color:transparent;
	}
	
	BODY.task.edit label.c2{
		padding-left:unset;
	}

	BODY.task.edit FORM {
		display: grid;
		grid-template-columns: 8ch 5ch 8ch 7ch 10ch 8ch 0ch;
		grid-gap: 1ch;
		grid-auto-rows: minmax(3ch, min-content);
		line-height: 3ch;
	}

	BODY.task.edit label.c1,
	BODY.task.edit label.c2{
		grid-column-start: 1;
	}

	BODY.task.edit select,
	BODY.task.edit input[type='text']{
		width:unset;
	}

	BODY.task.edit DIV.datesel{
		grid-column: 2/4;
	}

	BODY.task.edit select[name='projectid'],
	BODY.task.edit select[name='projecttaskcategoryid']{
		grid-column: 2/7;
		width: unset;
	}

	BODY.task.edit select[name='ownerid']{
		grid-column: 3/7;
		width: unset;
	}

	BODY.task.edit textarea[name='description']{
		grid-column:1/7;
	}

	BODY.task.edit FORM .roField{
		grid-column:1/6;
	}

	BODY.edit FORM DIV.footer{
		grid-column-start:1;
	}
}

@container main (min-width: 800px){
	DIV.page{
		/*width: cqmax;*/
	}

	BODY.view.login{
		/*zoom:1;*/
	}
}

