/*#region MEDIAS */

@media only screen and (min-width:769px) {
    .container {
        max-width: 768px;
        margin-bottom: 10px;
    }

    .window .input-group {
        padding-right: 15px !important;
    }

    /*div[role="main"]{
        margin-top: 25px;
    }*/
}


@media only screen and (max-width: 768px), only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation: portrait) {
    .container {
        width: 100% !important;
        margin: 0 auto;
        padding: 0;
        max-width: 100% !important;
    }

    div[role="main"]{
        margin-top: 1px;
    }

    div[role="main"].panel {
        border: none;
    }

    header {
        margin: 0 !important;
    }

    .window .input-group {
        padding-right: 15px !important;
        padding-left: 15px !important;
        margin-bottom: 15px !important;
    }

    .settings .language, .settings .genetic-base, .settings .currency {
        text-align: right !important;
    }
}

@media all and (max-width: 374px) /*,
    only screen and (max-device-width: 374) and (orientation: portrait)*/ {
    .trait .trait-row .trait-year {
        padding-left: 0 !important;
    }
}

/*#endregion */

header {
    margin: 0 0 10px 0 !important;
}

header img {
    width: 100%;
    height: auto;
}

div[role="main"] {
    width: 100%;    
    background-color: #6fa9cb;
}

.panel-default {
    /*border-color: #9bc3d8;*/
    border: 1px solid rgba(0,0,0,.2);
    box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.screen .row div[class*="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    /*margin: 0;*/
}

.screen hr {
    margin: 10px 0 10px 0;    
    border-top: 1px solid #9bc3d8;
}

.screen label {
    font-weight: normal;
    color: #fff;
}

.screen p.session-header {
    margin: 0 0 5px 0;
    color: #fff;
}

.screen .top-nav {
    padding: 10px 0 !important;
    margin-bottom: 10px !important;
}

.screen .screen-footer {
    border-top: 1px solid #9bc3d8;
    padding-top: 10px !important;
    margin-top: 10px !important;
}

.screen .page-header {
    border-bottom: 1px solid #9bc3d8 !important;
    color: #fff;
}

.grid-button {
    margin-top: 25px !important;
}

.row-border-bottom {    
    border-bottom: 1px solid #ddd;
}

.user-info {
    font-weight: bold;
    margin-right: 5px;
    color: #6fa9cb;
    vertical-align: text-top;
    font-size: 14px;
}

a:focus,
button:focus,
button:active,
button:hover,
.btn:active,
.btn.active
{
    outline:0px !important;
    -webkit-appearance:none;
}

.clickable {
    cursor: pointer;
}

.no-resize {
    resize: none;
}

.results-container {
    overflow: auto;
    max-height: 300px;
}

.row-selected {
    background-color: #9bc3d8 !important;
}

.hover:hover {
    background-color: #cbd8e5;
}

.table-hover tbody tr:hover {
  background-color: #cbd8e5;
}

.uib-datepicker-popup .btn-default {
    border-color: transparent !important;
}

.white {
    color: #fff !important;
}

.status {
    color: #fff !important;
}

.glyphicon-calendar {
    color: #286090 !important;
}

/*#region ORDERS */

#orders > .order {
    padding: 5px 5px 0 5px;
}

#orders .order-header {
    background-color: #4d8cba;
    color: #fff;
    padding-top: 5px;
    padding-bottom: 5px;
}

#orders .order-row {
    border-bottom: 1px solid #6fa9cb;
    margin: 0 5px 0 5px;
    padding: 5px 0 5px 0;
}

#orders label {
    margin: 0 !important;
}

#orders .order-group {
    background-color: #fff;    
}

#orders .order-group label{    
    color:#000 !important;
}


#orders > div.order > div.order-group > div.order-row:last-child {
    border-bottom: none !important;
}

/*#endregion */

/*#region WEIGHTED AVERAGES */

.traits-group-header {
    background-color: #4d8cba !important;
    padding: 5px !important;
    margin-top: 10px !important;
    color: #fff;
}

.traits-group {
    border: solid 1px #ddd;
    border-top: none !important;
    background-color: #fff;
}

.trait .trait-header {
    background-color: #4d8cba !important;
    padding: 2px !important;
    margin-top: 5px !important;
    color: #fff;
}

.trait .trait-row {
    border-bottom: solid 1px #9bc3d8 !important;
}

.trait .trait-row.disabled {
    color: #aaa !important;
}

.trait .trait-row .trait-value {
    font-weight: bold !important;
    padding: 0 10px 0 0 !important;
    text-align: right !important;
}

.trait > div.row.trait-row:last-child {
    border: none !important;
}

.trait-weight {
    margin: 0 !important;
    padding: 0 !important;
}

.trait-weight > label {
    margin: 0 !important;
    padding: 0 8px 0 0 !important;
    vertical-align: middle;
}

/*#endregion */

/*#region PREVIEW - COVER AND MESSAGE */

.cover-preview, .message-preview {
    position: relative;
    max-width: 250px;
    margin: 0 auto;
}

.cover-preview > .cover-preview-title, .message-preview > .message-preview-title {
    position: absolute;
    top: 25px;
    padding: 0 15px;    
    z-index: 1;    
}

.cover-preview > .cover-preview-title h1, .message-preview > .message-preview-title h1 {    
    font-family: 'FagoOffc-Bold';
    color: #164D77;
    font-weight: bold;
    font-size: 1.2em;
}

.cover-preview > .cover-preview-title h2 {    
    font-family: 'FagoOffc';
    color: #164D77;
    font-weight: normal;       
    font-size: 0.7em;
}

.cover-preview > .cover-preview-title h1.text-white, .cover-preview > .cover-preview-title h2.text-white {
    color: #fff;
}

.message-preview > .message-preview-title > p {    
    color: #164D77 !important;
    font-weight: normal;
    font-size: 0.4em;
    white-space: pre-wrap;
}

/*#endregion */

/*#region FORM-CONTROLS - INPUTS */

.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
    background-color: #fff !important;
    opacity: 1 !important;
}

input[type=checkbox]:focus, input[type=button]:focus, button:focus {
    outline: none !important;
}

.input-group-btn > button {
    height: 34px !important;
}

/*#endregion */

/*#region MODAL - CUSTOMERS, IMPORT FILE AND  OPTIONS*/

.modal-header {
    color: #fff !important;
    border-bottom: 1px solid #9bc3d8 !important;
}

button.close[disabled]:hover{
    cursor: not-allowed;
}

.modal-content {
    background-color: #6fa9cb;    
}

.modal-footer {    
    border-top: 1px solid #9bc3d8 !important;
}

.table-results thead {
    background-color: #4d8cba;
}

.table-results th {
    color: #fff !important;
    font-weight: normal;
}

.table-results tbody {
    background-color: #fff;
}

.table-results td {
    white-space: nowrap;
    font-size: 0.7em;
}

.table-results thead>tr>th {
    vertical-align: bottom;
    border-bottom: none;
}

.table-results tbody>tr:first-child td{
    border-top: none;
}

.table-results tbody>tr:not(:first-child) td{
    border-top: 1px solid #6fa9cb;
}

.multi-item-carousel .carousel-control.left,
    .multi-item-carousel .carousel-control.right {
        background-image: none !important;
        width: 10% !important;
        font-size: 25px !important;
    }

.cover-selected {
    border: 5px solid #ec971f;
}

#importFileWindow .input-group {
    padding: 0 !important;
}

#importFileWindow a {
    font-weight: bold;
    text-decoration: underline;
    color: #fff;
}


#optionsWindow .carousel-control {
    opacity: 1 !important;
}

#optionsWindow .multi-item-carousel .carousel-control.right i, #optionsWindow .multi-item-carousel .carousel-control.left i {
    background-color: rgba(0,0,0,0.4);
    border-radius: 3px;
    padding: 5px 3px;
    box-sizing: content-box;    
}

/*.table-results.table-striped>tbody>tr:nth-of-type(odd) {
    background-color: #eee;
}*/

/*#endregion*/

/*#region SETTINGS */

.settings {
    font-size: 12px;
}

.settings i, .settings label {
    color: #888;
}

.settings .input-sm{
    height: 20px !important;
    line-height: 20px !important;
    padding: 0px 5px !important;
    display: inline-block;
    width: 120px;
}

.settings .form-control[disabled]{
    color: #bbb;
}

/*#endregion */


#divPrintVersionHide {
    width: 1000px !important;
    position: absolute !important;
    left: -2000px;
    top: 0;
}