/* Adjust Footer Height... */

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}


.right {
    text-align: right;
}
.center {
    text-align: center;
}

.popover.right .popover-content {
    text-align: left;
}


.nowrap {
    white-space: nowrap;
}

ul.text {
    margin-left: -20px;
}

.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}


.inline-block {
    display: inline-block;
    vertical-align: top;
}

.top { vertical-align: top; }
.middle { vertical-align: middle; }
.baseline { vertical-align: baseline; }
.bottom { vertical-align: bottom; }

.bold {
    font-weight: bold;
}
.italic {
    font-style: italic;
}

.line-through {
    text-decoration: line-through;
}

span.glyphicon {
    font-size: 16px;
}

div.glyphicon {
    font-size: 18px;
/*     line-height: 13px; */
    display: inline-block;
    position: relative;
    vertical-align: top;
/*     top: -3px; */
}


.btn .glyphicon {
    display: inline-block;
    vertical-align: top;
    font-size: 18px;
    margin-left: -4px;
    margin-right: 6px;
}

.btn.icon-right .glyphicon {
    margin-right: -4px;
    margin-left: 6px;
}

.btn {
    transition: background-color 0.2s ease-out;
}

.btn-default {
    border-color: #aaaaaa;
}

.btn .badge {
    margin: 2px -4px 0 6px;
    background-color: #888888;
    vertical-align: top;
}

/* make link icons a bit bigger but keep table rows minimum height... */

tr td div.glyphicon {
    font-size: 18px;
    line-height: 16px;
    height: 16px;
    top: 1px;
    margin-bottom: -2px;
}
div.glyphicon.glyphicon-option-horizontal {
    top: 2px;
}

div.popover {
    max-width: 400px;
}

/* move away popovers a bit, to not interfer with above adjustment */
div.popover.bottom { margin-top: 16px; }
div.popover.left { margin-right: 14px; }
div.popover.top { margin-top: -14px; }
div.popover.right { margin-left: 14px; }

a[data-toggle="popover"][data-placement="left"] div.glyphicon {
    margin-left: 4px;
}
a[data-toggle="popover"][data-placement="right"] div.glyphicon {
    margin-right: 4px;
}

a[data-toggle="popover"][href="javascript:;"] {
    color: #444444;
}

span[data-toggle="popover"]:focus {
    outline: none;
    box-shadow: none;
}

.btn-group .btn {
    margin-left: -1px;
}


div.container > div.btn-toolbar div.btn-group,
div.container > div.btn-toolbar > .btn-default {
    margin-bottom: 15px;
}


/* Make pagination buttons look like other button groups... */

.pagination, .pagination > li > a, pagination > li > span {
    border-color: #adadad;
    color: #333333;
}

.pagination, .pagination > li:hover > a, pagination > li:hover > span {
    border-color: #adadad;
    background-color: #e6e6e6;
}

.pagination > .active > a, .pagination > .active > span, .pagination > .active > a:hover, .pagination > .active > span:hover, .pagination > .active > a:focus, .pagination > .active > span:focus {
    background-color: #e6e6e6;
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    border-color: #adadad;
    color: #000000;
}

.pagination > .disabled > span, .pagination > .disabled > span:hover, .pagination > .disabled > span:focus, .pagination > .disabled > a, .pagination > .disabled > a:hover, .pagination > .disabled > a:focus {
    border-color: #adadad;
    color: #aaaaaa;
}


nav * {
    -webkit-font-smoothing: subpixel-antialiased;
}

ul.navbar-nav > li > a > .glyphicon {
    font-size: 20px;
    position: relative;
    top: -1px;
}
ul.navbar-nav > li.dropdown > a > .glyphicon {
    top: 2px;
}

/* Remove Navbar Top Labels on some width... */

.navbar-fixed-top span.label {
    font-size: 15px;
    font-weight: normal;
    color: inherit;
}

@media all and (min-width: 768px) and (max-width: 860px) {
    .navbar-fixed-top span.label {
        display: none;
    }
}


.navbar-inverse .navbar-nav > li > a {
    color: #cfcfcf;
    font-size: 15px;
}
.navbar-inverse .navbar-nav > li.active > a {
    text-decoration: none;
}


.navbar-inverse .navbar-nav > li.dropdown.active > a {
    text-decoration: none;
}


/* Adjust dropdowns with icons! */

.navbar-fixed-top a.dropdown-toggle div.glyphicon {
    font-size: 20px;
    line-height: 15px;
    vertical-align: top;
}

ul.navbar-nav ul.dropdown-menu > li > a,
ul.navbar-nav .open ul.dropdown-menu > li > a,
ul.dropdown-menu.dropdown-icons > li > a {
    position: relative;
    padding: 3px 20px 3px 60px;
}

ul.navbar-nav ul.dropdown-menu li a span.glyphicon,
ul.dropdown-menu.dropdown-icons li a span.glyphicon {
    margin-left: 30px;
    color: #cfcfcf;
    font-size: 16px;
}
ul.navbar-nav ul.dropdown-menu li.active a span.glyphicon,
ul.navbar-nav ul.dropdown-menu li:hover a span.glyphicon,
ul.dropdown-menu.dropdown-icons li.active a:hover span.glyphicon {
    color: #ffffff;
}

a.navbar-brand.active {
    color: #ffffff;
    background-color: #000000;
}

@media all and (min-width: 768px) {
    ul.navbar-nav ul.dropdown-menu > li > a,
    ul.navbar-nav .open ul.dropdown-menu > li > a,
    ul.dropdown-menu.dropdown-icons > li > a {
        padding: 3px 20px 3px 30px;
    }
    ul.navbar-nav ul.dropdown-menu li a span.glyphicon,
    ul.dropdown-menu.dropdown-icons li a span.glyphicon {
        margin-left: 0px;
        color: #484848;
    }
    ul.navbar-nav ul.dropdown-menu li:hover a span.glyphicon {
        color: #000000;
    }
}

ul.dropdown-menu {
    min-width: 100px;
}

ul.dropdown-menu > li > a {
    position: relative;
    padding: 3px 20px 3px 10px;
}

ul.dropdown-menu li a span.glyphicon {
    position: absolute;
    top: 6px; left: 7px;
    color: #484848;
    font-size: 16px;
}
ul.dropdown-menu li.active a span.glyphicon {
    color: #ffffff !important;
}

ul.dropdown-menu.dropdown-plain > li > a {
    padding-left: 10px;
}


.table-condensed > thead > tr > th,
.table-condensed > tbody > tr > th,
.table-condensed > tfoot > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > td {
    padding: 3px;
}

table.table tr td .glyphicon,
table.table tr th .glyphicon {
    display: inline-block;
    vertical-align: top;
    font-size: 20px;
    line-height: 20px;
    margin: 0;
    position: relative;
    top: -1px;
}

table.table tr td .glyphicon.pad-right {
    margin-right: 6px;
}

table.table tr td .glyphicon.glyphicon-option-horizontal {
    top: 1px;
}

table.table tr td a.btn span.glyphicon {
    margin: 0px 4px 0px 0px;
}

table.table tr td.actions a .glyphicon {
    margin: 0 6px;
}
table.table tr td.actions a:first-child .glyphicon {
    margin-left: 0px;
}
table.table tr td.actions a:last-child .glyphicon {
    margin-right: 0px;
}

.badge {
    min-width: 24px;
}
.badge.grey {
    color: #ffffff;
    background-color: #888888;
}
.badge.red {
    color: #ffffff;
    background-color: #aa0000;
}
.badge.green {
    color: #ffffff;
    background-color: #00aa00;
}

table.table tr td .badge {
    vertical-align: top;
    margin-top: 1px;
}
a .badge,
a.badge {
    background-color: #337ab7;
}


.panel-heading    {
    position: relative;
}

div.panel-heading h4,
div.modal-header h4 {
    margin: 0px;
    line-height: 1.33;
}


.list-group-item.with-badge {
    padding-right: 56px;
}
.list-group-item.with-badge .badge {
    position: absolute;
    top: 11px;
    right: 15px; left: auto;
    display: table;
    width: 24px;
}

ul.nav li a .badge,
.badge-error {
    background-color: #cc0000;
    box-shadow: 0px 0px 2px 1px white;
    margin-left: 8px;
    vertical-align: top;
}

.badge-warning {
/*     background-color: #ffc140; */
    background-color: #dcb063;
}


.hidden {
    display: none;
}

.grey {
    color: #999999;
}
.grey * {
    color: #999999;
}

.text-error {
    color: #cc0000;
}
.text-new {
    color: #008800;
}


table tr td a:hover {
    text-decoration: none;
}

a[data-toggle="popover"]:focus {
    outline: none;
}


div.modal-backdrop {
    position: fixed;
}

div.modal-header {
    background-color: #f4f4f4;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

input[type="checkbox"] {
    font-size: 20px;
    background-color: transparent;
    margin-left: 4px;
    margin-right: 6px;
}

form table label {
    margin-bottom: 0px;
    white-space: nowrap;
}

table.detail-view th {
    width: 80px;
    white-space: nowrap;
}

td.narrow {
    width: 24px;
    white-space: nowrap;
}

tr.bg-grey {
    background-color: #f9f9f9;
}

/********************************************/
/*! Some adjustments for forms and buttons    */
/********************************************/

.form-control {
    color: #000000;
}

textarea[disabled] {
    cursor: text;
}

label.control-label {
    margin: 4px 0;
    padding-left: 4px;
    color: #666666;
    font-weight: bold;
}

div.help-block,
p.help-block {
    padding-left: 8px;
}

form div.hint-block {
    padding-left: 8px;
}

form div.group-title {
    margin: 15px 0 10px 0;

    padding: 8px 12px;

    border-radius: 4px;
    background-color: #d4d4d4;
    
    color: #666666;
    
    font-size: 120%;
/*     font-weight: bold; */
}
form div.group-title:first-child {
    margin-top: 5px;
}
form div.group-title div.byline {
    font-weight: normal;
}

div.checkbox {
    margin-top: 3px;
    margin-bottom: 3px;
}

div.checkbox label.control-label {
    white-space: normal;
    color: #444444;
    font-weight: bold;
    text-transform: none;
    font-size: 14px;
    padding-left: 20px;
}

div.checkbox label.control-label input[type="checkbox"] {
    margin-top: 3px;
}

div.checkbox p.help-block,
div.radio p.help-block {
    margin: 0 0 0 20px;
}

div.radio {
    margin-top: 3px;
    margin-bottom: 3px;
    margin-left: 4px;
}

div.radio label {
    white-space: normal;
    color: #000000;
    font-weight: bold;
    text-transform: none;
    font-size: 14px;
    line-height: 22px;
}
    
div.radio p.help-block {
    margin: -3px 0 -3px 20px;
    padding-left: 0;
}

div.has-error    div.radio label {
    color: #aa0000;
}


input[disabled="disabled"] {
    cursor: no-drop;
}

div.inputs-disabled div.option-group-header {
    color: #888888;
}
div.inputs-disabled label {
    color: #888888 !important;
    cursor: no-drop;
}

textarea {
    max-width: 100%;
}

div.form-buttons {
    margin-top: 5px;
}
div.form-buttons .btn {
    font-weight: bold;
}

div.form-buttons a .btn {
    color: rgba(255, 255, 255, 0.85);
}
div.form-buttons a:hover .btn {
    color: #ffffff;
}

button[type="submit"] {
    padding-left: 8px;
}
button[type="submit"]::before {
    font-family: 'Glyphicons Halflings';
    content: "\e013";
    font-size: 18px;
    font-weight: normal;
    line-height: 20px;
    margin-right: 8px;
    margin-top: -1px;
    display: inline-block;
    vertical-align: top;
}

.btn-cancel {
    padding-left: 8px;
    color: #ffffff;
    background-color: #aaaaaa;
    border-color: #7c7c7c;
    font-weight: bold;
}
.btn-cancel::before {
    font-family: 'Glyphicons Halflings';
    content: "\e090";
    font-size: 18px;
    font-weight: normal;
    line-height: 20px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: top;
}
.btn-cancel:hover {
    background-color: #888888;
    color: #ffffff;
}

.btn-delete {
    background-color: #ff4444;
    border-color: #bb3333;
    padding-left: 8px;
    color: #ffffff;
}
.btn-delete::before {
    font-family: 'Glyphicons Halflings';
    content: "\e014";
    font-size: 18px;
    line-height: 20px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: top;
}
.btn-delete:hover {
    background-color: #cc2222;
    color: #ffffff;
}

.btn-delete.no-access {
    background-color: #ffffff;
    border-color: #ccc;
}
.btn-delete.no-access:hover {
    background-color: #eeeeee;
}


.btn-done {
    padding-left: 8px;
    color: #ffffff;
}
.btn-done::before {
    font-family: 'Glyphicons Halflings';
    content: "\e014";
    font-size: 18px;
    font-weight: normal;
    line-height: 20px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: top;
}
.btn-done:hover {
    background-color: #aaaaaa;
    color: #ffffff;
}


.btn .glyphicon {
    display: inline-block;
    vertical-align: top;
    font-size: 18px;
    margin: 1px 6px -1px -4px;
    /* margin-left: -4px;
    margin-right: 6px; */
}


.has-error input {
    background-color: #ffd3d3;
    color: #ba0000;
}


.alert span.glyphicon {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: top;
}
.alert span.message {
    font-size: 16px;
    line-height: 24px;
    display: inline-block;
    width: calc(100% - 60px);
}

/* fix for safari 11.1 sillily disapearing backdrop if background set to gradients */

.yii-debug-toolbar {
    background: #ffffff;
}

/**********************************************/
/*! From Yii 2 Advanced Application Template    */
/**********************************************/

html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
    width: auto;
    max-width: 1600px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 12px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

div.grid-view div.summary {
    margin: -10px 0 20px 5px;
}


.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}


