/* ===============================
   COLONNA SINISTRA
================================ */

.colonna-comandi{

    position:sticky;

    top:20px;

}

.colonna-comandi .card{

    margin-bottom:20px;

}

/* ===============================
   CONTENITORE TABELLA
================================ */

#contenitore-tabella-produzione,
#contenitore-tabella-cronologia{

    overflow-x:visible;

}


/* ===============================
   TABELLA
================================ */

#tabella-produzione,
#tabella-cronologia{

    width:100%;
    table-layout:fixed;
    font-size:.72rem;

}

#tabella-produzione th,
#tabella-produzione td,
#tabella-cronologia th,
#tabella-cronologia td{

    padding:.20rem .25rem;
    white-space:normal;
    line-height:1.1;

}


/* ===============================
   HEADER
================================ */

#tabella-produzione thead th,
#tabella-cronologia thead th{

    position:sticky;
    top:0;
    z-index:5;
    background:white;

}

.col-fasce{

    min-width:120px;
    width:120px;

}

.col-fasce input{

    min-width:110px;

}

/* ===============================
   CARD
================================ */

/* .card{

    border-radius:12px;

} */


/* ===============================
   BOTTONI
================================ */

.btn{

    white-space:nowrap;

}

.card,
.nav-tabs .nav-link,
.nav-tabs,
.card-header {

    border-radius: 0 !important;

}

.nav-tabs{

    border-bottom:1px solid #ced4da;

}

.nav-tabs .nav-link{

    background:#f3f4f6;
    border:1px solid #ced4da;
    border-bottom:none;
    color:#495057;
    font-weight:500;
    margin-right:2px;

}

.nav-tabs .nav-link.active{

    background:#ffffff;
    font-weight:600;
    color:#212529;
}


/* Campi numerici */
#scheda-ordine .form-control{
    padding: .3rem .45rem;
}

/* Select */
#scheda-ordine .select2-container{
    max-width: 220px;
}

/* Checkbox */
#scheda-ordine .form-check{
    margin-bottom: .35rem;
}

.cella-addebita{
    cursor: pointer;
}

.btn-gestione{
    width: 130px;
}


.drag-handle{
    cursor:grab;
    user-select:none;
    font-size:16px;
    font-weight:bold;
    width:30px;
}

.drag-handle:active{
    cursor:grabbing;
}

.ui-sortable-placeholder{
    visibility:visible !important;
    height:32px;
    background:#f8f9fa;
    border:2px dashed #6c757d;
}

.ui-sortable-helper{
    background:#fff;
}

.calcolo-blocco .label-calcolo {

    display: flex;
    align-items: flex-end;
    min-height: 48px;
    margin-bottom: .5rem;

}

.form-control{

    font-size:1.05rem;
    font-weight:700;
    color:#212529;

}


#tabella-produzione .colonna-ordinabile {
    cursor: pointer;
    user-select: none;
}

#tabella-produzione .colonna-ordinabile:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

#tabella-produzione .indicatore-ordine {
    font-weight: bold;
    white-space: nowrap;
}

#tabella-produzione .indicatore-ordine {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;

    background: #6c757d;
    color: white;

    border-radius: 5px;

    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;

    white-space: nowrap;
}

#tabella-produzione .indicatore-ordine:empty {
    display: none;
}