﻿

/* Bootstrap Validation Summary Override */
.validation-summary-valid {
    display: none;
}

.cursorpointer {
    cursor: pointer;
}

.validation-summary-errors ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.alert.validation-summary-errors {
    margin-bottom: 1rem;
}

.col-0 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 4.166665%;
    flex: 0 0 4.166665%;
    max-width: 4.166665%;
    width: 4.166665%;
}

.col-1 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 8.33333%;
    flex: 0 0 8.33333%;
    max-width: 8.33333%;
    width: 8.33333%;
}

.col-2 {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 16.66666%;
    flex: 0 0 16.66666%;
    max-width: 16.66666%;
    width: 16.66666%;
}

/* Reference classes, no implementation */
.base,
.needs-validation,
.flex-start,
.text-faded,
.app-container-demo,
.lang-js,
.lang-csharp,
.has-tooltip,
.has-popover {
}

/* Keeps analyzers happy */
.js-waves-off,
.js-waves-on,
.js-get-date,
.js-collapse,
.js-modal-settings,
.js-filter-message,
.js-buttons,
.js-icon-class,
.js-icon-copy,
.js-bg-color,
.js-bg-gradient,
.js-bg-gradient-demo,
.js-bg-target {
}

/* Small word wrap correction */
section > ol > li {
    word-break: break-all;
}

code {
    border: 1px solid silver;
    padding: 0.03rem 0.2rem !important;
}

pre.prettyprint {
    border-radius: 0.2rem;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
}

.documentation h2 {
    color: var(--primary);
}

.documentation th:first-child,
.documentation th:nth-child(3) {
    width: 16%;
}

.documentation blockquote {
    margin-left: 1rem;
    padding: 1rem 1rem 0.01rem 1rem;
    font-weight: 400;
    border-radius: 0 4px 4px 0;
    background: #edf2f9;
    border-left: 3px solid var(--primary);
}

    .documentation blockquote.info {
        background: #edf2f9;
        border-left: 3px solid var(--info);
    }

    .documentation blockquote.warning {
        background: #fff4db;
        border-left: 3px solid var(--warning);
    }

    .documentation blockquote.danger {
        background: #fadeeb;
        border-left: 3px solid var(--danger);
    }

/* Enter custom CSS rules for your application here */

.borderRadius {
    -moz-border-radius: 0px;
    border-radius: 0px;
}

.borderRadiusTp {
    color: #495057;
    background-color: #fff;
    border-color: #4679cc;
    -moz-border-radius: 0px 0px 0 0;
    border-radius: 0px 0px 0 0;
}

.borderRadiusBtm {
    -moz-border-radius: 0 0 0px 0px;
    border-radius: 0 0 0px 0px;
}

.dddropdowncommon {
    border-color: #E5E5E5 !important;
    background: #fff !important;
    position: relative;
    display: -moz-inline-stack;
    zoom: 1;
    display: inline-block;
    *display: inline;
    cursor: default;
}

    .dddropdowncommon ul {
        padding: 0;
        margin: 0;
    }

        .dddropdowncommon ul li {
            list-style-type: none;
        }

.borderRadiusTp ul li:last-child {
    -moz-border-radius: 0 0 0px 0px;
    border-radius: 0 0 0px 0px;
    border-bottom: 0 none #c3c3c3;
}

.borderRadiusBtm ul li:first-child {
    -moz-border-radius: 0px 0px 0 0;
    border-radius: 0px 0px 0 0;
    border-bottom: 1 solid #c3c3c3;
}

.dddropdowncommon .disabled img, .dddropdowncommon .disabled span, .dddropdowncommon.disabledAll {
    background-color: #f3f3f3;
    opacity: 1;
}

.dddropdowncommon .clear {
    clear: both
}

.dddropdowncommon .shadow {
    -moz-box-shadow: 0px 0px 0px 0px #888888;
    -webkit-box-shadow: 0px 0px 0px 0px #888888;
    box-shadow: 0px 0px 0px 0px #888888;
}

.dddropdowncommon input.text {
    color: #7e7e7e;
    padding: 0 0 0 0;
    position: absolute;
    background: #fff;
    display: block;
    width: 98%;
    height: 98%;
    left: 30px;
    top: 0;
    border: none;
}

.dddropdownOutOfVision {
    position: relative;
    display: -moz-inline-stack;
    display: inline-block;
    zoom: 1;
    *display: inline;
}

.borderRadius .shadow {
    -moz-box-shadow: 0px 0px 0px 0px #888888;
    -webkit-box-shadow: 0px 0px 0px 0px #888888;
    box-shadow: 0px 0px 0px 0px #888888;
}

.borderRadiusBtm .shadow {
    -moz-box-shadow: 0px 0px 0px 0px #888888;
    -webkit-box-shadow: 0px 0px 0px 0px #888888;
    box-shadow: 0px 0px 0px 0px #888888
}

.borderRadiusTp .border, .borderRadius .border {
    -moz-border-radius: 0 0 0px 0px;
    border-radius: 0 0 0px 0px;
}

.borderRadiusBtm .border {
    -moz-border-radius: 0px 0px 0 0;
    border-radius: 0px 0px 0 0;
}

img.fnone {
    float: none !important
}

.dddropdowncommon .divider {
    width: 0;
    height: 100%;
    position: absolute;
}

.dddropdowncommon .dddropdownArrow {
    display: inline-block;
    position: absolute;
    top: 20%;
    right: 4px;
}

.dddropdowncommon .dddropdownTitle {
    padding: 0;
    position: relative;
    display: inline-block;
    width: 100%
}

    .dddropdowncommon .dddropdownTitle .dddropdownTitleText {
        display: block;
    }

        .dddropdowncommon .dddropdownTitle .dddropdownTitleText .dddropdownTitleText {
            padding: 0;
        }

    .dddropdowncommon .dddropdownTitle .description {
        display: block;
    }

    .dddropdowncommon .dddropdownTitle .dddropdownTitleText img {
        position: relative;
        vertical-align: middle;
        float: left
    }

.dddropdowncommon .dddropdownChild {
    position: absolute;
    display: none;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    zoom: 1;
    z-index: 9999
}

    .dddropdowncommon .dddropdownChild li {
        clear: both;
    }

        .dddropdowncommon .dddropdownChild li .description {
            display: block;
        }

        .dddropdowncommon .dddropdownChild li img {
            border: 0 none;
            position: relative;
            vertical-align: middle;
            float: left
        }

        .dddropdowncommon .dddropdownChild li.optgroup {
            padding: 0;
        }

            .dddropdowncommon .dddropdownChild li.optgroup .optgroupTitle {
                padding: 0 5px;
                font-weight: bold;
                font-style: italic
            }

            .dddropdowncommon .dddropdownChild li.optgroup ul li {
                padding: 5px 5px 5px 15px
            }

.dddropdowncommon .noBorderTop {
    border-top: none 0 !important;
    padding: 0;
    margin: 0;
}

/*************** default theme **********************/

.dddropdown:focus {
    color: #495057;
    background-color: #fff;
    border-color: #4679cc;
}

.dddropdown {
    max-width: 9999px;
    box-sizing: border-box;
    outline: 0;
    background: #fff;
    -webkit-appearance: none;
    margin: 0;
    text-transform: none;
    overflow: visible !important;
    align-items: center;
    white-space: pre;
    -webkit-rtl-ordering: logical;
    border-image: initial;
    text-rendering: auto;
    letter-spacing: normal;
    text-indent: 0px;
    text-shadow: none;
    word-spacing: normal;
    text-align: start;
    border-collapse: collapse;
    border-spacing: 0;
    -webkit-writing-mode: horizontal-tb !important;
    line-height: 32px;
    display: block;
    width: 100%;
    height: calc(1.47em + 1rem + 2px);
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.47;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    -webkit-transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;
}

    .dddropdown .divider {
        border-left: 0px solid #FF0000;
    }

    .dddropdown .dddropdownArrow {
        font-family: 'Font Awesome 5 Pro';
    }

    .dddropdown .dddropdownTitle {
        background: #fff !important;
        color: #495057 !important;
        text-align: left;
        overflow: hidden;
    }

        .dddropdown .dddropdownTitle .dddropdownTitleText {
        }

            .dddropdown .dddropdownTitle .dddropdownTitleText .dddropdownTitleText {
                padding: 0;
            }

        .dddropdown .dddropdownTitle .description {
            color: #666
        }

        .dddropdown .dddropdownTitle .dddropdownTitleText img {
            padding-right: 5px;
            padding-top: 0px !important;
        }

    .dddropdown .dddropdownChild {
        top: 36px !important;
        border: 1px solid #E5E5E5 !important;
        background-color: #fff;
        left: -1px;
        min-height: 95px !important;
    }

        .dddropdown .dddropdownChild li {
            padding: 5px;
            background-color: #fff;
            color: #495057;
            text-align: left;
        }

            .dddropdown .dddropdownChild li .description {
                color: #666;
            }

            .dddropdown .dddropdownChild li .dddropdownlabel {
            }

            .dddropdown .dddropdownChild li.hover {
                background-color: #1E90FF;
                color: #FFFFFF;
            }

            .dddropdown .dddropdownChild li img {
                padding: 0 6px 0 0;
            }

            .dddropdown .dddropdownChild li.optgroup {
                padding: 0;
            }

                .dddropdown .dddropdownChild li.optgroup .optgroupTitle {
                    padding: 0 5px;
                }

                .dddropdown .dddropdownChild li.optgroup ul li {
                    padding: 5px 5px 5px 15px
                }

            .dddropdown .dddropdownChild li.selected {
            }

.AuxHide {
    display: none;
}

.btn-mes {
    color: #333;
}

.dayheader {
    color: #333;
    background: #FFFFFF;
    border: 1px solid #ffffff !important;
}

.headcontainer {
    border: 1px solid #ffffff !important;
    border-bottom: 1px solid #e9e9e9 !important;
}

/* LABEL COLORS */
.label-AccessClocking {
    background-color: #99CC00;
}

.label-PointClocking {
    background-color: #0070C0;
}

.label-IncidentsClocking {
    background-color: #FF00FF;
}

.label-AutomaticClocking {
    background-color: #FF9900;
}

.label-InvalidClocking {
    background-color: #FF0000;
}

.label-RegistadaClocking {
    background-color: #A6A6A6;
}

.label-ENT {
    background-color: #0070C0;
}

.label-SAI {
    background-color: #0070C0;
}

.label-DES {
    background-color: #A6A6A6;
}

.label-INC {
    background-color: #FF9900;
}

.label-odd {
    background-color: #0070C0;
}

.label-even {
    background-color: #FF0000;
}

.labelTable {
    display: inline-block;
    padding: .2em .6em .3em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25em;
    margin: 0 .25rem .25rem 0;
}

/* DATATABLE BASIC STYLES */
.dataTables_empty {
    text-align: center !important;
    padding: 20px !important;
    font-size: 14px !important;
    color: #666;
    font-weight: normal !important;
    font-style: normal !important;
}

table.dataTable td, table.dataTable th {
    white-space: normal;
}

    table.dataTable td:nth-child(4) {
        white-space: normal;
    }

/* Corrigir separação do header */
.dataTables_scrollHead {
    border-bottom: none !important;
}

.dataTables_scrollBody {
    border-top: none !important;
    margin-top: -1px !important;
}

/* Garantir que a tabela fica unida */
.dataTables_scroll .dataTables_scrollHead table,
.dataTables_scroll .dataTables_scrollBody table {
    border-collapse: collapse !important;
}

/* Remover espaçamento extra */
.dataTables_scrollHead table {
    margin-bottom: 0 !important;
}

/* ====== CSS LIMPO E CORRECTO PARA DATATABLE MOBILE ====== */

/* === TOOLBAR PRINCIPAL === */
.dataTables_wrapper .dt-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}

    .dataTables_wrapper .dt-bar > * {
        min-width: 0;
    }

/* === ORDENAÇÃO DOS ELEMENTOS === */
.dataTables_wrapper .dataTables_filter {
    order: 1;
    margin: 0;
    margin-right: 10px;
}

.dataTables_wrapper .dataTables_length {
    order: 2;
}

.dataTables_wrapper .dataTables_info {
    order: 3;
}

.dataTables_wrapper .dataTables_paginate {
    order: 4;
    margin-left: auto;
}

/* === TAMANHOS DOS CONTROLOS === */
.dataTables_wrapper .dataTables_filter input {
    max-width: 220px;
}

.dataTables_wrapper .dataTables_length select {
    width: auto;
}

/* === PAGINAÇÃO BASE === */
.dataTables_wrapper .dataTables_paginate {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    justify-content: flex-end;
}

    .dataTables_wrapper .dataTables_paginate .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 0.125rem;
        margin: 0;
        align-items: center;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.375rem 0.75rem;
        margin: 0.125rem;
        font-size: 0.875rem;
        line-height: 1.5;
        min-width: 2.5rem;
        text-align: center;
        box-sizing: border-box;
    }

/* === MOBILE RESPONSIVO === */
@media (max-width: 576px) {
    /* Toolbar mais compacto */
    .dataTables_wrapper .dt-bar {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    /* Filtro e length na mesma linha */
    .dataTables_wrapper .dataTables_filter {
        flex: 1 1 60%;
        order: 1;
        margin-right: 0;
    }

        .dataTables_wrapper .dataTables_filter input {
            width: 100%;
            max-width: 180px; /* Campo mais pequeno */
            font-size: 0.8rem;
            padding: 0.4rem 0.6rem;
        }

    /* Length selector mais compacto ao lado */
    .dataTables_wrapper .dataTables_length {
        flex: 0 0 auto;
        order: 2;
    }

        .dataTables_wrapper .dataTables_length select {
            font-size: 0.8rem;
            padding: 0.4rem 0.5rem;
            min-width: 60px;
        }

    /* Info numa linha separada mais compacta */
    .dataTables_wrapper .dataTables_info {
        flex: 1 1 100%;
        order: 3;
        text-align: center;
        font-size: 0.75rem;
        margin: 0.25rem 0;
    }

    /* === PAGINAÇÃO MOBILE === */
    .dataTables_wrapper .dataTables_paginate {
        flex: 1 1 100%;
        order: 4;
        margin-left: 0;
        justify-content: center;
        max-width: 100%;
        overflow: hidden;
    }

        .dataTables_wrapper .dataTables_paginate .pagination {
            justify-content: center;
            width: 100%;
            max-width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
        }

        /* Botões de paginação compactos */
        .dataTables_wrapper .dataTables_paginate .paginate_button {
            padding: 0.25rem 0.5rem;
            margin: 0.1rem 0.05rem;
            font-size: 0.75rem;
            min-width: 2rem;
            flex-shrink: 0;
        }

            /* Botões Previous/Next sempre visíveis */
            .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
            .dataTables_wrapper .dataTables_paginate .paginate_button.next {
                padding: 0.25rem 0.4rem;
                font-size: 0.7rem;
                min-width: 2.2rem;
                flex-shrink: 0;
            }

            /* Esconder First/Last para ganhar espaço */
            .dataTables_wrapper .dataTables_paginate .paginate_button.first,
            .dataTables_wrapper .dataTables_paginate .paginate_button.last {
                display: none !important;
            }
}

/* === MOBILE EXTRA PEQUENO === */
@media (max-width: 480px) {
    /* No mobile muito pequeno, filtro e length em linha separadas */
    .dataTables_wrapper .dt-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dataTables_wrapper .dataTables_filter {
        flex: 1 1 100%;
    }

        .dataTables_wrapper .dataTables_filter input {
            max-width: 140px; /* Ainda mais pequeno */
            font-size: 0.75rem;
            padding: 0.3rem 0.5rem;
        }

    .dataTables_wrapper .dataTables_length {
        flex: 1 1 100%;
        align-self: flex-start;
    }

        .dataTables_wrapper .dataTables_length select {
            font-size: 0.75rem;
            padding: 0.3rem 0.4rem;
            min-width: 50px;
        }

    .dataTables_wrapper .dataTables_info {
        font-size: 0.7rem;
        margin: 0.2rem 0;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0.2rem 0.35rem;
        margin: 0.05rem 0.025rem;
        font-size: 0.7rem;
        min-width: 1.8rem;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
        .dataTables_wrapper .dataTables_paginate .paginate_button.next {
            padding: 0.2rem 0.3rem;
            font-size: 0.65rem;
            min-width: 2rem;
        }
}

/* === TABLET INTERMEDIÁRIO === */
@media (max-width: 768px) and (min-width: 577px) {
    .dataTables_wrapper .dataTables_filter input {
        max-width: 160px;
        font-size: 0.85rem;
    }

    .dataTables_wrapper .dataTables_length select {
        font-size: 0.85rem;
    }

    .dataTables_wrapper .dataTables_info {
        font-size: 0.8rem;
    }
}

/* === GARANTIR QUE NADA SAI DAS MARGENS === */
.dataTables_wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

    .dataTables_wrapper .dataTables_scroll {
        overflow: auto;
        max-width: 100%;
    }

/* container quadrado, centralizado */
.qr-container {
    width: min(420px, 90vw);
    aspect-ratio: 1/1; /* mantém quadrado moderno */
    margin: 16px auto;
    position: relative;
    border-radius: 16px;
    background: #f3f6fb;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    overflow: hidden;
}

/* botão ocupa todo o espaço do quadrado */
.qr-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: .5rem;
    border: 0;
    background: #eef2f7;
    cursor: pointer;
    font: 600 1.1rem/1.2 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
    color: #1f2937;
    transition: transform .08s ease, background .2s ease;
}

    .qr-start:hover {
        background: #e6ebf3;
    }

    .qr-start:active {
        transform: scale(.99);
    }

    /* ícone grande + texto */
    .qr-start i {
        font-size: 3.2rem; /* ajuste se quiser maior */
        opacity: .85;
    }

    .qr-start span {
        margin-top: .25rem;
    }

/* vídeo preenche o quadrado */
.qr-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* cobre toda a área sem distorcer muito */
    background: #000; /* fica pretinho antes de iniciar */
    border: 0;
}

/* utilitário */
.hidden {
    display: none !important;
}

/* resultado */
.qr-result {
    margin: 10px auto 0;
    max-width: 90vw;
    text-align: center;
    color: #374151;
}
