/* PERSONALIZZAZIONE STILE */
.mb-0 { margin-bottom:0px !important; }
.mb-30 { margin-bottom:30px !important; }
body #main {font-size: 13px;}

/* PERSONALIZZAZIONI PER TEMA HORIZON */
body .nav-pills > li.active > a, body .nav-pills > li.active > a:hover, body .nav-pills > li.active > a:focus {background-color:#ddd !important; color:#333 !important; font-weight:bold;}

body .pagination > .active > a, body .pagination > .active > span, body .pagination > .active > a:hover, body .pagination > .active > span:hover, body .pagination > .active > a:focus, body .pagination > .active > span:focus { background-color:#333 !important; border-color:#333 !important; }

body .nav-tabs > li.active > a, body .nav-tabs > li.active > a:hover, body .nav-tabs > li.active > a:focus { background-color:#333 !important; }

/* Personalizzazioni colore */
.navbar-default { background-color: #d50303; }
.navbar-default a { color:#fff !important; margin-right:4px; }
a { color:#333 !important; }
.alert a { color:#ddd !important; }
.alert-info label { color:#ccc; }
body #main .panel-title {color:#d50303 !important; border-bottom:1px solid #d50303 !important;}
body #main { border-left: 1px solid #ccc;}
body .panel-body h2 {color:#d50303 !important;}
body #scrollToTop { background:#ccc !important;}

/* Personalizzazione griglie */
table.recordList td:first-child, table.recordList th:first-child { width:auto;}
body .recordList th { background-color: #333 !important; border-color: #333 !important; }
body .recordList th a { color: #fff !important; }
body .recordList th.recordListSearch { background-color: #ddd !important; border-color: #ddd !important; }
body .recordList th.recordListSearch .select2 { background-color: #fff !important; }
body .recordList td a {color:#d50303 !important;}
body .actions .fa-pencil, body .actions .fa-files-o {color:#333 !important;}
body .recordList td a .glyphicon-file {color:#888 !important;}

/* Personalizzazione datatables */
.dataTables_info {
    clear: both;
    float: left;
    padding-top:4px;
}
.dataTables_length {
    float: left;
    margin-bottom: 10px;
    margin-left: 6px;
    border-left: 1px solid #ccc;
    padding-left: 6px;
}
.dataTables_filter {
    float: right;
    text-align: right;
    margin-bottom: 10px;
}
.dataTables_length label, .dataTables_filter label { font-weight:normal; }
.dataTables_paginate {
    float: right;
    text-align: right;
    margin-top:4px;
}
.dataTables_paginate a.paginate_button, .dataTables_paginate a.paginate_active {
    border: 1px solid #ddd;
    padding: 6px 12px;
    margin-right: 5px;
    cursor: pointer;
    line-height: 21px;
    float: left;
    position: relative;
    background: #fff;
    border-radius: 3px;
}
.dataTables_paginate a.current, .dataTables_paginate a.current:hover { background-color: #fff!important; border-color:#d50303 !important;}


.section_Movimenti_magazzino_movimenti_telaio, .section_Movimenti_magazzino_movimenti_componenti, .section_Movimenti_magazzino_movimenti_materie_prime, .section_Movimenti_magazzino_ddt_associati { float:none; clear:both; }

.form-control.ro{display: block!important; border: 0px!important;height: auto;}

@media (min-width: 756px) and (max-width: 851px) {
#nav.navbar-collapse {
    width: 120px
    }
}

@media (min-width: 852px) and (max-width: 971px) {
    #nav.navbar-collapse {
        width: 140px
        }
    }
    

@media (min-width: 972px) and (max-width: 1331px) {
    #nav.navbar-collapse {
        width: 160px
        }
    }

@media (min-width: 1332px)  {
    #nav.navbar-collapse {
        width: 220px
        }
    }




/* COMUNICAZIONI */

#buttons {
    position:absolute;
    right:0;
    top: 0;
    margin-top: -4px;
}
.comnote {
    height: calc(100% - 12px);
    position: relative;
    background: #efe7dd; /* url("/graphics/images/com_bg.jpg") repeat;*/
    z-index: 0;
}

.comnote ::-webkit-scrollbar {
    transition: all .5s;
    width: 5px;
    height: 1px;
    z-index: 10;
}

.comnote ::-webkit-scrollbar-track {
    background: transparent;
}

.comnote ::-webkit-scrollbar-thumb {
    background: #b3ada7;
}

.comnote .comnote-container {
    height: calc(100% - 68px);
    overflow-x: hidden;
    padding: 0 16px;
    margin-bottom: 5px;
}

.comnote .comnote-container:after {
    content: "";
    display: table;
    clear: both;
}

/* Messages */

.message {
    color: #000;
    clear: both;
    line-height: 22px;
    font-size: 13px;
    padding: 8px 26px 4px 12px;
    position: relative;
    margin: 8px 0;
    word-wrap: break-word;
    max-width:70%;
    box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
    /*text-transform: uppercase;*/
}

.starredmsg {
    box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 3px 0px;
}

.message:after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
}

.message .quotation {
    border:1px solid #ccc;
    background: #F0F0F0;
    padding:4px 6px;
    margin-bottom:6px;
}

.message .quotation a {
    text-decoration:none;
    color: #000 !important;
}

.noteday {
    color: #000;
    background:#E0F1FA;
    margin:auto;
    clear: both;
    line-height: 22px;
    font-size: 13px;
    padding: 6px 22px 6px 22px;
    position: relative;
    margin: 8px 0;
    margin-left:50% !important;
    color:#000;
    border-radius: 5px;
    float: left;
    text-align:center;
    text-transform:uppercase;
    box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
}

.sysmessage {
    color: #000;
    background:#FEF4C5;
    margin:auto;
    clear: both;
    line-height: 22px;
    font-size: 13px;
    padding: 8px 26px 4px 12px;
    position: relative;
    margin: 8px 0;
    margin-left:10% !important;
    width: 85%;
    /*z-index: -1;*/
    color:#000;
    border-radius: 5px;
    float: left;
    text-align:center;
    box-shadow: 1px 1px 3px 0px rgba(0,0,0,0.2);
}

.metadata {
    display: block;
    padding: 0;
    text-align: right;
    margin-right:-20px;
}

.userdata {
    display: block;
    padding: 0;
    font-weight: bold;
}

.mydata { display:none;}

.metadata .dett {
    color: rgba(0, 0, 0, .45);
    font-size: 11px;
    display: inline-block;
}

.metadata .star a {
    margin: 0 4px;
}

.metadata .tick {
    display: inline-block;
    margin-left: 4px;
    position: relative;
    top: 0;
    height: 16px;
    width: 16px;
    z-index:999;
}

.metadata .tick a {
    color:#ccc !important;
}

.metadata .tick.read a {
    color:green !important;
}

.metadata .tick svg {
    padding-top: 2px;
    transition: .5s ease-in-out;
}

.message .systemcom, .message .SYSTEMCOM {
    font-style:italic;
    text-transform: uppercase;
    color:#333;
}

.message .mediacom img, .message .MEDIACOM img, #editform img {
    max-width:300px;
    border-radius: 5px;
}

.message .attachcom img, .message .ATTACHCOM img {
    max-width:96px;
    display:block;
    margin:auto;
}

.message .attachcom .img, .message .ATTACHCOM img {
    display:block;
    margin:auto;
    background: #fff;
    text-align: center;
    padding:8px;
    border-radius:5px 5px 0 0;
}

.message .attachcom .text, .message .ATTACHCOM .text {
    max-width:300px;
    display:block;
    background: rgba(0,0,0,0.2);
    text-align: center;
    color:#333;
    padding:8px;
    border-radius:0 0 5px 5px;
}

.message:first-child {
    margin: 16px 0 8px;
}

.message.received {
    background: #fff;
    color:#000;
    border-radius: 0px 5px 5px 5px;
    float: left;
}

.message.received .metadata {
    padding: 0; /*0 0 0 16px;*/
}

.message.received:after {
    border-width: 0px 10px 10px 0;
    border-color: transparent #fff transparent transparent;
    top: 0;
    left: -10px;
}

.message.sent {
    background: #DCF8C6;
    border-radius: 5px 0px 5px 5px;
    float: right;
}

.message.sent:after {
    border-width: 0px 0 10px 10px;
    border-color: transparent transparent transparent #DCF8C6;
    top: 0;
    right: -10px;
}

.mediaelem {
    text-align: center;
    height:250px;
    border: 1px solid #ededed;
    padding:10px 0;
}

.mediaelem img {
    width:100%;
    margin:10px 0;
}
