  /*
    Document   : month
    Created on : 28.02.2012, 13:01:10
    Author     : Bininda
    Description:
        Purpose of the stylesheet follows.
*/

@import "../css/sekasColors.less";

@pad0: 2px;
@pada: 5px;
@pad1: 9px;

@br1: 3px;
@br2: 0px;

@bw: 1px;
@bw2: 0px;

@import "../css/ptrbase.less";
@import "angularfallback.css";

.application {
    position: absolute;
    left: 0;
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.montharea {
    display: inline-block;
    margin-left: 36px; // leave room for gutter
    margin-right: 36px;
}
.monthtable {
    margin-left: 36px;
}
.monthinput {
    display: inline-block;
    vertical-align: top;
}

.dayinput {
    vertical-align: top;
    display: inline-block;
}

.dayrow>div:nth-child(1),
.dayheader>div:nth-child(1){
  width: 24px;
}
.dayfooter>div:nth-child(1) {
  width: 64px;
}

.dayrow>div:nth-child(2),
.dayheader>div:nth-child(2) {
  width: 245px;
}

.dayfooter>div:nth-child(2) {
  width: 165px;
}

.dayrow>div:nth-child(3),
.dayheader>div:nth-child(3),
.dayfooter>div:nth-child(3) {
  width: 49px;
}

.dayrow>div:nth-child(4),
.dayheader>div:nth-child(4),
.dayfooter>div:nth-child(4) {
  min-width: 305px;
}

textarea[az-cinput] {
  width: 286px;
}
.dayrow>div:nth-child(5),
.dayheader>div:nth-child(5),
.dayfooter>div:nth-child(5) {
  width: 43px;
}

.monthtable,
.daydisplay {
    border-width: @bw2;
    border-style: solid;
}
.daydisplay {
    background-color: @background;
}

.monthrow>div,
.dayrow>div,
.dayheader>div,
.dayfooter>div {
    display: inline-block;
    vertical-align: middle;
}

.monthheadrow div,
.monthfootrow div
{
    display: inline-block;
    vertical-align: middle;
}


.logo {
    background-color: @background;
    border-style: none none solid solid;
    border-radius: 0px 0px 0px @br2;
    border-width: @bw2;
    position: fixed;
    right: 0em;
    padding-right: @pad1;
    padding-left: @pad1;
    padding-top: @pad0;
    padding-bottom: @pad0;
    top: 0em;
    font-size: 10px;
    line-height: 13px;
}

.impersonate {

    z-index: 25;
    border-style: none solid solid none;
    border-radius: 0px 0px @br2 0px;
    border-width: @bw;
    position: fixed;
    left: 0em;
    top: 0em;
    padding-right: @pad1;
    padding-left: @pad1;
    padding-top: @pad0;
    padding-bottom: @pad0;
}

.impersonate .form-horizontal {
  display: none;
}

.impersonate:hover
{
    z-index: 20;
}

.impersonate:hover .form-horizontal {
  display: inherit;
}

.impersonate:hover .form-dummy {
  display: none;
}

.impersonating {
  background-color: mix(@primary, @background, 20%);;
}

.watermark {
  display: none;
  font-size: 40px;
  font-weight: bolder;
  transform: rotate(-45deg);
  transform-origin: 100% 0%;
}
.impersonating .watermark {
  display:inherit;
  position: absolute;
  top: 200px;
  right: 200px;
  z-index: -1;
  height:10000px;
}

.impersonating .user {
  font-size: medium;
  font-weight: bold;
}

.monthandday {
  z-index: 10;
  position: absolute;
  left: 0;
}

.logocontainer {
  position: absolute;
  z-index: -5;
}

.logocontainer:hover
{
    z-index: 20;
    font-size: inherit;
    line-height: inherit;
}

.logo img {
    width: 88.5px;
}

.logo .quadratic {
    width: 24px;
}

.logo:hover img {
    width: 177px;
}

.logo:hover .quadratic {
    width: 48px;
}

.debugchoice {
    position: absolute;
    text-align: right;
    right: 0em;
    top: 0em;
    width: 10em;
}

.apnumber {
  cursor: not-allowed;
  padding-top: 1.5px;
  padding-left: 2px;
  padding-right: 1px;
  padding-bottom: 0.5px;
}

.apnumber-small {
  width: 40px;
  text-align: right;
  padding-right: 26px;
}

.apnumber-large {
  width: 5em;
  text-align: center;
  padding-right: 0px;
}


label.checkbox.inline.baseselect {
  vertical-align: baseline;
  .selcont,
  select {
    vertical-align: sub;
  }
}

input[type="text"],
input[type="password"],
input[type="tel"],
.checkbox input[type="checkbox"],
.apnumber {
  border-radius: @br1;
  border-width: @bw;
  margin: 2px;
  height: 17px;
}

input[type="text"],
input[type="password"],
input[type="tel"],
.checkbox input[type="checkbox"] {
  padding: 1px 1px;
}

.dinput,
.hinput,
.apinput {
  width: 34px;
  text-align: right;
}
.sinput {
  width: 3.2em;
  margin-left: -0.45em;
  text-align: right;
}

.montharea>* {
  display: inline;
}

.monthheadrow>div,
.monthfootrow>div,
.monthrow>div
{
    width: 60px;
}

.monthheadrow>div:nth-child(1),
.monthfootrow>div:nth-child(1),
.monthrow>div:nth-child(1)
{
    width: 50px;
}


.monthheadrow>div:nth-child(2),
.monthfootrow>div:nth-child(2),
.monthrow>div:nth-child(2),
.monthheadrow>div:nth-child(3),
.monthfootrow>div:nth-child(3),
.monthrow>div:nth-child(3),
.monthheadrow>div:nth-child(4),
.monthrow>div:nth-child(4)
{
    width: 40px;
}

.monthfootrow>div:nth-child(4)
{
    margin-left: -20px;
    width: 60px;
}

.monthfootrow>div:nth-child(2)
{
   margin-left: -10px;
   width: 50px;
}

.monthfootrow{
  >div:nth-child(2)>input,
  >div.transparent-element>input
  {
    background-color: transparent !important;
  }
}

.monthfootrow>div:nth-child(5)>input
{
  text-align: right;
  padding-right: 1.85em;
}

.monthheadrow>div:nth-child(5),
.monthfootrow>div:nth-child(5),
.monthrow>div:nth-child(5)
{
    width: 70px;
}

.monthheadrow>div:nth-child(6),
.monthfootrow>div:nth-child(6),
.monthrow>div:nth-child(6)
{
    width: 24px;
}

.monthheadrow>div:nth-last-child(1),
.monthfootrow>div:nth-last-child(1),
.monthrow>div:nth-last-child(1)
{
    width: 43px;
}

.monthfootrow>div{
  &.no-size
  {
    width: 0px;
  }
  &.double-size {
    width: 100px;
  }
}

.apheader button {
    vertical-align: top;
}

.apheader div>span {
    font-size: xx-small;
    display: block;
    /*background-color: @background;*/
    width: 60px;
    white-space: nowrap;
}

.apfooter div>span {
  font-size: xx-small;
  display: block;
  /*background-color: @background;*/
  width: 60px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  display: none;
}


.apheader {
    line-height: 14px;
    width: 60px;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.date {
  //display: table;
}

.wday {
  //display: table-cell;
  display: inline-block;
  width: 18px;
  margin-left: 5px;
}
.dday {
  //display: table-cell;
  display: inline-block;
  width: 18px;
  text-align: right;
  margin-right: 5px;
}

.monthtable,
.daydisplay {
    border-radius: @br2;
    padding: @pada @pada @pada @pada;
}

.daydisplay {
    margin-left: 0px;
}

.weekend1 {
    border-radius: @br2 @br2 0px 0px;
}

.weekend2 {
    border-radius: 0px 0px @br2 @br2;
}

.weekend3 {
    border-radius: 0px 0px 0px 0px;
}

.weekend {
    border-radius: @br2;
}

.daydisplay .weekend div {
    border-radius: @br2 @br2 @br2 @br2;
    padding-left: 0px;
    padding-right: @pada;
}

.daytopheader div {
    margin-left: 0px;
}

.settings,
.sync,
.syncdata,
.syncstatus {
    margin-bottom: @pada;
    padding: @pada @pada @pada @pada;
    border-radius: @br2;
    border-style: solid;
    border-width: @bw2;
    display: inline-block;
}

.sync {
  margin-left: 145px;
}

.appheader {
    max-width: 600px;
    display: inline-block;
}

.syncdatacontainer {
    display: none;
}

.syncdata {
    border: rgba(82, 168, 236, 0.8) solid 1px;
    border-radius: @br1;
    outline: none;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px @primary;
}

@keyframes glow {
	0% {
		box-shadow: 0 0 6px lighten(@primary, 20%);
		border-color: rgba(0,0,255,0.5);
	}
	80% {
		box-shadow: 0 0 6px lighten(@primary, 20%);
		border-color: rgba(0,0,255,0.5);
	}
	100% {
		box-shadow: 0 0 6px @primary, 0 0 8px @primary;
		border-color: rgba(0,0,255,1.0);
	}
}

.blinky {
	background-color:#cce;
  box-shadow: 0 0 6px @primary, 0 0 8px @primary;
  border-color: @primary;
}

.blinkya {
	background-color:#cce;
	-webkit-animation-name: glow;
	-webkit-animation-duration: 1s;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-direction: alternate;
	-webkit-animation-timing-function: ease-in-out;

	-moz-animation-name: glow;
	-moz-animation-duration: 1s;
	-moz-animation-iteration-count: infinite;
	-moz-animation-direction: alternate;
	-moz-animation-timing-function: ease-in-out;

	-ms-animation-name: glow;
	-ms-animation-duration: 1s;
	-ms-animation-iteration-count: infinite;
	-ms-animation-direction: alternate;
	-ms-animation-timing-function: ease-in-out;

	-o-animation-name: glow;
	-o-animation-duration: 1s;
	-o-animation-iteration-count: infinite;
	-o-animation-direction: alternate;
	-o-animation-timing-function: ease-in-out;

	animation-name: glow;
	animation-duration: 1s;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	animation-timing-function: ease-in-out;
}

.monthandday {
  display: block;
  white-space: nowrap;
  overflow-y: auto;
}

.conflict {
  position: absolute;
  left: 0px;
}

.nocommit {
  position: absolute;
  left: 18px;
}

.copy,
.paste {
  position: absolute;
  background-color: white;
  visibility: hidden;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 4px;
  padding-right: 4px;
  margin-top: -2px;
  border-style: solid;
  border-width: @bw;
  border-radius: @br1;
  border-color: @primary;
}

.copy {
  left: 42px;
}

.paste {
  left: 68px;
}

.reportimg {
  display: inline-block;
}

.reportsel {
    border-style: solid;
    border-width: @bw2;
    border-radius: @br2;
    display: inline-block;
}

.reportsel>span {
    display: inline-block;
    vertical-align: top;
}

.reportsel [az-helpbutton] {
    padding: @pada @pada @pada @pada;
}

.reportsel td {
    padding: @pada @pada @pada @pada;
    vertical-align: top;
}

.reportsel input {
    margin-left: 20px;
}

.reporttable {
    border-width: @bw2;
    border-style: solid;
    border-radius: @br2;
    padding: @pada @pada @pada @pada;
}

.reporttable td {
    border-width: @bw;
    border-style: solid;
    padding-right: 5px;
    padding-left: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.reporttop div {
  text-align: left;
  font-size: large;
  line-height: 24px;
}

.reporttop {
  margin-bottom: 24px;
}

.reportbottom {
  font-size: large;
  line-height: 32px;
  margin-top: 24px;
}

.reportbottom td {
  padding-right: 48px;
}

.reporttable td:nth-child(1) {
  text-align: right;
}
.reporttable td:nth-child(2) {
  width: 800px;
  text-align: left;
}

.reporttable td:nth-child(3) {
  text-align: right;
}

.reportarea {
  margin-left: 36px;
}

.reportarea .sekaslogo {
  position: absolute;
  right: 0px;
  width: 100px;
}

.reportarea input {
  font-size: inherit;
  color: inherit;
  vertical-align: baseline;
}

.reportitem {
  margin-bottom: 0px;
}

.reportprj {
  display: none;
}

.reportwp {
  display: none;
}

[az-helpheader] h2 * {
  vertical-align: middle;
}

[az-helpheader] h2 img {
  width: 24px;
}

[az-errorheader] h2 * {
  vertical-align: middle;
}

[az-errorheader] h2 img {
  width: 24px;
}

.syncstatus {
  width: 500px;
}

.select2-drop-mask {
  z-index: 198;
}

.select2-drop {
  z-index: 199;
}

.select2-search {
  z-index: 200;
}

.tooltip-inner {
  color: @primary;
  background: @background;
  border-style: solid;
  border-width: 1px;
  border-color: @primary;
}

.tooltip.in {
  opacity: 1;
  filter: alpha(opacity=1);
}

.ttprjname,
.ttprjlongname,
.ttwpname,
.ttwplongname {
  font-size: small;
}
.ttprjname,
.ttwpname {
  font-weight: bold;
}

@media screen {
  .monthheader {
    display: none;
  }
  .apheader div {
      overflow-x: auto;
  }

}

@media print {
  .settings,
  .settingtoggle,
  .logo,
  .dayinput,
  .rightarrow,
  .btn,
  .testdata,
  .sync,
  .impersonate,
  .wpcontrol,
  .reportsel,
  .error-icon
  {
    display: none !important;
  }

  .monthtable {
    margin-top: 50px;
  }

  .reportarea input {
    border-style: none !important;
  }

  thead {
    display: table-header-group !important;
  }

  tfoot {
    display: table-row-group !important;
  }

  .monthheader {
    font-size: large;
    margin-top: 20px;
    line-height: 25px;
  }

  @page {
    margin: auto !important;
  }
}
