
/* App Icon */

.timeTracking:before,
.timeTracking-win-shortcut:before {
    font-family: 'Font Awesome 5 Free';
    content: '\f2f2';
}

/* Emp Field */

.esp_timeTrack_externalEmpField:has(.x-field:not(.not-empty, .x-field-focus)) .esp-fieldHeadText,
.esp_timeTrack_externalEmpField input {
    font-size: 17px !important;
}

.esp_timeTrack_externalEmpField i {
    position: relative;
    top: -2px;
}

/* Clock In/Out Buttons */

.esp_timeTrack_clockInOut:not(.esp_timeTrack_clockInOutReady) {
    opacity: 0;
}

.formBuilderXml .esp_timeTrack_clockInOut:not(.esp_timeTrack_clockInOutReady) {
    opacity: 1;
}

.esp_timeTrack_clockInOut {
    margin-top: 10px;
}

.esp_timeTrack_clockInOut .esp-invalid[class*="checkbox"] {
    border-color: transparent;
}

.esp_timeTrack_clockInOut .x-form-radio {
    position: absolute;
    overflow: hidden;
    width: 0px;
    height: 0px;
    opacity: 0;
}

.esp_timeTrack_clockInOut .x-form-radio-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.esp_timeTrack_clockInOut:not(.esp_timeTrack_clockInOutMini) .x-form-radio-group {
    width: 300px !important;
}

.esp_timeTrack_clockInOutMini .x-form-radio-group {
    width: auto !important;
}

.esp_timeTrack_clockInOut .x-form-checkboxgroup {
    margin: auto;
}

.esp_timeTrack_clockInOut .x-checkboxgroup-form-item {
    text-align: center;
    padding: 0px !important;
}

.esp_timeTrack_clockInOut:not(.esp_timeTrack_clockInOutMini) .x-checkboxgroup-form-item {
    margin: 0px 1px 1px 0px !important;
    width: calc(50% - 1px);
}

.esp_timeTrack_clockInOut .x-table-plain {
    margin: auto;
}

.esp_timeTrack_clockInOutMini .x-checkboxgroup-form-item {
    margin: 0px 1px 1px 0px !important;
}

.esp_timeTrack_clockInOut .x-checkboxgroup-form-item,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div > label,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div > label > div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div > label,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div > label > div,
.esp_timeTrack_clockInOut .x-checkboxgroup-form-item > div > div > label > div > div {
    width: 100%;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    min-height: 0px;
}

.esp_timeTrack_clockInOut .x-form-cb-label-default {
    padding: 0px !important;
    margin: 0px !important;
    width: 100%;
}

.esp_timeTrack_clockInOutBtn {
    cursor: pointer;
    border-radius: 5px;
    overflow: hidden;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.esp_timeTrack_clockInOut:not(.esp_timeTrack_clockInOutMini) .esp_timeTrack_clockInOutInnerBtn {
    padding: 15px;
}

.esp_timeTrack_clockInOutMini .esp_timeTrack_clockInOutInnerBtn {
    padding: 6px 12px;
}

.esp_timeTrack_clockInOutInnerBtn:not(:first-child) {
    margin-top: 1px;
}

.esp_timeTrack_clockInOutInnerBtn:first-child:last-child {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.esp_timeTrack_clockInOutMini .esp_timeTrack_clockInOutInnerBtn:first-child:last-child {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.esp_timeTrack_clockInOutMini .esp_timeTrack_clockInOutInnerBtn > *:not(:first-child){
    margin-left: 5px;
}

.esp_timeTrack_clockInOutInnerBtn:first-child:last-child i {
    display: block;
}

.esp_timeTrack_clockInOut:not(.esp_timeTrack_clockInOutMini) .esp_timeTrack_clockInOutInnerBtn:first-child:last-child i {
    font-size: 30px;
    margin-bottom: 5px;
}

.esp_timeTrack_clockInOutMini .esp_timeTrack_clockInOutInnerBtn:first-child:last-child i {
    font-size: 12px;
}

.esp_timeTrack_clockInOutInnerBtn:first-child:last-child span {
    display: block;
}

.esp_timeTrack_clockInOutInnerBtn:first-child:not(:last-child),
.esp_timeTrack_clockInOutInnerBtn:not(:first-child) {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.esp_timeTrack_clockInOutInnerBtn:first-child:not(:last-child) i,
.esp_timeTrack_clockInOutInnerBtn:not(:first-child) i {
    font-size: 20px;
    margin-right: 8px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.esp_timeTrack_clockInOutInnerBtn:first-child:not(:last-child) span,
.esp_timeTrack_clockInOutInnerBtn:not(:first-child) span {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.esp_timeTrack_clockInOutInnerBtn {
    background: var(--esp-timetrack-color,#5f7ba5);
    color: white;
}

.esp_timeTrack_clockInOutInvertedBtn,
.esp_timeTrack_clockInOutInvertedBtn {
    color: var(--esp-timetrack-color,#5f7ba5);
    background: white;
    position: relative;
}

.esp_timeTrack_clockInOutInvertedBtn:after,
.esp_timeTrack_clockInOutInvertedBtn:after {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--esp-timetrack-color,#5f7ba5);
    opacity: 0.175;
}

.esp_timeTrack_clockInOutInnerBtn.esp_timeTrack_clockInOutSelected {
    position: relative;
    box-shadow: inset 2px 2px 10px #00000088;
    color: white !important;
}

.esp_timeTrack_clockInOutInnerBtn.esp_timeTrack_clockInOutSelected:before {
    content: '';
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: black;
    opacity: 0.5;
}

.esp_timeTrack_clockInOutInnerBtn.esp_timeTrack_clockInOutSelected * {
    position: relative;
    z-index: 1;
}

.esp_timeTrack_clockInOutInnerBtnDisabled {
    background: #fff !important;
    color: #ccc !important;
    box-shadow: none !important;
    position: relative;
}

.esp_timeTrack_clockInOutInnerBtnDisabled:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 5px;
    border: 1px solid #eee;
}

.esp_timeTrack_clockInOutInnerBtnDisabled:after {
    display: none !important;
}

/* Tree View */

.esp_timeTrack_tree {

}

.esp_timeTrack_tree .x-grid-item {
    background: white !important;
}

.esp_timeTrack_tree .x-grid-item  .x-grid-row:not(.esp_timeTrack_activeLogType):hover {
    background: var(--hovered-background-color);
}

.esp_timeTrack_activeLogType {
    background: #e0e0e0;
    font-weight: 600;
}

.esp_timeTrack_tree .x-tree-view .x-tree-icon {
    margin-right: 0px !important;
}

.esp_timeTrack_tree .x-tree-view .x-tree-icon:before {
    position: relative;
    bottom: 1px;
}

.esp_timeTrack_tree .x-tree-elbow-img {
    min-width: 12px;
    max-width: 12px;
}

.esp_timeTrack_tree .x-tree-node-text {
    white-space: break-spaces;
}

.esp_timeTrack_noTreeIcon {
    position: relative;
    left: -4px;
}

.esp_timeTrack_tree .x-tree-view .x-tree-icon.esp-dot-indicator {
    margin-right: 0.1em !important;
    transform: scale(0.7);
}

/* Summary Panel */

.esp_timeTrack_summaryPanelCtr .x-panel-body {
    background: #f2f2f2;
}

.esp_timeTrack_summaryPanel {
    padding: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    line-height: 1.15;
    width: 500px;
}

.esp_timeTrack_summaryPanel > * {
    background: white;
    padding: 8px 12px;
    margin: 2px;
    box-shadow: 1px 1px 1px #0000001f;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.esp_timeTrack_summaryPanelExitIcon,
.esp_timeTrack_summaryPanelUserName,
.esp_timeTrack_summaryPanelTimerVal {
    font-size: 21px;
}

.esp_timeTrack_summaryPanelExitLabel,
.esp_timeTrack_summaryPanelUserStatus,
.esp_timeTrack_summaryPanelTimerLabel {
    text-transform: uppercase;
    letter-spacing: 0.033em;
    font-size: 11px;
    margin-top: 2px;
}

.esp_timeTrack_summaryPanelExit {
    cursor: pointer;
    background: #c62828;
    flex-grow: 0;
    text-align: center;
    color: white;
}

.esp_timeTrack_summaryPanelExit > * {
    display: block;
}

.esp_timeTrack_summaryPanelUser {
    
}

.esp_timeTrack_summaryPanelClockedIn {
    color: hsl(95deg 90% 33%);
}

.esp_timeTrack_summaryPanelOnBreak {
    color: hsl(15deg 90% 40%);
}

.esp_timeTrack_summaryPanelClockedOut {

}

.esp_timeTrack_summaryPanelUser > * {
    display: block;
}

.esp_timeTrack_summaryPanelUserName {

}

.esp_timeTrack_summaryPanelUserStatus {

}

.esp_timeTrack_summaryPanelTimer {

}

.esp_timeTrack_summaryPanelTimer > * {
    display: block;
}

.esp_timeTrack_summaryPanelTimerVal {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.esp_timeTrack_summaryPanelTimerVal i {
    font-size: 12px;
    margin-right: 5px;
    color: #ccc;
}

.esp_timeTrack_summaryPanelTimerLabel {

}
