/*BODY*/
html,
body {
    height: 100% !important;
    overflow: hidden;
}
body {
    font-family: "Ubuntu", Arial, serif !important;
    font-weight: normal;
    min-height: 100%;
    font-size: 1em;
    color: var(--gray);
    min-width: 320px;
    background-color: var(--black) !important;
}
ul:not(.normal-list) {
    padding: 0px;
    list-style: none;
}
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: normal;
}
/*COMPONENTS*/
.btn,
.nav-pills .nav-link,
.alert,
.form-control,
.card,
.jumbotron,
.breadcrumb {
    border-radius: 0px;
}
.form-control {
    margin-bottom: 0.5rem;
}
/*BUTTON*/
.btn {
    border: 3px solid transparent;
    text-transform: uppercase;
    font-size: 0.75em;
}
.btn-light {
    padding: 1em 0.5em;
    background-color: transparent;
}
.btn-dark {
    padding: 1em 0.5em;
    background-color: transparent;
}
.btn-light:not(:disabled):not(.disabled).active,
.btn-light:not(:disabled):not(.disabled):active,
.show > .btn-light.dropdown-toggle,
.btn-light:hover {
    text-decoration: underline !important;
    background-color: transparent;
}
.btn-dark:not(:disabled):not(.disabled).active,
.btn-dark:not(:disabled):not(.disabled):active,
.show > .btn-dark.dropdown-toggle,
.btn-dark:hover {
    text-decoration: underline !important;
    background-color: transparent;
}
/*JUMBOTRON*/
.jumbotron {
    overflow: hidden;
    padding: 0px;
    text-align: center;
}
.jumbotron > .lead {
    font-weight: normal;
}
/*CARD*/
.card {
    border-style: none;
}
.card-img-top {
    border-radius: 0px;
}
/*CAROUSEL*/
.carousel-item h5,
.carousel-item p {
    text-shadow: 0 0 8px #000000;
}
.carousel-caption h5 {
    font-size: 1.25em;
    font-weight: bolder;
}
.carousel-caption {
    text-align: center;
    font-size: 4vw;
    top: 50%;
    transform: translateY(-50%);
}
/*CUSTOM-SELECT*/
.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
}
.shortcut-notification-badge {
    display: none;
    background-color: #be202e;
    color: white;
    font-size: 25px;
    text-align: center;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    position: absolute;
    top: 0px;
    right: 0px;
}
/* TABLE */
.table {
    color: var(--grey);
}
.read-dpi-body {
    padding: 0;
}
.read-dpi-body > h4 {
    padding-bottom: 1.25em;
}
.read-dpi-logo {
    font-size: 50vw;
}
@media (min-width: 992px) {
    .read-dpi-logo {
        font-size: 20vw;
    }
}
.vertical-align {
    display: flex;
    align-items: center;
}

.toast-body,
.toast-header > strong {
    font-size: 1.2em !important;
}

.block-layer {
    position: fixed;
    top: 0%;
    height: 100%;
    width: 100%;
    background-color: #000;
    opacity: 0.5;
    z-index: 998;
}
.block-modal {
    position: sticky;
    left: 20%;
    bottom: 50%;
    width: 60%;
    z-index: 999;
}

.scan-tag-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    border: 0px;
}
.scan-tag-header {
    width: 100%;
    text-align: center;
    background-color: var(--secondary-dash);
    padding-top: 1em;
    padding-bottom: 0.5em;
    border: 0px;
}
.scan-tag-body {
    border: 0px;
    width: 100%;
}
.scan-tag-body > img {
    width: 100%;
    background-color: var(--secondary-dash);
}
.scan-tag-body > h4 {
    width: 100%;
    text-align: center;
    padding-top: 0.8em;
}

/* html, body { */
/*     height: 100% !important; */
/*     overflow: hidden !important; */
/* } */

.page-content,
.tab-content,
.tab-content-pill {
    height: 100% !important;
}

.tab-content > div {
    height: 100% !important;
    overflow: auto !important;
}

@media only screen and (max-width: 829px) {
    .page-content {
        display: flex !important;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
    }
    .tab-content {
        position: relative !important;
        order: 2 !important;
        flex: 1;
        overflow: auto;
    }
    .topbar {
        position: relative !important;
        height: 65px !important;
        min-height: 65px !important;
        order: 1;
        flex-shrink: 1;
    }
    .bottombar {
        position: relative !important;
        height: 65px !important;
        min-height: 65px !important;
        order: 3;
        flex-shrink: 1;
    }
}

.color-circle {
    align-self: center;
    width: 1em;
    height: 1em;
    min-width: 1em;
    min-height: 1em;
    max-width: 1em;
    max-height: 1em;
    border-radius: 50%;
    border: none;
}

.colors-analytics-table {
    display: grid;
    width: 100%;
    /* flex-direction: column; */
    /* justify-content: flex-start; */

    grid-template-columns:
        minmax(1.5rem, auto) minmax(auto, 1fr) minmax(1.5rem, auto)
        minmax(auto, 2fr) minmax(1.5rem, auto);
    grid-auto-rows: 2.5rem;

    flex: 1;
    width: 100%;
}

.color-col {
    grid-column: 1;
}
.name-col {
    grid-column: 2;
}
.views-col {
    grid-column: 3;
}
.origin-col {
    grid-column: 4;
}
.controls-col {
    grid-column: 5;
}

.controls-col > i {
    cursor: pointer;
    transition: color 0.3s ease;
}
.controls-col > i:hover {
    color: var(--primary);
}

.colors-analytics-row,
.colors-analytics-header {
    display: contents;
}

.colors-analytics-header {
    font-weight: bold;
}

.colors-analytics-header .colors-analytics-cell {
    white-space: nowrap;
    overflow: hidden;

    text-overflow: fade;
    text-overflow: ellipsis;
}

.colors-analytics-row .colors-analytics-cell {
    border-top: 1px solid #bebebe;
}

.colors-analytics-collapse.nested-collapse
    .colors-analytics-row
    .colors-analytics-cell {
    background-color: transparent;
}

.colors-analytics-row .colors-analytics-collapse .colors-analytics-cell {
    border-top: none;
    background-color: #fbfbfb;
}

.colors-analytics-cell {
    display: flex;

    flex-direction: row;
    justify-content: flex-start;
    align-items: center;

    padding-left: 0.7rem;
    padding-right: 0.7rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.colors-analytics-cell.centered {
    justify-content: center;
}

.origin-col .progress {
    flex: 1;
    height: 1.3rem;
    font-size: 0.9rem;
    line-height: 1.3rem;
    cursor: help;
}
.origin-col .progress .progress-bar {
    color: #313131 !important;
}

.colors-analytics-collapse {
    display: none;
}

.colors-analytics-collapse.show {
    display: contents;
}

.colors-analytics-header .colors-analytics-cell.is-header {
    transition: color 0.3s ease;
}

.colors-analytics-header .colors-analytics-cell.is-header:hover {
    color: var(--primary) !important;
    cursor: pointer;
}

/* Tabella reviews-analytics (4 colonne: name, count, rating, controls) */
.reviews-analytics-table {
    display: grid;
    width: 100%;
    grid-template-columns: 2fr 1fr 2.5fr auto;
    grid-auto-rows: 2.5rem;
}

/* Celle della tabella */
.reviews-analytics-cell {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.2rem 0.7rem;
}

.reviews-analytics-cell:not(.is-header) {
    border-top: 1px solid #bebebe;
}

/* Per la riga dei dati generali, le celle non devono avere border-top */
#general-data-row .reviews-analytics-cell {
    border-top: none;
}

/* Assegnazione delle colonne */
.reviews-analytics-cell.name-col {
    grid-column: 1;
}
.reviews-analytics-cell.count-col {
    grid-column: 2;
}
.reviews-analytics-cell.rating-col {
    grid-column: 3;
}
.reviews-analytics-cell.controls-col {
    grid-column: 4;
}

/* Header della tabella */
.reviews-analytics-header {
    display: contents;
    font-weight: bold;
}
.reviews-analytics-header .reviews-analytics-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Righe della tabella */
.reviews-analytics-row {
    display: contents;
}

/* Collapse (dettaglio) */
.reviews-analytics-collapse {
    display: none;
}
.reviews-analytics-collapse.show {
    display: contents;
}

/* Celle Header interattive */
.reviews-analytics-cell.is-header {
    transition: color 0.3s ease;
}
.reviews-analytics-cell.is-header:hover {
    color: var(--primary) !important;
    cursor: pointer;
}

/* Cella controlli */
.reviews-analytics-cell.controls-col > i {
    cursor: pointer;
    transition: color 0.3s ease;
}
.reviews-analytics-cell.controls-col > i:hover {
    color: var(--primary);
}

.reviews-analytics-cell:not(.is-header) > * {
    flex: 1;
}

.reviews-analytics-cell:not(.is-header) {
    border-top: 1px solid #bebebe;
}

.reviews-analytics-cell .progress-bar {
    color: black !important;
}

.registry-container.single-row {
    min-height: unset !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.reviews-analytics-collapse .reviews-analytics-cell {
    border-top: none;
    background-color: #fbfbfb;
}
