@media screen and (max-width: 420px) and (orientation: portrait) {
    .col-tn-12 {
        width: 100% !important;
    }

    .dropdown-menu-center {
        left: -480% !important;
    }
}

body {
    min-width: 320px;
    min-height: 600px;
    color: #333;
}

@media (max-height: 600px ) {
    #mainFooter {
        position: relative;
    }
}

#navbar {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 0px;
}

.navbar-brand {
    margin-top: 20px;
}

div.navbar-header > div > div > div.logo-swh {
    margin-top: 20px;
    margin-left: 30px;
}

.navbar-header-swh {
    float: none !important;
    overflow: inherit;
}

div.navbar-brand > h5 {
    position: absolute;
    left: 106px;
    top: 10px;
}

.logoTitle {
}

.logoTitle img {
    padding-bottom: 12px;
    border-bottom: 3px solid rgb(18, 149, 203);
/ / @brand-info
}

.logoTitle h3 {
    margin-top: 8px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: 20px !important;
    font-weight: bold !important;
    text-align: center;
}

.navbar-fixed-top {
    border-top-width: 1px;
}

.loginScreen h1,
.loginScreen h2,
.loginScreen h3,
.loginScreen h4,
.loginScreen h5,
.loginScreen h6,
.loginScreen a,
.loginScreen a:hover {
    color: #fff;
}

hr.thickBorder {
    border-top: 3px solid #195075
}

div.thumbnail-swh {
    background: url('../img/CustomTile_Frame.png') no-repeat;
    background-size: 60px 60px;
    height: 60px;
    width: 60px;
    margin-top: 0;
    margin-left: 0;
}

div.thumbnail-swh img {
    height: 54px;
    width: 54px;
    top: 3px;
    left: 3px;
    position: relative;
    border: 1px solid rgb(25, 80, 117);
/ / @brand-primary
}

.img-thumbnail {
    padding: 1px;
}

div.row > h3 {
    border-bottom: inset;
    border-color: #195075;
}

.brand-bg {
    background-image: url('../img/BrandTileGraphic_onTransparent.png');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: top left;
}

.glyphicons.icon-xlg {
    font-size: 28px;
}

.glyphicons.icon-lg {
    font-size: 24px;
}

.glyphicon.icon-lg {
    font-size: 20px;
}

.glyphicon > span {
    padding-left: 4px;
}

.glyphicons > span {
    padding-left: 4px;
}

.btn {
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-left {
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}

.btn .glyphicon {
    margin-right: 10px;
}

.btn .glyphicons {
    margin-right: 10px;
}

.btn.dropdown-toggle .glyphicon {
    margin-right: 0;
}

.btn.dropdown-toggle .glyphicons {
    margin-right: 0;
}

.btn.btn-info > span,
.btn.btn-default.active {
    background-color: #1295cb;
    color: #ffffff !important;
}

.btn-accordion {
    margin-top: 6px;
    background: transparent;
    border: 0;
}

.btn-accordion:disabled {
    opacity: 0.25;
}

i.glyphicons {
    font-size: 18px;
}

.btn-accordion .icon-lg.glyphicons {
    margin-top: -8px;
    margin-left: 6px;
    margin-right: 8px;
}

.btn-accordion .icon-lg.glyphicon {
    margin-top: 0;
    margin-left: 6px;
    margin-right: 6px;
}

.accordion-toggle {
    outline: none !important;
}

.pull-right-padding {
    padding-right: 15px;
}

.modal-open {
    overflow-y: auto;
}

.modal-body h1 {
    margin-top: 0 !important;
    font-size: 20px !important;
}

.modal-body h2 {
    font-size: 18px !important;
}

.modal-body h3 {
    font-size: 16px !important;
}

.modal-header.alert-info {
    background-color: rgb(18, 149, 203);
/ / @brand-info
}

.modal-header.alert-info * {
    color: #fff;
}

.modal-footer * .alert {
    margin-bottom: 0;
}

/* Following give error in WebStorm, do not appear to do anything:
accordion .panel-open.panel-default > .panel-heading {
    background-color:  #f2f2f2 !important;
    color:  rgb(18, 149, 203); // @brand-info
}

accordion .panel-default > .panel-heading {
    background-color:  #FFF;
}

accordion .panel-open .badge{
    background-color:  rgb(18, 149, 203) !important; // @brand-info
}
*/

/* A fix for drop-down within a button group*/
.input-group-btn:last-child > .btn-group.dropdown,
.input-group-btn:last-child > .btn-group.dropdown-menu-form {
    z-index: inherit;
}

.dropdown-menu-center {
    left: -200%;
}

.hiddenInput {
    position: absolute;
    overflow: hidden;
    opacity: 0;
}

.item-deleted {
    text-decoration: line-through;
}

/**
  Corrections to Bootstrap
  **/

tr[ng-click],
span[ng-click],
*[ng-click] {
    cursor: pointer;
}

#mainCalendar * h2 {
    color: #1295cb
}

.datePicker {
    min-width: 300px;
}

.datePicker .btn.active:not(.btn-info) {
    background-color: #f2f2f2;
    color: #000 !important;
}

.btn-download {
    min-width: 116px;
}

.btn-view {
    min-width: 82px;
}

.fc-today-button,
.fc-prev-button,
.fc-next-button {
    border: 0;
    background: transparent;
}

.visitList,
.itemList {
    min-height: 460px;
    overflow: auto;
}

.itemListHalf {
    min-height: 200px;
    overflow: auto;
}

/* Put blue bar on any active itemListCell by default, but only if it's the first column; 511339 */
tr.visitListCell.active > td,
tr.itemListCell.active > td:nth-child(1) {
    padding-left: 5px !important;
    border-left: 15px solid rgb(18, 149, 203);
/ / @brand-info
}

tr.visitListCell > td,
tr.itemListCell > td {
    padding-left: 10px !important;
}

.text-orange-warning {
    color: #dc2900;
}

.text-red-error {
    color: #a30000;
}

.text-red-error span {
    color: #a30000;
}

.text-white {
    color: white;
}

.visitListSubtitle {
    width: 80%;
}

.popupPersonnelList {
    width: 160px;
}

.visitDocument {
    height: 500px;
}

.visitDocument object,
.visitDocument iframe {
    height: 480px;
}

.access-site-list {
    width: auto;
    height: 480px;
    overflow-y: scroll;
}

.clearance-selection-list {
    width: auto;
    height: 480px;
    overflow-y: scroll;
}

.request-editor-popup {
    width: auto;
    height: 580px; /* A few phones would like it smaller, but this is already smaller than optimal on the web*/
    overflow-y: scroll;
}

.overlay-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    content: " ";
    background: rgba(0, 0, 0, 0.3);
}

.progress-background { /*this may be unneccesary*/
    background-color: #b2b2b2;
/ / ( 30 % )
}

.spinner-container {
    position: absolute;
    height: 100px;
    width: 100px;
    top: 50%;
    left: 50%;
    margin-left: -50px;
    margin-top: -50px;
    background-size: 100%;
}

@-moz-keyframes spinner-loader {
    0% {
        -moz-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spinner-loader {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spinner-loader {
    0% {
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* :not(:required) hides this rule from IE9 and below */
.spinner-loader:not(:required) {
    -moz-animation: spinner-loader 1500ms infinite linear;
    -webkit-animation: spinner-loader 1500ms infinite linear;
    animation: spinner-loader 1500ms infinite linear;
    -moz-border-radius: 0.5em;
    -webkit-border-radius: 0.5em;
    border-radius: 0.5em;
    -moz-box-shadow: rgba(0, 0, 51, 0.5) 1.5em 0 0 0, rgba(0, 0, 51, 0.5) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.5) 0 1.5em 0 0, rgba(0, 0, 51, 0.5) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.5) -1.5em 0 0 0, rgba(0, 0, 51, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.5) 0 -1.5em 0 0, rgba(0, 0, 51, 0.5) 1.1em -1.1em 0 0;
    -webkit-box-shadow: rgba(0, 0, 51, 0.5) 1.5em 0 0 0, rgba(0, 0, 51, 0.5) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.5) 0 1.5em 0 0, rgba(0, 0, 51, 0.5) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.5) -1.5em 0 0 0, rgba(0, 0, 51, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.5) 0 -1.5em 0 0, rgba(0, 0, 51, 0.5) 1.1em -1.1em 0 0;
    box-shadow: rgba(0, 0, 51, 0.5) 1.5em 0 0 0, rgba(0, 0, 51, 0.5) 1.1em 1.1em 0 0, rgba(0, 0, 51, 0.5) 0 1.5em 0 0, rgba(0, 0, 51, 0.5) -1.1em 1.1em 0 0, rgba(0, 0, 51, 0.5) -1.5em 0 0 0, rgba(0, 0, 51, 0.5) -1.1em -1.1em 0 0, rgba(0, 0, 51, 0.5) 0 -1.5em 0 0, rgba(0, 0, 51, 0.5) 1.1em -1.1em 0 0;
    display: inline-block;
    font-size: 10px;
    width: 1em;
    height: 1em;
    margin: 1.5em;
    overflow: hidden;
    text-indent: 100%;
}

.stacktrace textarea { /* this style adds horizontal scroll-bar */
    white-space: pre;
    word-wrap: normal;
}

form[unsaved-warning-form] input.ng-modified {
    border-style: dashed;
    border-color: #aaa;
    border-width: 1px;
}

form[unsaved-warning-form] textarea.ng-modified {
    border-style: dashed;
    border-color: #aaa;
    border-width: 1px;
}

.xs-button-left {
    width: 55%
}

.xs-button-right {
    width: 50%
}

.view-footer {
    padding-top: 15%;
}

.hr-thick {
    border-width: 3px;
}

.input-width {
    width: 100%;
}

.input-width-99 {
    width: 99%;
}

.h3-underlined {
    border-bottom: 2px solid #e6e6e6;
    padding-bottom: 6px;
}

.widget {
    padding: 20px;
    border: 1px solid #e6e6e6;
    border-left-width: 8px;
    display: block;
    height: 96px;
    margin-bottom: 16px;
    background-color: #ffffff;
}

.widget.active {
    border-color: #e6e6e6;
}

.widget-info, .status-info {
    border-left-color: #1295cb;

}

.widget-info.active, .status-info.active {
    border-color: #1295cb;
}
.widget-dark{
    border-left-color: #BEBEBE;
}

.widget-dark.active{
    border-color: #BEBEBE;
}
.widget-warning {
    border-left-color: #fdc500;

}

.widget-warning.active {
    border-color: #fdc500;
}

.widget-danger, .status-danger {
    border-left-color: #EC3533;

}
.widget-danger.active {
    border-color: #EC3533;
}

.widget-normal {
    border-left-color: #009D7E;
}

.widget-normal.active {
    border-color: #009D7E;
}

.widget .header {
    text-transform: uppercase;
    font-size: 80%;
}

.widget .data {
    font-size: 150%;
    position: absolute;
    bottom: 16px;
}

.status {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    background: #1295cb;
    float: left;
    margin-right: 8px;
}

.checked-in {
    background: #009D7E;
}

.late {
    background: #fdc500;
}

.overstayed {
    background: #EC3533;
}

.checked-out {
    background: #e6e6e6;
}

.dark-header th {
    background-color: #1295cb;
    color: #FFFFFF;
    font-weight: normal;
}

.icon-reg {
    font-size: 14px;
}

.table > tbody + tbody {
    border-top-width: 1px;
}

.ui-grid-top-panel {
    background-color: #1295cb;
    font-weight: normal;
    color: white;
}

.ui-grid-cell-contents {
    padding: 8px;
}

input[type="text"].ui-grid-filter-input {
    background-color: #1295cb;
    border: none;
    border-bottom: 1px solid #e6e6e6;
}

input[type="text"].ui-grid-filter-input:hover, input[type="text"].ui-grid-filter-input:focus {
    border: none;
    border-bottom: 1px solid #ffffff;
    outline: none;
}

.ui-grid-header-cell .ui-grid-cell-contents {
    padding-bottom: 4px;
}

.ui-grid-filter-container {
    padding-top: 0;
}

.ui-grid-filter-input::placeholder {
    color: #d2d2d2;
}

.ui-grid-row.ui-grid-row-selected > [ui-grid-row] > .ui-grid-cell {
    background-color: #e6e6e6; /* #D8EDF5;*/
}

.ui-grid-row {
    border-top: 1px solid #e6e6e6;
    border-left: none;
    border-right: none;
}

.ui-grid-cell {
    border-right: none;
}

.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-cell:last-child,
.ui-grid-pinned-container.ui-grid-pinned-container-right .ui-grid-cell:first-child {
    border-right-color: #e6e6e6;
    border-left-color: #e6e6e6;
}

.ui-grid-header-cell,
.ui-grid-pinned-container.ui-grid-pinned-container-left .ui-grid-header-cell:last-child {
    border-right-width: 0;
}

.ui-grid-row:nth-child(even) .ui-grid-cell {
    background-color: #FFFFFF;
}

.ui-grid-row .ui-grid-cell.ui-grid-row-header-cell {
    background-color: #f0f0f0;
}

select.ui-grid-filter-select {
    background-color: #1295cb;
    border: none;
    border-bottom: 1px solid #e6e6e6;
}

#viewReceptionList {
    height: 100%;
    width: 100% !important;
}

.ui-grid {
    height: 75vh;
}

@media (max-height: 800px) {
    .ui-grid {
        height: 60vh;
    }
}

@media (max-width: 992px) {
    .ui-grid {
        height: 50vh;
    }
}

/* TIMELINE */
#timeline {
    list-style: none;
    position: relative;
}

#timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 2px;
    background-color: #4997cd;
    left: 50%;
    margin-left: -1.5px;
}

#timeline .clearFix {
    clear: both;
    height: 0;
}

#timeline .timeline-badge {
    color: #fff;
    width: 50px;
    height: 50px;
    font-size: 1.2em;
    text-align: center;
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -25px;
    background-color: #4997cd;
    z-index: 100;
    border-top-right-radius: 50%;
    border-top-left-radius: 50%;
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
}

#timeline .timeline-badge span.timeline-balloon-date-day {
    font-size: 1.4em;
}

#timeline .timeline-badge span.timeline-balloon-date-month {
    font-size: .7em;
    position: relative;
    top: -10px;
}

#timeline .timeline-badge.timeline-filter-movement {
    background-color: #ffffff;
    font-size: 1.7em;
    height: 35px;
    margin-left: -18px;
    width: 35px;
    top: 40px;
}

#timeline .timeline-badge.timeline-filter-movement a span {
    color: #4997cd;
    font-size: 1.3em;
    top: -1px;
}

#timeline .timeline-badge.timeline-future-movement {
    background-color: #ffffff;
    height: 35px;
    width: 35px;
    font-size: 1.7em;
    top: -16px;
    margin-left: -18px;
}

#timeline .timeline-badge.timeline-future-movement a span {
    color: #4997cd;
    font-size: .9em;
    top: 2px;
    left: 1px;
}

#timeline .timeline-movement {
    border-bottom: dashed 1px #4997cd;
    position: relative;
}

#timeline .timeline-movement.timeline-movement-top {
    height: 60px;
}

#timeline .timeline-movement .timeline-item {
    padding: 10px 0;
}

#timeline .timeline-movement .timeline-item .timeline-panel {
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    background-color: #FFFFFF;
    color: #666;
    padding: 10px;
    position: relative;
    -webkit-box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.175);
}

#timeline .timeline-movement .timeline-item .timeline-panel .timeline-panel-ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul {
    text-align: right;
}

#timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul li {
    color: #666;
}

#timeline .timeline-movement .timeline-item .timeline-panel.credits .timeline-panel-ul li span.importo {
    color: #009D7E;
    font-size: 1.3em;
}

#timeline .timeline-movement .timeline-item .timeline-panel.debits .timeline-panel-ul {
    text-align: left;
}

#timeline .timeline-movement .timeline-item .timeline-panel.debits .timeline-panel-ul span.importo {
    /*  color: #e2001a;*/
    color: #009D7E;
    font-size: 1.3em;
}

.red-text {
    color: #b94a48 !important;
}

/* TIMELINE END*/

.xs-date-picker > .input-group input.form-control,
.xs-date-picker > .input-group .input-group-btn .btn-group .dropdown-toggle {
    height: 26px;

}

.xs-date-picker > .input-group .input-group-btn .btn-group .dropdown-toggle {
    padding-top: 2px;
    padding-bottom: 2px;
}

.xs-date-picker i.glyphicons {
    font-size: 14px;
}
.width-100{
    width:100%;
}

.height-auto{
    height: auto!important;
}
.margin-bottom{
    margin-bottom:15px;
}
body.mediumFontSize, .mediumFontSize .btn{
    font-size: 15px;
}
body.largeFontSize, .largeFontSize .btn{
    font-size: 16px;
}
.mediumFontSize .form-control{
     height:39px;
 }
.largeFontSize .form-control{
    height:40px;
}
.disabled{
    opacity:0.5;
    cursor: none;
}
.small-dropdown-menu{
    min-width:125px;
}
.action-bar > .btn,.action-bar > button, .action-bar> div{
    margin-bottom:10px;
}