/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 0;
}

body.mainpage {
    background: url('../img/6.jpg');
    background-attachment: fixed;
    background-size:cover;
}

/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}


.main {
    padding: 20px;
}

.main .page-header {
    margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.page-content {
    padding: 10px;
}

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.navbar-brand > img {
    display:inline-block;
    margin-right: 10px;
}

#logotype{
    margin-top: 30px;
    margin-bottom: 20px;
}

.fixed_search{
    position: fixed;
    top:50px;
    left:0;
    right:0;
    width:100%;
    padding: 0 10px;
    height: 150px;
    z-index: 99;        
}

.row.up{
    margin-top: -150px;
}

form.del{
    display: inline-block;
}

.thumb_box{
    height: 160px;
    position: relative;
}

.thumb_box a.delimg{
    position: absolute;
    top: 0;
    right: 15px;
}

.image_box{
    margin-top: 20px;
}

.table tbody>tr>td.cell-middle{
    vertical-align: middle;
}

.typeahead, .tt-query, .tt-hint,.twitter-typeahead, .tt-hint, .tt-input, .tt-menu { width: 100%; }

.typeahead {
    background-color: #FFFFFF;
}
.typeahead:focus {
    border: 2px solid #0097CF;
}
.tt-hint {
    color: #999999;
}
.tt-menu {
    background-color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin-top: 10px;	    
}
.tt-suggestion {	
    padding: 3px 10px;
}
.tt-suggestion:hover {
    cursor: pointer;
    background-color: #0097CF;
    color: #FFFFFF;
}
.tt-suggestion p {
    margin: 0;
}

.thumbnail a>img, .thumbnail>img{
    width: 100%;
    height: 150px;
}

.routesData{
    margin-top: 20px;
}

textarea.cmr_inputs{
    height: 150px;
}

#cmr{
    padding: 0;
    margin:0;    
    position: relative;
    font-family: 'Source Sans Pro', sans-serif;
}

.box{
    position: absolute;
    left: 0;
    top:80px;
    width: 100%;
}

/*nowy cmr styl*/
#cmr .box .cmrbox{
    position: absolute;
    left: 130px;
}

#cmr .box .sender{    
    top: 165px;    
}

#cmr .box .sender_sign{    
    top: 1500px;    
}

#cmr .box .recipient{    
    top: 310px;    
}

#cmr .box .reg_truck{    
    top: 370px;
    left: 760px;
}

#cmr .box .reg_trailer{    
    top: 370px;
    left: 885px;
}

#cmr .box .destination{    
    top: 460px;    
}

#cmr .box .loading{    
    top: 560px;    
}

#cmr .box .documents{    
    top: 660px;    
}

#cmr .box .invs{    
    top: 760px;
    left: 110px;
    width:100%;
}

#cmr .box .invs .m60{        
    width:200px;
}

#cmr .box .invs .m120{        
    width: 416px;
    top: 110px;
    left: 205px;
    position: absolute;
}

#cmr .box .invs .morethan16 li,
#cmr .box .invs .morethan30 li{
    font-size: 8px;
    padding: 0 5px;
    float: left;
}

#cmr .box .amounts{    
    top: 755px;
    left:310px;
    font-size: 12px;
}

#cmr .box .invs ul,#cmr .box .amounts ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#cmr .box .method{    
    top: 755px;
    left:475px;
}

#cmr .box .nature{    
    top: 755px;
    left:640px;
}

#cmr .box .weight{    
    top: 700px;
    left:850px;
}

#cmr .box .issue_place{    
    top: 1410px;
    left:245px;
}

#cmr .box .issue_date{    
    top: 1410px;
    left:390px;
}

#cmr .box .transport16{    
    top: 285px;
    left: 920px;
}

#cmr .box .transport23{    
    top: 1500px;
    left: 490px;
}

/*stary cmr styl*/
#cmr .cmrbox{
    position: absolute;
    left: 130px;
}

#cmr .sender{    
    top: 165px;    
}

#cmr .sender_sign{    
    top: 1470px;    
}

#cmr .recipient{    
    top: 300px;    
}

#cmr .reg_truck{    
    top: 347px;
    left: 760px;
}

#cmr .reg_trailer{    
    top: 347px;
    left: 885px;
}

#cmr .destination{    
    top: 440px;    
}

#cmr .loading{    
    top: 530px;    
}

#cmr .documents{    
    top: 615px;    
}

#cmr .invs{    
    top: 690px;
    left: 100px;
    width:100%;
}

#cmr .invs .m60{        
    width:200px;
}

#cmr .invs .m120{        
    width: 345px;
    top: 110px;
    left: 205px;
    position: absolute;
}

#cmr .invs .morethan16 li,
#cmr .invs .morethan30 li{
    font-size: 8px;
    padding: 0 5px;
    float: left;
}

#cmr .amounts{    
    top: 690px;
    left:310px;
    font-size: 12px;
}

#cmr .invs ul,#cmr .amounts ul{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#cmr .method{    
    top: 690px;
    left:415px;
}

#cmr .nature{    
    top: 690px;
    left:560px;
}

#cmr .weight{    
    top: 700px;
    left:850px;
}

#cmr .issue_place{    
    top: 1390px;
    left:215px;
}

#cmr .issue_date{    
    top: 1390px;
    left:375px;
}

#cmr .transport16{    
    top: 270px;
    left: 830px;
}

#cmr .transport23{    
    top: 1470px;
    left: 435px;
}

.hidden_fields{
    visibility: hidden;
    height: 1px;
}

.pbreak{
    display: block;
    clear: both;
    page-break-after: always;
}

/*

MATERIAL DESIGN

*/

/*h1 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 600;
    margin: 10px 0;
}*/

.mdl-button {
    min-width: 36px;
}

.mdl-navigation dt {
    padding: 10px 0 10px 24px;
}

.mdl-navigation dd a {
    display: block;
    padding: 10px 0 10px 40px;
    color: #757575;
}

.mdl-textfield__label {
    margin-bottom: 0;
}

.btn-danger {
    background-color: #d43f3a;
    color: #fff;
}

.btn-success {
    background-color: #4cae4c;
    color: #fff;
}

.mdl-data-table {
    width: auto;
    min-width: 50vw;
    margin: 0 auto;
}

.mdl-textfield__input {
    padding: 4px;
}

.mdl-data-table th,
.mdl-data-table td {
    padding: 5px;
}

.mdl-data-table td:first-of-type,
.mdl-data-table th:first-of-type,
.mdl-data-table td:last-of-type,
.mdl-data-table th:last-of-type {
    padding-left: 5px;
    padding-right: 5px;
}

.mdl-data-table .mdl-button {
    min-width: 0;
    height: 24px;
    line-height: 24px;
    padding: 0 2px;
    font-size: 11px;
}

.routes_box .content {
    padding-top: 20px;
}

.routes_box .mdl-tabs__tab {
    font-size: 12px;
    padding: 0 10px;
}

.routes_box .routes_table td:first-of-type {
    font-weight: bold;
}

.mdl-dialog {
    width: 100%;
    max-width: 1024px;
    z-index: 10000;
}

@media (min-width: 1200px){
    .container {
        width: 1200px;    
    }
}

@media only screen and (max-device-width: 767px) {

    body {
        padding-top: 0;
    }
    .fixed_search{
        position: fixed;
        top:50px;
        left:0;
        right:0;
        width:100%;
        padding: 0 10px;
        height: 300px;
        z-index: 99;        
    }

    .form-signin{
        margin-top: -150px;
    }
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

#main {
    margin-top: 30px;
    margin-bottom: 30px;
}

#ajaxLoader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 100000;
}

#ajaxLoader img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (min-width: 992px) {

    .sm-margin-top button {
        margin-top: 18px;
    }

}

@media (max-width: 1200px) {

    .sm-margin-top button {
        margin-top: 15px;
    }

}

#tradingWay2 {
    display: none;
}

.checkboxNextToInput {
    margin-top: 30px;
}

.details {
    cursor: pointer;
}

.checkboxNextToSelect {
    padding-top: 19px;
}
/*.form-group-sm {
    margin-bottom: 10px;
}*/

.buttonsGroupNextToInputs {
    margin-top: 5px;
}

.tooglePanel {
    cursor: pointer;
}

.downloadButtons {
    float: right;
    margin-top: -5px;
}

.downloadButtons2 {
    margin-top: 10px;
}

/*.modal-backdrop {
  z-index: -1;
}*/

.modal-fullscreen {
    width: 90%;
    height: 92%;
    padding: 0;
}

.checkboxCenter {
    text-align:center; 
    vertical-align:middle;
}

.ButtonsNoPagination {
    margin-bottom: 20px;
}

.addButtons {
    margin-top: 10px;
} 

.downloadButtons3 {
    margin-top: 23px;
}

/*
 * Base structure
 */

/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 50px;
}


/*
 * Global add-ons
 */

.sub-header {
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/*
 * Top navigation
 * Hide default border to remove 1px line.
 */
.navbar-fixed-top {
    border: 0;
}

/*
 * Sidebar
 */

/* Hide for mobile, show later */
.sidebar {
    display: none;
}
@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 51px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: block;
        padding: 20px;
        overflow-x: hidden;
        overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
        background-color: #f5f5f5;
        border-right: 1px solid #eee;
    }
}

/* Sidebar navigation */
.nav-sidebar {
    margin-right: -21px; /* 20px padding + 1px border */
    margin-bottom: 20px;
    margin-left: -20px;
}
.nav-sidebar > li > a {
    padding-right: 20px;
    padding-left: 20px;
}
.nav-sidebar > .active > a,
.nav-sidebar > .active > a:hover,
.nav-sidebar > .active > a:focus {
    color: #fff;
    background-color: #428bca;
}


/*
 * Main content
 */

.main {
    padding: 20px;
}
@media (min-width: 768px) {
    .main {
        padding-right: 40px;
        padding-left: 40px;
    }
}
.main .page-header {
    margin-top: 0;
}


/*
 * Placeholder dashboard ideas
 */

.placeholders {
    margin-bottom: 30px;
    text-align: center;
}
.placeholders h4 {
    margin-bottom: 0;
}
.placeholder {
    margin-bottom: 20px;
}
.placeholder img {
    display: inline-block;
    border-radius: 50%;
}

.fc-event {
    border-radius: 0px!important;
    border: 1px solid #999!important;
}

.fc-time-grid-event {
    display: flex!important;
    align-items: center;
    justify-content: center;
}
.declaration-all-confirmed {
    background-color: #4cae4c!important;
}
.declaration-all-confirmed-limit {
    background-color: #d43f3a!important;
}
.declaration-all-notconfirmed {
    background-color: #cccccc!important;
}
.declaration-some-confirmed {
    background-image: linear-gradient(#aaaaaa, #4cae4c)!important;
}

.declaration-none {
    background-color: #fff!important;
    color: #000!important;
}

#calendarShowModal .modal-dialog, .calendarScheduleShowModal .modal-dialog{
    width: 900px;
}

.blog-post {
    background-color: rgba(255,255,255,0.9);
    padding:20px;
    margin-bottom: 5px;
}