﻿@header_height: 20px;
@footer_height: 20px;
@body_height: calc(100% - 40px);
@body_radius: 10px;

@font-face {
    font-family: CaviarDreamsRegular;
    src: url(caviardreams.otf), url(caviardreams.ttf);
}
@font-face {
    font-family: CaviarDreamsBold;
    src: url(caviardreams_bold.otf), url(caviardreams_bold.ttf);
}
@font-face {
    font-family: CaviarDreamsItalic;
    src: url(caviardreams_italic.otf), url(caviardreams_italic.ttf);
}
@font-face {
    font-family: CaviarDreamsBoldItalic;
    src: url(caviardreams_bolditalic.otf), url(caviardreams_bolditalic.ttf);
}

* {
    padding: 0px;
    margin: 0px;
    border-collapse: collapse;
    z-index: 1;
    box-sizing: border-box;
}

body {
    position:absolute;
    top:0px;
    bottom:0px;
    left:0px;
    right:0px;
    background-color: rgb(10,10,10);
    font-size:13px;
    font-family: CaviarDreamsBold;
    font-variant:small-caps;
}


table.Body {
    width: 718px;
    height: 100%;
    margin: 0px auto;
    background-image: url(background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
}

td.BodyCell {
    padding: 2px;
}

div.PageBody {
    width: 100%;
    display:inline-block;
    position:absolute;
    top:0px;
    bottom:0px;
}
td.BodyHeader {
    height: 40px;
    padding: 5px 5px 0px 5px;
}
td.Controls {
    height:50px;
}
td.TDParent {
    vertical-align: top;
    width:100%;
}
div.Parent {
    overflow-y: scroll;
    width: 100%;
    height: 100%;
}


table.Parent th, table.List th {
    background-color:black;
    color:white;
}

.AlignLeft {
    text-align:left !important;
}
.AlignRight {
    text-align: right !important;
}
.AlignCenter {
    text-align: center !important;
}
.Hidden {
    display: none !important;
}
.Invisible { 
    visibility: hidden;
}
.FullWidth {
    width: 100%;
}
.FullHeight {
    height: 100%;
}
.NoWrap {
    white-space:nowrap;
}


body form div table {
    margin-left:auto;
    margin-right:auto;
}

div.Form {
    border: 1px solid black;
    border-collapse: collapse;
    border-radius: 10px;
    background-color: gray;
}
div.Overlay {
    position: absolute;
    left: 0px;
    top: 0px;
    bottom: 0px;
    right: 0px;
    background-color: rgba(0,0,0,0.75);
    text-align: center;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}
span.CloseButton {
    background-color: white;
    color:black;
    border-radius:10px;
    padding:10px;
    top:-35px;
    position:relative;
    cursor:pointer;
}
span.CloseButton:hover {
    background-color:silver;
}
div.Popup {
}

td.filler {
    //background-color: red;
}
td.FormError {
    color: red;
    background-color:lightpink;
    padding-left: 30px;
    text-align:left;
}

a.CaptionButton {
    display: inline-block;
    border: 1px solid black;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    background-color: silver;
    padding: 5px;
    font-size: 1.4em;
    height: 40px;
    min-width: 40px;
    box-shadow: 0px 0px 3px 2px black;
}
a.CaptionButton:hover {
    border: 1px solid yellow;
    background-color: white;
}
a.Button {
    display: inline-block;
    border: 1px solid black;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    background-color: silver;
    padding: 5px;
    font-size: 1.4em;
    height: 40px;
    width: 40px;
    box-shadow: 0px 0px 3px 2px black;
    margin: 5px;
}
a.Button:hover {
    border: 1px solid yellow;
    background-color: white;
    box-shadow: 0px 0px 3px 0px black;
}

a.CloseButton {
    display: inline-block;
    background-color: red;
    color: black;
    border-radius: 0px;
    padding: 5px;
    position: absolute;
    bottom: 0px;
    right: 10px;
    cursor: pointer;
    text-shadow:none;
}
a.CloseButton:hover {
    box-shadow: 0px 0px 5px 3px white inset;
}


select, input {
    border: 1px solid black;
    text-align: center;
    padding: 4px;
    margin: 2px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.4em;
    height: 30px;
    bottom: 1px;
    box-shadow: black 0px 0px 3px 2px;
    background-color: rgb(200,200,200);
    color: black;
}
select:focus, input:focus {
    background-color: white;
    color: black;
}
select:disabled, input:disabled {
    background-color: rgb(10,10,10);
    color: rgb(150,150,150);
}
input[type=radio] {
    width: 20px;
    height: 20px;
    -webkit-appearance: inherit;
    border: 1px solid rgb(200,200,200);
    border-radius: 999px;
}

input[type=radio]:checked {
    background-color: #000000;
    border: 2px solid rgb(200,200,200);
}
input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
td input[type='button']:hover, th input[type='button']:hover {
    cursor: pointer;
    background-color: silver;
    color: #FFFFFF;
}
input:not([value=""]):invalid {
    background-color: lightpink !important;
    border-color: red !important;
    color:red !important;
}

div.Popup table.Form {
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
div.Popup table.Form th.FormHeader {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    height: 35px;
    vertical-align: bottom;
    position: relative;
    font-size: 1.5em;
    text-shadow: 2px 0px 2px rgb(175,175,175), -2px 0px 2px rgb(175,175,175), 0px 2px 2px rgb(175,175,175), 0px -2px 2px rgb(175,175,175);
}

table.Form {
    border-collapse: collapse;
    padding: 5px;
    width: 100%;
}
table.Form td {
    border: 0px solid red;
    padding:2px;
}
table.Form th {
    background-color: black;
    color: white;
}
.EditCell {
    width: 115px;
}
th.Label {
    padding-right:10px;
    padding-left:10px;
    position:relative;
    background-color:rgb(100,100,100) !important;
}
.THButton {
    margin-left:10px;
}
table.Form td.Header {
    text-align:center;
    background-color:gray;
}
table.Form td.Label {
    text-align:center;
}
table.Form td.Spacer {
    height:10px;
}
table.Form td.Number2 {
    width: 65px;
}
table.Form td.Number4 {
    width:80px;
}
table.Form td div.SubTable {
    height: 150px;
    overflow-y: scroll;
}
table.Form input.Number2 {
    width: 40px;
}
table.Form input.Number4 {
    width: 103px;
}
table.Form input.Number6 {
    width: 103px;
}
table.TabPage {
    border-collapse: collapse;
    height:100%;
    width:100%;
}


td.DataCell {
    border-top: 1px solid black !important;
    padding-left: 5px !important;
    padding-right:5px !important;
    width:80px;
}


.TabHeader {
    background-color:dimgray;
    text-align:center;
}
.TabSpacerTL {
    background-color: dimgray;
    border-top-left-radius: 10px;
    width: 30px;
    height: 30px;
    border: 0px !important;
} 
.TabSpacerTR {
    background-color: dimgray;
    border-top-right-radius: 10px;
    width: 30px;
    border: 0px !important;
} 
.TabSpacerBL {
    background-color: dimgray;
    border-bottom-left-radius: 5px;
    height: 5px;
    border: 0px !important;
} 
.TabSpacerBR {
    background-color: dimgray;
    border-bottom-right-radius: 5px;
    border: 0px !important;
} 
.TabSpacerBot {
    background-color: dimgray;
    height:10px;
} 
.TabSpacer {

} 
.TabSpacerL {
    background-color:dimgray;
    width:2px;
} 
.TabSpacerR {
    background-color:dimgray;
    width:2px;
} 
.TabSelected {
    background-color: slategray !important;
    cursor: pointer;
}


.Tab {
    border-left:1px solid black;
    border-right:1px solid black;
    width:28%;
    font-size:1.5em;
    font-weight:lighter;

    background-color: lightgray;
    cursor: pointer;
}
.Tab:hover {
    box-shadow: 0px 0px 8px 6px white inset;
}


table.List {
    //margin: 0px 10px;
    //width:calc(100% - 20px);
    width:100%;
} 
table.List td {
    border:1px solid black;
}


td.Date {
    text-align:center;
    font-size:0.75em;
}
td.Amount {
    text-align:right;
    padding-right:15px !important;
} 
td.EmptyRow {
    border-left:0px solid white !important;
    border-right:0px solid white !important;
    height:15px;
}
table.EditShiftList {
    max-height: 180px;
    overflow-y: scroll;
}
table.EditShiftList td {
    font-weight:normal;
}
@cellopacity: 0.85;
td.PunchIN {
    background-color: rgba(200,255,200,@cellopacity);
    padding: 5px;
    color: rgb(50,50,50);
    text-shadow: 2px 0px 2px rgb(200,200,200), -2px 0px 2px rgb(200,200,200), 0px 2px 2px rgb(200,200,200), 0px -2px 2px rgb(200,200,200);
}
td.PunchOUT {
    background-color: rgba(255,200,200, @cellopacity);
    padding: 5px;
    color: rgb(50,50,50);
    text-shadow: 2px 0px 2px rgb(200,200,200), -2px 0px 2px rgb(200,200,200), 0px 2px 2px rgb(200,200,200), 0px -2px 2px rgb(200,200,200);
}
td.Row1 {
    background-color: rgba(255,255,255,@cellopacity);
    padding: 5px;
    color: rgb(50,50,50);
    text-shadow: 2px 0px 2px rgb(250,250,250), -2px 0px 2px rgb(250,250,250), 0px 2px 2px rgb(250,250,250), 0px -2px 2px rgb(250,250,250);
}
td.Row2 {
    background-color: rgba(200,200,200,@cellopacity);
    padding: 5px;
    color: rgb(50,50,50);
    text-shadow: 2px 0px 2px rgb(155,155,155), -2px 0px 2px rgb(155,155,155), 0px 2px 2px rgb(155,155,155), 0px -2px 2px rgb(155,155,155);
}
td.Row3 {
    background-color: rgba(150,150,150,@cellopacity);
    padding: 5px;
    color: rgb(50,50,50);
    text-shadow: 2px 0px 2px rgb(200,200,200), -2px 0px 2px rgb(200,200,200), 0px 2px 2px rgb(200,200,200), 0px -2px 2px rgb(200,200,200);
}
th.Shifts {
    vertical-align:top;
    cursor:pointer;
}
td.Shifts_Row_Item {
    cursor:pointer;
}
td.ShiftTotal {
    background-color:lightsteelblue;
    color:white;
}
.PunchMissing {
    background-color:yellow !important;
}

td.Footer {
    text-align:center;
    font-size: .75em;
}
td.Footer a {
    text-decoration:none;
    font-size: .75em;
    color: silver;
}
td.Footer a:hover {
    color:white;
}

.GoalMet {
    color:#009900 !important;
    font-size:1.4em;
}
.GoalShort {
    color:#990000 !important;
    font-size:1.4em;
}