/*@import url("../css/print.css");*/

/* ----- ZMIENNE GLOBALNE -----	*/
:root {
	--top: 150px;
	--left: 20px;
	--font: Arial, Helvetica, sans-serif;
	--color_p1: #2C3E50;	
	--color_p2: #2980B9;
	--color_p3: #3498DB;
	--color_p4: #ECF0F1;
	--color_p5: #E74C3C;
}


body {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	box-sizing: border-box;
	font-family: var(--font);
	background: url(../images/stones.jpg) top center / 100% auto no-repeat;
}

#logo {
	position: absolute;
	bottom: 50px;
	right: 50px;
}

/* Tabela do wprowadzania danych o kamieniach */
#table {
	position: absolute;
	top: var(--top);
	left: var(--left);
}

table thead {
	font-size: 1.1em;
}

table tbody {
	max-width: 1000px;
	max-height: 700px;
	overflow: scroll;
}

#data {
	border: 2px solid var(--color_p1);	
	background: #fff;
	min-width: 45.5em;
}

tr:nth-child(even), tr:nth-child(even) textarea {
	background: var(--color_p4);
}

tr:nth-child(even) input[type='date'] {
	border: none;
}

th {
	background: var(--color_p2);
}

td {
	height: 1.5em;
	padding: 0 0.5em;
	text-align: center;
}

.id {
	width: 25px;
	text-align: center;
}

.wbs_code {
	width: 100px;
}

.ms_name {
	width: 400px;
}

.date {
	width: 125px;
}

td textarea{
	height: 1.6em;
	width: 100%;
	resize: none;
	border: none;
	font-family: var(--font);
	font-size: 1em;
	line-height: 1.5em;
}

input[type="date"] {
	border: none;
	background: transparent;
}


/* Menu w tabelach */
#menu {
	position: absolute;
	top: -31px;
	left: 0;
	min-width: 45.5em;
	display: flex;
	justify-content: space-around;
}

#left {
	width: 40%;
	display: flex;
	justify-content: flex-start;
}

#right {
	width: 60%;
	display: flex;
	justify-content: flex-end;
}

.btn {        
	display: inline-block;
  white-space: nowrap;
  background-color: #ccc;
  background-image: linear-gradient(#eee, #ccc);
  border: 1px solid #777;
  padding: 0 1em;
  margin-right: .5em;
	font-size: 1em;
	font-weight: bold;
  text-decoration: none;
  color: #333;
  text-shadow: 0 1px 0 rgba(255,255,255,.8);
  border-radius: .2em;
  box-shadow: 0 0 1px 1px rgba(255,255,255,.8) inset, 0 1px 0 rgba(0,0,0,.3);
	cursor: pointer;
	line-height: 1.6em;
}

.btn:last-child {
	margin-right: 0;
}

.btn:hover {
  background-color: #ddd;        
  background-image: linear-gradient(#fafafa, #ddd);
}

.btn:active {
    box-shadow: 0 0 4px 2px rgba(0,0,0,.3) inset;
}

.btn:before {
	background: #ccc;
  background: rgba(0,0,0,.1);
  float: left;        
  width: 2em;
  text-align: center;
  font-size: 1em;
  margin: 0 1em 0 -1em;
  padding: 0 .2em;
  box-shadow: 1px 0 0 rgba(0,0,0,.5), 2px 0 0 rgba(255,255,255,.5);
  border-radius: .15em 0 0 .15em;
  pointer-events: none;        
}

.add:before {
  content: "\271A";
}

.delete:before {
  content: "\2718";        
}

.save:before {
  content: "\2714";        
}

.close:before {
  content: "\2716";        
}

.next:before {
  content: "\25B6";
}


.hidden {
	visibility: hidden;
}

/* Tooltip w nagłówku tabeli z raportami*/
.tooltip {
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 12em;
  background-color: var(--color_p2);
  color: #fff;
  text-align: center;
	font-size: 12px;
  border-radius: 5px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 50%;
  margin-left: -6.2em;
  opacity: 0;
  transition: opacity 0.3s;
	word-wrap:break-word;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}


/* CANVAS */
/* Kanwa diagramu */
.canva {
	cursor: move;
	position: absolute;
	top: 50px;
	left: 0;
	z-index: -1;
}

/* Kanwa informacyjne */
#info {
	position: absolute;
	top: 0;
	left: 0;
}
