﻿html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    width: 100%;
    height: 100%;
}

.total-height {
    height: 100%;
}

.total-height-vh {
    height: 100vh;
}

.total-width {
    width: 100%;
}

body {
    width: 100%;
    font-family: sans-serif;
    min-width: 300px;
}

a.disabled {
    cursor: default;    
}

a:hover {
    text-decoration: none;
}

.nested-loading {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    text-align: center;
    vertical-align: middle;
    margin: 0 auto;
    padding-top: 10%;
    z-index: 9997;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    text-align: center;
    vertical-align: middle;
    margin: 0 auto;
    padding-top: 10%;
    z-index: 9997;
}

.window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9990;
}

.window .overlay {

    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0.8;
    z-index: -1;
}

.window .window-content {

    background-color: white;
    padding: 20px;
}


.nav-btn-item {
    padding-top: 8px;
}

nav {
    margin-bottom: 0 !important;
}

.club-member-panel-visible {
    width: 250px;
}



.dropdown-menu li small {
    display: block;
    padding: 0 20px;
    clear: both;
    font-weight: normal;
    line-height: normal;
    white-space: nowrap;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.block {
    display: block;
}

.glyphicon-lg {
    font-size: 20pt;
}

.right-space {
    margin-right: 10px;
}

.right-space-2x {
    margin-right: 20px;
}

.left-space {
    margin-left: 10px;
}

.left-space-2x {
    margin-left: 20px;
}

.bottom-space {
    margin-bottom: 10px;
}

.bottom-space-2x {
    margin-bottom: 20px;
}


.bottom-space-3x {
    margin-bottom: 30px;
}

.top-space {
    margin-top: 10px;
}

.top-space-2x {
    margin-top: 20px;
}

.top-space-3x {
    margin-top: 30px;
}

.right-pad {
    padding-right: 10px;
}

.left-pad {
    padding-left: 10px;
}

.bottom-pad {
    padding-bottom: 10px;
}

.top-pad {
    padding-top: 10px;
}

textarea.ng-invalid.error:not(.no-validation-frame), select.ng-invalid.error:not(.no-validation-frame), input.ng-invalid.error:not(.no-validation-frame) {
    border: 1px solid red !important;
}

textarea.ng-invalid.ng-touched:not(.no-validation-frame), select.ng-invalid.ng-touched:not(.no-validation-frame), input.ng-invalid.ng-touched:not(.no-validation-frame) {
    border: 1px solid red !important;
}

textarea.ng-invalid.ng-dirty:not(.no-validation-frame), select.ng-invalid.ng-dirty:not(.no-validation-frame), input.ng-invalid.ng-dirty:not(.no-validation-frame) {
    border: 1px solid red !important;
}

form.submitted textarea.ng-invalid:not(.no-validation-frame), form.submitted select.ng-invalid:not(.no-validation-frame), form.submitted input.ng-invalid:not(.no-validation-frame) {
    border: 1px solid red !important;
}

input.ng-invalid-date-validity.ng-dirty:not(.no-validation-frame) {
    border: 1px solid red !important;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display:  inline-flex;
}

.alert-popup {
    position: absolute;
    left: 20%;
    top: 2% !important;
    width: 60%;
    display: none;
    z-index: 9998;
    text-align: center;
}

.shadow {
    -webkit-box-shadow: 5px 7px 18px 0px rgba(50, 50, 50, 0.34);
    -moz-box-shadow: 5px 7px 18px 0px rgba(50, 50, 50, 0.34);
    box-shadow: 5px 7px 18px 0px rgba(50, 50, 50, 0.34);
}

.avatar-container-sm {
    height: 32px;
    text-align: center;
}

.avatar-container {
    height: 100px;
    text-align: center;
}

.avatar-empty {
    height: 100px;
    width: 100px;
    text-align: center;
    color: #000;
}

.avatar {
    max-width: 100px;
    height: auto;
    display: inline-block;
    text-align: center;
}

.avatar-empty-sm {
    width: 32px;
    height: 32px;
    display: inline-block;
    text-align: center;
    color: #000;
}

.avatar-sm {
    width: auto;
    max-height: 32px;
    display: inline-block;
    text-align: center;
}

.avatar-lg {
    max-width: 200px;
    height: auto;
    display: inline-block;
    text-align: center;
}

.avatar-empty span {
    top: 30%;
}

.no-padded {
    padding: 0;
}

.padded {
    padding: 10px;
}

.padded-verticaly {
    padding: 10px 0;
}

.overflow {
    overflow: auto;
}

.overflow-y {
    overflow-y: auto;
    overflow-x:hidden;
}

.bs-callout {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #eee;
    border-left-width: 5px;
    border-radius: 3px;
}

.bs-callout-info {
    border-left-color: #5bc0de;
}

.bs-callout-warning  {
    border-left-color: #c09853;
}

.bs-callout-default {
    border-left-color: #ddd;
}

.bs-callout-danger {
    border-left-color: #bd362f;
}

.bs-callout-success {
    border-left-color: #d6e9c6;
}

.bg-default-gray {
    background-color: gray;
    color: #fff;
}

.bg-light-gray {
    background-color: lightgray;
    color: #fff;
}

.search-result-item {
    width: 30%;
    min-width: 200px;
}

@keyframes present {
	0% { background-color: yellow; }
}

.highlight {
  animation-duration: 1.5s;
  animation-name: present;
}

line-editor .viewer, line-editor .editor textarea {
    padding: 4px;
    margin: 2px;
}

line-editor .viewer {
    display: inline-block;
}

line-editor .editor {
    position: relative;
}

line-editor .editor .controls {
    position: absolute;
    bottom: -15px;
    right: 15px;
    width: auto;
    height: 25px;
    text-align: right;
}

line-editor .editor textarea {
    display: block;
    box-shadow: 0 0 0 1px #ccc;
    border-radius: 2px;
    border: none;
    width: 100%;
}


line-editor .viewer:hover {
    box-shadow: 0 0 0 1px #ccc;
    cursor: text;
    border-radius: 2px;
}

line-editor .viewer:hover::after {
    font-family: FontAwesome;
    font-size: 0.8em;
    content:  "\00a0\00a0\f044";
}


.table-layout {
    display: table;
    width: 100%;
}

.table-layout .table-cell {
    display: table-cell;
    vertical-align: top;
}

.table-layout .table-row {
    display: table-row;
}

textarea.form-control.expandable  {
    height: 34px;
}

.expandable {
    transition: height .3s;
    resize: vertical;
}

.expandable-150:focus {
    height: 150px !important;
    resize: vertical;
}

.transparent {
    opacity: 0;
    filter: alpha(opacity=100);
}



.pointer {
    cursor: pointer;
}

.fill {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: absolute;
}

.seven-columns .row {
    height: 16.66666666666667%;
}

.seven-columns .col-lg-1 {
    width: 14.285714285714285714285714285714%;
    height: 100%;
}

.break-word {
    word-wrap: break-word;
}

.semi-transparent {
    opacity: 0.3;
}

.less-transparent {
    opacity: 0.8;
}

.product-option-h-1, .product-option-h-2, .product-option-h-3, .product-option-h-4 {
    left: 20%;
}

.product-option-h-5, .product-option-h-6, .product-option-h-7 {
    right: 20%;
}

.product-option-v-1, .product-option-v-2, .product-option-v-3 {
    top: 20%;
}

.product-option-v-4, .product-option-v-5, .product-option-v-6 {
    bottom: 20%;
}

.text-center-vh {
    display: flex;
    justify-content: center;
    align-items: center;
}

.click-anim:active {
    padding: 5px;
}

.text-no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@-webkit-keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fade-in {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.fade-in-anim {
    animation: fade-in 0.1s ease-in;
    -webkit-animation: fade-in 0.1s ease-in;
}

.highlighted {
    background-color: yellow;
}

.font-12 {
    font-size: 1.2em;
}

.font-20, .font-2x {
    font-size: 2em;
}

.lowercase {
    text-transform: lowercase;
}


#notes-add-button-menu {
    right: 0 !important;
    left: initial;
}

.club-member-avatar {

    background: #eee no-repeat center center;
    width: 100%;
    height: 100%;
}

.no-overflow {
    overflow: hidden;
}

.dt-class-day-span {
    background: #97c397;
}

.dt-class-day button {
    background: #97c397;
}


.dt-current-day {
    border: 1px solid orange;
}

.turbo-panel {
    position: absolute;
    right: -300px;
    top: 0;
    z-index:900;
    width: 350px;
}
.well {
    border-radius: 0;
}
.turbo-panel.turbo-panel-show {
    right: 0;
}

.turbo-panel .expander {
    width: 50px !important;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.turbo-panel .expander-btn {
    height: 100px;
    width: 100%;
    line-height: 100px;
    position: absolute;
    top: 50%;
    margin-top: -50px;
    text-align: center;
    background-color: black;
    color: white;
    cursor: pointer;
}

.turbo-panel .content
{
    width: 300px !important;
    background-color: black;
    position: absolute;
    top: 0;
    left: 50px;
    padding-right: 50px;
    box-sizing: content-box;
}

.turbo-panel .turbo-item-tile {

    background-color: gray;
    padding: 10px;
    cursor: pointer;
}

.turbo-panel .turbo-item-tile-not-clickable {

    background-color: gray;
    padding: 10px;
    cursor : default !important;
}


.turbo-panel-show {
	animation-name: tpShow;
	animation-duration: 1s;	
	animation-timing-function: ease-in-out;	
	visibility: visible !important;	
}

@keyframes tpShow {
	0% {
		transform: translateX(80%);
	}
	50%{
		transform: translateX(-8%);
	}
	65%{
		transform: translateX(4%);
	}
	80%{
		transform: translateX(-4%);
	}
	95%{
		transform: translateX(2%);
	}			
	100% {
		transform: translateX(0%);
	}
}

.turbo-panel-hide {
	animation-name: tpHide;
	animation-duration: 0.7s;	
	animation-timing-function: ease-in-out;	
	visibility: visible !important;	
}

@keyframes tpHide {
	0% {
        background-color: #2a3038;
        right: 0px;
	}
	80% {
        background-color: #2a3038;
        right: -325px;
	}
	81% {
        background-color: transparent;
	}
    100% {
        right: -325px;
    }
}

.ng-camera-action-container {
    
    margin-top: 20px;
    text-align: right;
}

.ng-camera-action-container button {

  -webkit-border-top-right-radius: 5px;
  -webkit-border-bottom-right-radius: 5px;
  -webkit-border-bottom-left-radius: 5px;
  -webkit-border-top-left-radius: 5px;
  -moz-border-radius-topright: 5px;
  -moz-border-radius-bottomright: 5px;
  -moz-border-radius-bottomleft: 5px;
  -moz-border-radius-topleft: 5px;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  border:none;
  min-width: 180px;
  height: 60px;
  padding: 0 20px;
  background-color: #31a1ea;
  font-size: 18px;
  color: #ffffff;
  white-space: normal;
  display: table-cell;
  vertical-align: middle;
  float: none;
}

.scrollable-outer {
    height: 100%;
    width: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
}

.scrollable-inner {
    width: 100%;
    height: 100%;
    overflow: auto;
    margin: 0;
    padding: 0;
    padding-right: 15px;
    box-sizing: content-box;
    
}

.scrollable-top-fade {
    height: 20%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: green;
    display: none;
}

.pos-bookmodal-panel .dropdown-menu {
  max-height: 150px;
  overflow-y: auto;
}

.scrollable-dropdown-menu .dropdown-menu {
  max-height: 150px;
  overflow-y: auto;
}

/* niestety, w niektórych przypadkach angular źle oblicza pozycję tooltipa 
    tak jakby nie uwzględniał pasków przewijania
*/
.tooltip-scroll-fix .tooltip.left {
   margin-top: 18px !important; 
   margin-left: 9px !important; 
}


.open-slide-left {

    width: 0;
    transition: width 0.5s;
    transition-timing-function: ease-in-out;
    overflow: hidden;
}

.open-slide-left.opened {

    width: 100%;
}

.overdue-box {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 5px solid lightgray;
}

.overdue-row {
    padding-bottom: 10px;
    border: 1px solid lightgray;
    border-left-width: 5px;
    border-radius: 3px;
}

.overdue-row .overdue-highlighted {
    background-color: #bd362f;
    color: #ffffff;
    margin: 10px;
}

.animate-show-hide.ng-hide {
    opacity: 0;
    position:absolute;
}

.animate-show-hide.ng-hide-add {
    transition: all linear 0.2s;
    
}
.animate-show-hide.ng-hide-remove {
    transition: all linear 0.1s;
    
}

.pos-panel-scrollable {
    max-height: 500px;
    overflow-y: auto;
}