﻿html,
body {
    margin: 0;
    padding-top: 25px;
    height: 100%;
}
#wrapper {
    min-height: 100%;
    position: relative;
}
#content {
    padding-bottom: 30px; /*Height of the footer element*/
}
#footer {
    background: lightgray;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    padding-top: 10px
}

/***************************Start UI Rendering*********************************/
/*Rendring screen on tablet*/
@media (min-width: 768px) and (max-width: 979px) {
    .table-container {
        width: 100%;
        overflow-x: auto;
    }

    body {
        padding-left: 0px;
        padding-right: 0px;
    }

    .navbar-fixed-top,
    .navbar-fixed-bottom,
    .navbar-static-top {
        margin-right: 0px;
        margin-left: 0px;
    }

    .container {
        margin-right: 20px;
        margin-left: 20px;
    }

    .field {
        display: inline-block;
    }
}

/*Rendring screen on phone*/
@media (max-width: 767px) {
    .table-container {
        width: 100%;
        overflow-x: auto;
    }

    body {
        padding-left: 0px;
        padding-right: 0px;
    }

    .navbar-fixed-top,
    .navbar-fixed-bottom,
    .navbar-static-top {
        margin-right: 0px;
        margin-left: 0px;
    }

    .container {
        margin-right: 20px;
        margin-left: 20px;
    }

    .phone-btn-block {
        display: block;
        width: 100%;
        padding-right: 0;
        padding-left: 0;
        margin-top: 5px;
        margin-bottom: 5px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    .ActionButtons, #btnCancel {
        font-size: 16px;
        margin-bottom: 10px;
        height: 45px;
        width: 245px;
    }
}

/*Rendring screen on PC*/
@media (min-width: 980px) {
    .field {
        display: inline-block;
        vertical-align: text-top;
    }
}
/*****************************************End rending************************************/

.no-padding {
    padding: 0 !important;
}

.table-responsive {
    overflow-x: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ellipsis5em {
    max-width: 5em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.ellipsis10em {
    max-width: 10em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.ellipsis15em {
    max-width: 15em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.ellipsis20em{
    max-width:20em;
    text-overflow:ellipsis;
    white-space:nowrap;
    overflow:hidden;
}

.action-menu {
    right:0 !important;
    left:unset !important;
}

.loader {
    border: 5px solid #f3f3f3; /* Light grey */
    border-top: 5px solid #3498db; /* Blue */
    border-radius: 50%;
    position: absolute;
    height: 30px;
    width: 30px;
    right: 20px;
    top:2px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.show-loader {
    display:inherit;
}

.hide-loader {
    display:none;
}

.image-preview-container {
    position: relative;
    width: 75px;
    height: 75px;
    overflow: hidden;
    border: 1px solid grey;
}

    .image-preview-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .image-preview-container button {
        position: absolute;
        top: 0px;
        right: 0px;
        background-color: #ff0000;
        color: #ffffff;
        border: none;
        cursor: pointer;
        font-size: 0.5em;
        padding: 2px 5px;
        width: 15px;
        height: 15px;
        text-align: center;
    }


.HighlightableRow:hover {
    background-color: lightgray;
    cursor: pointer;
}

.readOnlyTextBox {
    background-color: #F2F2F2 !important;
    color: #151515;
    border-color: #ddd;
}

.eol::after {
    content: "\A";
    white-space: pre;
}

#loading_container {
    position: fixed;
    border: 1px solid #cdc4b2;
    top: 50%;
    left: 50%;
}


/**
 * Progress bars with centered text
 */
.progress {
    position: relative;
}

.bar {
    z-index: 1;
    position: absolute;
}

.progress span {
    position: absolute;
    top: 0;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: black;
}

/*
 * Restore look of previous bootstrap version
 */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
.uneditable-input {
    margin-bottom: 10px;
    padding: 4px 6px;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

label,
input,
button,
select,
textarea {
    font-weight: normal;
}

label {
    cursor: pointer;
}

img {
    width: auto\9;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

div[class=container] {
    padding: 0;
}

form {
    margin: 0 0 20px;
}

.form-control::-moz-placeholder {
    color: #999;
}

.form-control:-ms-input-placeholder {
    color: #999;
}

.form-control::-webkit-input-placeholder {
    color: #999;
}

.navbar-fixed-top {
    font-family: "Helvetica Neue",Helvetica,Arial,sans-serif !important;
}

.glyphicon {
    font-size: 12px;
}

.progress-modal {
    z-index: 1050;
    display: none;
    width: 560px;
    margin-left: -280px;
}

.btn-inverse {
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2);
    background-repeat: repeat-x;
    -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 1px 1px rgba(0, 0, 0, 0.075);
}

    .btn-inverse:focus,
    .btn-inverse:hover {
        text-decoration: none;
        background-position: 0 -15px;
        -webkit-transition: background-position 0.1s linear;
        -moz-transition: background-position 0.1s linear;
        -o-transition: background-position 0.1s linear;
        transition: background-position 0.1s linear;
    }

.btn-inverse {
    color: #fff !important;
    border-color: #111111;
    background-image: -webkit-gradient(linear, to bottom, to top, color-stop(0%, #444444), color-stop(100%, #222222));
    background-image: -webkit-linear-gradient(to bottom, #444444 0%, #222222 100%);
    background-image: -moz-linear-gradient(to bottom, #444444 0%, #222222 100%);
    background-image: -o-linear-gradient(to bottom, #444444 0%, #222222 100%);
    background-image: linear-gradient(to bottom, #444444 0%, #222222 100%);
    *zoom: 1;
    filter: progid:DXImageTransform.Microsoft.gradient(gradientType=0, startColorstr='#FF444444', endColorstr='#FF222222');
}

    .btn-inverse:hover, .btn-inverse:focus, .btn-inverse:active, .btn-inverse.active {
        background-color: #222222;
    }

        .btn-inverse:hover[disabled], .btn-inverse:hover.disabled, .btn-inverse:focus[disabled], .btn-inverse:focus.disabled, .btn-inverse:active[disabled], .btn-inverse:active.disabled, .btn-inverse.active[disabled], .btn-inverse.active.disabled {
            background-color: #222222;
        }

.ui-floating-message {
    box-sizing: content-box;
    -webkit-box-sizing: content-box;
}

.nav-tabs,
.nav-stacked {
    margin-bottom: 20px;
}

/*
 * Spinning icons
 */
.glyphicon-spin {
    -webkit-animation: glyphicon-spin 1s infinite linear;
    animation: glyphicon-spin 1s infinite linear;
}

@-webkit-keyframes glyphicon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

@keyframes glyphicon-spin {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(359deg);
        transform: rotate(359deg);
    }
}

/*Set max-width propery of column to utilize this*/
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /*display: inline-block;
    vertical-align: middle;*/
}

.w-100 {
    width: 100% !important;
}