:root {
	--bg-body: #EBECEC;
	--bg-input-login: #e8f0fe;
	--bg-btn: #666;
	--cl-btn: white;
	--bw: 10px;
}

* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
}

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	background: var(--bg-body);
	height: 100%;
	width: 100%;
	overflow: hidden;
	cursor: default;
}

input {
	font-family: inherit;
	font-size: inherit;
	background: transparent;
	border: 0;
	outline: 0;
	width: 100%;
	height: 100%;
}

/* =========== _divLogin =========== */

._divLogin {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-image: url('img/backgroundBody.jpg');
	background-size: cover;
}

._divLogin > div {
	font-weight: bolder;
	width: 750px;
	height: 400px;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	align-items: center;
	background: white;
	border: 2px solid black;
}

._divLogin > div > div:nth-child(1) {
	font-size: 2rem;
	text-align: center;
	height: 55px;
	display: flex;
}

._divLogin > div > div:nth-child(2) {
	border: 2px solid black;
	font-size: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 20px;
	padding: 20px 50px;
}

._divLogin > div > div:nth-child(2) > div:nth-child(2) {
	font-size: 1.2rem;
	display: grid;
	grid-template-columns: auto auto;
	justify-content: center;
	justify-items: end;
	gap: 20px;
}

._divLogin > div > div:nth-child(2) > div:nth-child(2) > input {
	background: var(--bg-input-login);
	width: 200px;
}
._divLogin > div > div:nth-child(2) > div:nth-child(3) {
	text-align: center;
}

._divLogin > div > div:nth-child(2) > div:nth-child(3) > span {
	color: var(--cl-btn);
	background: var(--bg-btn);
	padding: 5px 20px;
	cursor: pointer;
}

/* =========== _divInteface =========== */

._divInterface {
	width: 100%;
	height: 100%;
	display: grid;
  grid-template-areas: "menu menu" "tabs tabs" "screen tasks";
	grid-template-columns: 1fr min-content;
	grid-template-rows: min-content min-content 1fr;
	background: white;
}

/* ._divInterface > div:nth-child(1) { */
	/* grid-column: span 2; */
	/* background: #C5C6C6; */
	/* font-weight: bolder; */
/* } */

/* ._divInterface > div:nth-child(2) { */
	/* grid-column: span 2; */
	/* background: #D9DADA; */
	/* font-weight: bolder; */
/* } */

/* ._divInterface > div:nth-child(3) { */
	/* background: #555; */
/* } */

/* ._divInterface > div:nth-child(4) { */
	/* background: #D9DADA; */
/* } */

/* =========== _menu =========== */

._menu {
	/* grid-column: span 2; */
  grid-area: menu;
	background: #C5C6C6;
	font-weight: bolder;
	height: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

._menu > div:nth-child(1) {
	display: flex;
}

._menu > div:nth-child(1) > div {
	transition: all 350ms;
	padding: 10px;
}

._menu > div:nth-child(1) > div:hover {
	background: #9D9E9E;
}

._menu > div:nth-child(2) {
	display: flex;
	/* background: blue; */
	/* gap: 10px; */
}

._menu > div:nth-child(2) > div {
	padding: 10px;
	/* display: flex; */
	/* background: blue; */
	/* gap: 10px; */
}

._menu > div:nth-child(2) > div:last-child {
	transition: all 350ms;
	/* transition-duration: 350ms; */
	background: #B2B3B3;
}

._menu > div:nth-child(2) > div:last-child:hover {
	background: #9D9E9E;
}

/* =========== _tabs =========== */

._tabs {
  grid-area: tabs;
	/* grid-column: span 2; */
	background: #D9DADA;
	font-weight: bolder;
	display: flex;
	align-items: stretch;
}

._tabs > div {
}

._tabs > div:nth-child(1) {
	display: flex;
}

._tabs > div:nth-child(1) > div {
	transition: all 350ms;
	display: flex;
	border-radius: 0px 15px 0px 0px;
	/* background: orange; */
	align-items: center;
	padding: 5px;
	gap: 5px;
}

._tabs > div:nth-child(1) > div > img {
	transition: all 350ms;
	border-radius: 3px;
}

._tabs > div:nth-child(1) > div > img:hover {
	background: red;
}

._tabs > div:nth-child(2) {
	transition: all 350ms;
	padding: 5px;
	font-size: 1.2rem;
	width: 35px;
	text-align: center;
}

._tabs > div:nth-child(2):hover {
	background-color: #B2B3B3;
}

/* =========== _screen =========== */

._screen {
  grid-area: screen;
	position: relative;
	transition: all 350ms;
	background-image: url(svg/gpnLogo.svg);
	background-repeat: no-repeat;
	background-position: top 35px right 35px;
	background-size: 200px;
}

/* =========== _contextMenu =========== */

._contextmenu {
	transition: all 350ms;
	border: 1px solid black;
	position: absolute;
	background: white;
	z-index: 1002;
	box-shadow: 2px 3px 5px;
	display: flex;
	flex-direction: column;
}

._contextmenu > div {
	transition: all 350ms;
	padding: 5px;
	display: flex;
	justify-content: space-between;
	gap: 5px;
}

._contextmenu > div:hover {
	background: #D9DADA;
}

._contextmenu img {
	transform: rotate(90deg);
	position: relative;
	bottom: -0.1em;
}

/* =========== _change =========== */

._change {
	transition: all 350ms;
	position: absolute;
	opacity: 1;
  inset: var(--t, 0) var(--r, 0) var(--b, 0) var(--l, 0);
	> div:not(._resizing) {
		position: absolute;
    inset: 0;
	}
	> ._resizing {
		position: absolute;
	}
	> ._sDiv {
		height: var(--bw);
		inset: calc(var(--bw) / -2) calc(var(--bw) / 2) auto;
		cursor: s-resize;
	}
	> ._nDiv {
		height: var(--bw);
		inset: auto calc(var(--bw) / 2) calc(var(--bw) / -2);
		cursor: n-resize;
	}
	> ._eDiv {
		width: var(--bw);
		inset: calc(var(--bw) / 2) auto calc(var(--bw) / 2) calc(var(--bw) / -2);
		cursor: e-resize;
	}
	> ._wDiv {
		width: var(--bw);
		inset: calc(var(--bw) / 2) calc(var(--bw) / -2) calc(var(--bw) / 2) auto;
		cursor: w-resize;
	}
	> ._seDiv {
		height: var(--bw);
		width: var(--bw);
		inset: calc(var(--bw) / -2) auto auto calc(var(--bw) / -2);
		cursor: se-resize;
	}
	> ._swDiv {
		height: var(--bw);
		width: var(--bw);
		inset: calc(var(--bw) / -2) calc(var(--bw) / -2) auto auto;
		cursor: sw-resize;
	}
	> ._neDiv {
		height: var(--bw);
		width: var(--bw);
		inset: auto auto calc(var(--bw) / -2) calc(var(--bw) / -2);
		cursor: ne-resize;
	}
	> ._nwDiv {
		height: var(--bw);
		width: var(--bw);
		inset: auto calc(var(--bw) / -2) calc(var(--bw) / -2) auto;
		cursor: nw-resize;
	}
}

._change._move {
	transition: opacity 350ms;
}

._change._fullScreen {
  inset: 0;
  > ._resizing {
    display: none;
  }
}

._change._move._opacity {
	opacity: 0.5;
}

/* ._change._opacityIn { */
	/* transition: opacity 350ms; */
	/* opacity: 0.5; */
/* } */
/* ._change._opacityOut { */
	/* opacity: 1; */
/* } */
/* ._change._fullScreen { */
	/* transition: inset 350ms; */
/* } */

/* =========== _window =========== */

._window {
	transition: all 350ms;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: min-content 1fr;
	border: 1px solid black;
	box-shadow: 2px 2px 3px;
}

._window._fullScreen {
	box-shadow: unset;
	border: 0;
}

._window > ._head {
	transition: all 350ms;
	background: #EBECEC;
	font-weight: bolder;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-left: 5px;
	color: #727271;
}

._window > ._active {
	background: #D9DADA;
	color: black;
}

._window > ._head ._btns {
	display: flex;
}

._window > ._head ._btns > img {
	transition: all 350ms;
}

._window > ._head ._btns ._rollUp:hover {
	background: #C5C6C6;
}

._window > ._head ._btns ._fullScreen:hover {
	background: #C5C6C6;
}

._window > ._head ._btns ._close:hover {
	background: red;
}

._window > ._body {
	background: white;
}

/* =========== _tasks =========== */

._tasks {
  grid-area: tasks;
	transition: all 350ms;
	background: #D9DADA;
	padding: 5px;
	gap: 5px;
	display: flex;
	flex-direction: column;
}

._tasks > img {
	transition: all 350ms;
	filter: grayscale(1);
}

._tasks > img._active {
	background: #B2B3B3;
	filter: grayscale(0);
}

._tasks > img:hover {
	background: #C5C6C6;
}

/* =========== media_mobile =========== */

@media (hover: none) and (pointer: coarse) {
  ._divInterface {
    grid-template-areas: "menu" "tabs" "screen" "tasks";
    grid-template-columns: 1fr;
    grid-template-rows: min-content min-content 1fr min-content;
  }
  ._tasks {
    flex-direction: row;
  }
  ._change {
    inset: 0;
    > .resizing {
      display: none;
    }
  }
  ._window {
    box-shadow: unset;
    border: 0;
    > ._head {
      ._fullScreen {
        display: none
      }
      ._rollUp {
        display: none
      }
    }
  }
}


/* =========== _task =========== */

/* ._task { */
	/* transition: all 350ms; */
/* } */

/* ._task:hover { */
	/* background: #C5C6C6; */
/* } */

/* =========== menu =========== */

.menu {
	height: 1px;
	background: #C5C6C6;
	font-weight: bolder;
}

/* .tmenu { */
	/* width: 100%; */
/* } */

/* .ttmenu td { */
	/* transition-property: background-color; */
	/* transition-duration: 350ms; */
/* } */

/* .ttmenu td:hover { */
	/* background: #9D9E9E; */
/* } */

/* .login { */
	/* width: 0px; */
/* } */

/* .exit { */
	/* transition-property: background-color; */
	/* transition-duration: 350ms; */
	/* background: #B2B3B3; */
/* } */

/* .exit:hover { */
	/* background: #9D9E9E; */
/* } */

/* =========== tabs =========== */

.ptabs {
	height: 1px;
	background: #D9DADA;
	font-weight: bolder;
}

.btabs > td {
	transition-property: background;
	transition-duration: 350ms;
	border-radius: 0px 15px 0px 0px;
}

.btabs > td:hover {
	/* filter: brightness(.75); */
	/* color: white; */
}

.addTabs {
	transition-property: background-color;
	transition-duration: 350ms;
	width: 35px;
	text-align: center;
	font-size: 18px;
	
}

.addTabs:hover {
	background-color: #B2B3B3;
}
/* =========== screen =========== */

.screen {
	transition-property: background-color, color;
	transition-duration: 350ms;
	background-image: url(svg/gpnLogo.svg);
	background-repeat: no-repeat;
	background-position: top 35px right 35px;
}

/* =========== window =========== */

.head {
	transition-property: background-color, color;
	transition-duration: 350ms;
}

.labHead {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.close {
	transition-property: background-color;
	transition-duration: 350ms;
}

.close:hover {
	background: red;
}

.button {
	transition-property: background-color;
	transition-duration: 350ms;
}

.button:hover {
	background: #C5C6C6;
}

.fullScreen {
	transition-property: left, top, right, bottom, transform, opacity;
	transition-duration: 350ms;
}

.opacity {
	transition-property: opacity;
	transition-duration: 350ms;
}

/* =========== task =========== */

.tasks > tr {
	transition-property: background-color, filter;
	transition-duration: 350ms;
	filter: grayscale(0);
}

.tasks > tr > td {
	border-radius: 5px;
}

.tasks > tr:hover {
	background: #C5C6C6;
}

/* =========== table =========== */

table._data {
	/* border: 1px solid black; */
}

thead {
	height: 1px;
	background: #B2B3B3;
	position: sticky;
	top: 0px;
	z-index: 1;
}

thead table {
	width: 100%;
	table-layout: fixed;
}

thead th {
	transition-property: background-color;
	transition-duration: 350ms;
	border-bottom: 1px solid black;
	/* overflow: hidden; */
}

thead th:nth-last-child(1n+2) {
	border-right: 1px solid black;
}

thead th:hover {
	background: #C5C6C6;
}

thead th:last-child td:nth-child(2) {
	padding-right: 10px;
}

thead td:nth-child(1) {
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 4px;
	position: relative;
}

/* thead td:nth-child(1) span:nth-child(1) { */
	/* position: relative; */
	/* left: 50%; */
	/* top: 0%; */
	/* background: red; */
/* } */



thead td:nth-child(2) {
	width: 15px;
	/* display: none; */
	/* padding-right: 15px; */
}

img.arrow {
	transition-property: transform;
	transition-duration: 350ms;
}

/* thead td:nth-child(2) { */
	/* transition-property: background-color; */
	/* transition-duration: 350ms; */
/* } */

thead td:nth-child(3) {
	width: 10px;
	cursor: e-resize;
	position: relative;
	left: 5px;
}

tbody td {
	transition-property: background-color;
	transition-duration: 350ms;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 4px;
}

tbody.head {
	transition-property: background-color;
	transition-duration: 350ms;
	/* background: #D9DADA; */
	height: 30px;
}

tbody.head:hover {
	background: #C5C6C6;
}

tbody.head span:nth-child(1) {
	font-weight: bolder;
	padding-right: 10px;
}

tbody.head span:nth-child(2) {
	font-weight: bolder;
}

tbody.head span:nth-child(3) {
	color: #898989;
	font-style: Italic;
	padding-left: 10px;
}

tbody.head img {
	position: relative;
	bottom: -0.1em;
}

tbody._tdata > tr {
	transition-property: background;
	transition-duration: 350ms;
}

tbody._tdata > tr > td:nth-last-child(1n+2) {
	border-right: 1px solid black;
}

/* tbody._tdata > tr:first-child > td { */
	/* border-top: 1px solid black; */
/* } */

/* tbody._tdata > tr:last-child > td { */
	/* border-bottom: 1px solid black; */
/* } */

tbody._tdata > tr:hover {
	background: #D0E1F4;
}

tbody._tdata > tr:nth-child(odd) {
	background: #EBF2FA;
}

tbody._tdata > tr:nth-child(odd):hover {
	background: #D0E1F4;
}

/* =========== contextMenu =========== */

.contextmenu {
	transition-property: opacity;
	transition-duration: 350ms;
	border: 1px solid black;
	position: absolute;
	padding: 5px;
	background: white;
	z-index: 1002;
	box-shadow: 2px 3px 5px;
}

.contextmenu tr {
	transition-property: background-color;
	transition-duration: 350ms;
}

.contextmenu img {
	transform: rotate(90deg);
	position: relative;
	bottom: -0.1em;
}

.contextmenu tr:hover {
	background: #D9DADA;
}

/* =========== spanButtom =========== */

.sBut {
	transition-property: background-color;
	transition-duration: 350ms;
	background: green;
	color: white;
	padding: 3px 15px;
	margin: 5px;
	border-radius: 5px;
}

.sBut:hover {
	background: #40a040;
}