/* Timesheet — horas lançadas (layout base: lfm-digcli-page em lfm-mud.css) */

.lfm-maint-page.lfm-digcli-page.lfm-timesh-hora-page {
    flex: 1 1 0%;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lfm-maint-page.lfm-timesh-hora-page > .lfm-digcli-topo-groupbox {
    flex-shrink: 0;
    overflow: visible;
}

.lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 1 auto;
    min-width: 0;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-integrante {
    width: 360px;
    flex: 0 1 360px;
    max-width: 480px;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo {
    width: 148px;
    flex: 0 0 148px;
    min-width: 148px;
    max-width: 148px;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo.mud-picker,
.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input-control {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input-outlined {
    overflow: hidden;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input,
.lfm-timesh-hora-page .lfm-timesh-hora-campo-integrante .mud-input {
    min-height: 36px;
    height: 36px;
    box-sizing: border-box;
    font-size: 0.8125rem !important;
    line-height: 1.4;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input-slot,
.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo input.mud-input-root,
.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input-label {
    font-size: 0.8125rem !important;
    line-height: 1.4 !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input-outlined .mud-input-root,
.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo input.mud-input-root-margin-dense {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-input-adornment {
    align-self: center;
    margin: 0;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-icon-button {
    width: 28px;
    height: 28px;
    padding: 0;
}

.lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo .mud-icon-root {
    font-size: 18px !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros .lfm-digcli-campo-criterio.mud-select .mud-input-outlined .mud-input-outlined-border,
.lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros .lfm-digcli-campo-criterio .mud-input-outlined-border,
.lfm-maint-page.lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros .lfm-digcli-campo-criterio .mud-input-outlined-border {
    border-radius: 4px !important;
    margin-left: 0 !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros .lfm-digcli-campo-criterio .mud-input-outlined {
    overflow: visible;
}

.lfm-timesh-hora-page .lfm-timesh-hora-total {
    text-transform: none;
    letter-spacing: normal;
    font-size: 12px;
    font-weight: 500;
    color: var(--mud-palette-text-secondary, #64748b);
}

.lfm-timesh-hora-page .lfm-maint-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lfm-timesh-hora-page .lfm-digcli-painel {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lfm-timesh-hora-page .lfm-digcli-painel-scroll {
    flex: 1 1 0%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lfm-timesh-hora-page .lfm-timesh-hora-lista-secao {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lfm-timesh-hora-page .lfm-timesh-hora-barra-acoes-topo {
    margin-left: 0;
    padding-bottom: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lfm-timesh-hora-page .lfm-digcli-contatos-lista {
    flex: 1 1 0%;
    min-height: 0;
    max-height: none;
    height: 100%;
}

.lfm-timesh-hora-page .lfm-digcli-contatos-scroll {
    flex: 1 1 0%;
    min-height: 0;
    overflow: auto;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela {
    table-layout: auto;
    width: 100%;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-data,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-hora,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-total,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-doc {
    text-align: center;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-data {
    width: 108px;
    white-space: nowrap;
    font-weight: 500;
    color: #0f172a;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-cliente {
    min-width: 180px;
    width: auto;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-hora {
    width: 88px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #475569;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-total {
    width: 96px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #1e3a8a;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-doc {
    width: 120px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #1e3a8a;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.lfm-row-selected,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.lfm-row-selected > td,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-selecionada,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-selecionada > td {
    background-color: #F3E7E5 !important;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr:hover:not(.lfm-row-selected):not(.linha-selecionada),
.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr:hover:not(.lfm-row-selected):not(.linha-selecionada) > td {
    background-color: #F7F5F3;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .linha-status-9 td {
    background: #fffbeb;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .linha-status-9 td:first-child {
    box-shadow: inset 4px 0 0 #d97706;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9:hover:not(.lfm-row-selected):not(.linha-selecionada) td {
    background-color: #F7F5F3;
}

.lfm-timesh-hora-page .lfm-timesh-hora-tabela .linha-status-9.lfm-row-selected td:first-child,
.lfm-timesh-hora-page .lfm-timesh-hora-tabela .linha-status-9.linha-selecionada td:first-child {
    box-shadow: inset 4px 0 0 #d97706;
}

@media (max-width: 1010px) {
    .lfm-timesh-hora-page .lfm-digcli-topo-unificado {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros {
        width: 100%;
    }

    .lfm-timesh-hora-page .lfm-timesh-hora-campo-integrante {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }

    .lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo {
        width: 148px;
        flex: 0 0 148px;
        min-width: 148px;
        max-width: 148px;
    }

    .lfm-timesh-hora-page .lfm-timesh-hora-barra-acoes-topo {
        width: 100%;
        justify-content: flex-start;
    }
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-digcli-painel-scroll,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-lista-secao,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-digcli-contatos-lista {
    min-height: 0;
    overflow: hidden;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-digcli-contatos-scroll {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela thead {
    display: none;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 2px 0 8px;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "data doc"
        "cli  cli"
        "ent  sai"
        "des  tot";
    gap: 4px 10px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-sizing: border-box;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr:has(.table-empty) {
    display: block;
    padding: 20px 12px;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela td {
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 0;
    border-bottom: none;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.35;
    background: transparent !important;
    box-shadow: none !important;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    font-size: 10px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-data {
    grid-area: data;
    text-align: left;
    font-weight: 600;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-doc {
    grid-area: doc;
    text-align: right;
    justify-self: end;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-cliente {
    grid-area: cli;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-entrada {
    grid-area: ent;
    text-align: left;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-saida {
    grid-area: sai;
    text-align: right;
    justify-self: end;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-desconto {
    grid-area: des;
    text-align: left;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .col-total {
    grid-area: tot;
    text-align: right;
    justify-self: end;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .table-empty {
    text-align: center;
    white-space: normal;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela .table-empty::before {
    content: none;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr:hover:not(.lfm-row-selected):not(.linha-selecionada) {
    background: #F7F5F3;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.lfm-row-selected,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-selecionada {
    border-color: #E4CFCB;
    background: #F3E7E5;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.lfm-row-selected td,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-selecionada td {
    background: transparent !important;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9 {
    background: #fffbeb;
    border-left: 4px solid #d97706;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9:hover:not(.lfm-row-selected):not(.linha-selecionada) {
    background: #F7F5F3;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9.lfm-row-selected,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9.linha-selecionada,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9.lfm-row-selected:hover,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-tabela tbody tr.linha-status-9.linha-selecionada:hover {
    background: #F3E7E5;
    border-color: #E4CFCB;
    border-left-color: #d97706;
}

.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-topo-filtros .mud-input-control,
.lfm-viewport-mobile .lfm-timesh-hora-page .lfm-timesh-hora-campo-periodo input {
    font-size: 16px;
}

/* Modal cadastro de horas (w_timesh_hora_cadastro_drsl) — mesmo chrome de w_digcli_cadastro / w_esadia_cadastro */
.lfm-modal-card.timesh-hora-cadastro-modal {
    width: min(980px, calc(100vw - 32px));
    max-width: min(980px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100dvh - 32px);
    min-height: 0;
    flex-shrink: 1;
}

.lfm-modal-card.timesh-hora-cadastro-modal .lfm-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.lfm-modal-card.timesh-hora-cadastro-modal .lfm-modal-footer {
    padding: 10px 16px;
    justify-content: flex-start;
}

.timesh-hora-cadastro-modal .fieldset-dados {
    margin-bottom: 0;
    padding: 14px 16px 16px;
}

.timesh-hora-cadastro-modal label {
    text-align: right;
    font-size: 12px;
    color: #334155;
    white-space: nowrap;
}

.timesh-hora-cadastro-modal input,
.timesh-hora-cadastro-modal select,
.timesh-hora-cadastro-modal textarea {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    box-sizing: border-box;
    background: #ffffff;
    min-height: 28px;
    color: #0f172a;
}

.timesh-hora-cadastro-modal input:disabled,
.timesh-hora-cadastro-modal select:disabled,
.timesh-hora-cadastro-modal textarea:disabled,
.timesh-hora-cadastro-modal input[readonly] {
    background: #f8fafc;
    color: #334155;
}

.timesh-hora-cadastro-modal input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.timesh-hora-linha {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px 10px;
    align-items: center;
    margin-bottom: 10px;
}

.timesh-hora-linha:last-child {
    margin-bottom: 0;
}

.timesh-hora-linha-tempo {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
}

.timesh-hora-lab-data {
    grid-column: 1;
    grid-row: 1;
}

.timesh-hora-lab-entrada {
    grid-column: 1;
    grid-row: 2;
}

.timesh-hora-bloco-tempo {
    --timesh-hora-campo: 60px;
    grid-column: 2;
    grid-row: 1 / 3;
    display: grid;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr) max-content minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "data data dia nlab num num num"
        "ent  slab sai dlab des aj  tot";
    align-items: center;
    column-gap: 10px;
    width: 100%;
    min-width: 0;
}

.timesh-hora-campo-data {
    grid-area: data;
}

.timesh-hora-dia {
    grid-area: dia;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-width: 2.75rem;
    height: 28px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    color: #991b1b;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    box-sizing: border-box;
}

.timesh-hora-lab-num {
    grid-area: nlab;
    justify-self: end;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
}

.timesh-hora-cadastro-modal .timesh-hora-campo-num {
    grid-area: num;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.timesh-hora-cel-entrada {
    grid-area: ent;
    justify-self: start;
}

.timesh-hora-cadastro-modal .timesh-hora-campo-data {
    width: 100%;
    min-width: 9.75rem;
    max-width: none;
}

.timesh-hora-lab-saida {
    grid-area: slab;
    justify-self: end;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
}

.timesh-hora-cel-saida {
    grid-area: sai;
    justify-self: start;
}

.timesh-hora-lab-desconto {
    grid-area: dlab;
    justify-self: end;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
}

.timesh-hora-cel-desconto {
    grid-area: des;
    justify-self: start;
}

.timesh-hora-cel-ajuste {
    grid-area: aj;
    justify-self: start;
    position: relative;
    left: -20px;
}

.timesh-hora-cel-total {
    grid-area: tot;
    justify-self: end;
}

.timesh-hora-hour-field {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.timesh-hora-hour-field label {
    flex: 0 0 auto;
    text-align: right;
    font-size: 12px;
    font-weight: 500;
}

.timesh-hora-hour-field:not(.timesh-hora-hour-ajuste) > input {
    flex: 0 0 var(--timesh-hora-campo);
    width: var(--timesh-hora-campo);
    min-width: var(--timesh-hora-campo);
    max-width: var(--timesh-hora-campo);
    text-align: center;
}

.timesh-hora-ajuste {
    display: flex;
    gap: 4px;
    min-width: 0;
    align-items: center;
}

.timesh-hora-cadastro-modal .timesh-hora-ajuste-sinal {
    width: 40px;
    flex: 0 0 40px;
    min-width: 40px;
    padding-left: 2px;
    padding-right: 2px;
    text-align: center;
}

.timesh-hora-cadastro-modal .timesh-hora-ajuste input[type="time"] {
    flex: 0 0 var(--timesh-hora-campo);
    width: var(--timesh-hora-campo);
    min-width: var(--timesh-hora-campo);
    max-width: var(--timesh-hora-campo);
    text-align: center;
}

.timesh-hora-total {
    font-weight: 700;
}

.timesh-hora-linha-desc {
    align-items: start;
}

.timesh-hora-linha-desc label {
    padding-top: 6px;
}

.timesh-hora-linha-desc textarea {
    min-height: 140px;
    resize: vertical;
}

@media (max-width: 720px) {
    .lfm-modal-card.timesh-hora-cadastro-modal {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 32px);
        min-height: 0;
        flex-shrink: 1;
    }

    .lfm-modal-card.timesh-hora-cadastro-modal .lfm-modal-body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .timesh-hora-cadastro-modal .fieldset-dados {
        min-width: 0;
        overflow: visible;
        padding: 12px 10px 12px;
    }

    .timesh-hora-cadastro-modal .timesh-hora-linha {
        --timesh-hora-lab: 5rem;
        grid-template-columns: var(--timesh-hora-lab) minmax(0, 1fr);
        min-width: 0;
    }

    .timesh-hora-cadastro-modal .timesh-hora-linha-desc textarea {
        min-height: 96px;
    }

    .timesh-hora-cadastro-modal .timesh-hora-linha-tempo {
        --timesh-hora-lab: 5rem;
        grid-template-columns: var(--timesh-hora-lab) max-content minmax(0, 1fr) max-content 60px;
        grid-template-rows: none;
        grid-auto-rows: auto;
        align-items: center;
        row-gap: 10px;
        column-gap: 8px;
        width: 100%;
        min-width: 0;
    }

    .timesh-hora-cadastro-modal .timesh-hora-bloco-tempo {
        display: contents;
    }

    .timesh-hora-cadastro-modal .timesh-hora-lab-data,
    .timesh-hora-cadastro-modal .timesh-hora-campo-data,
    .timesh-hora-cadastro-modal .timesh-hora-dia,
    .timesh-hora-cadastro-modal .timesh-hora-lab-num,
    .timesh-hora-cadastro-modal .timesh-hora-campo-num,
    .timesh-hora-cadastro-modal .timesh-hora-lab-entrada,
    .timesh-hora-cadastro-modal .timesh-hora-cel-entrada,
    .timesh-hora-cadastro-modal .timesh-hora-lab-saida,
    .timesh-hora-cadastro-modal .timesh-hora-cel-saida,
    .timesh-hora-cadastro-modal .timesh-hora-lab-desconto,
    .timesh-hora-cadastro-modal .timesh-hora-cel-desconto,
    .timesh-hora-cadastro-modal .timesh-hora-cel-ajuste,
    .timesh-hora-cadastro-modal .timesh-hora-cel-total {
        grid-area: auto;
        left: auto;
    }

    .timesh-hora-cadastro-modal .timesh-hora-lab-data { grid-column: 1; grid-row: 1; }
    .timesh-hora-cadastro-modal .timesh-hora-campo-data {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        min-width: 0;
        max-width: 10.5rem;
        flex: 0 1 auto;
        justify-self: start;
    }
    .timesh-hora-cadastro-modal .timesh-hora-dia { grid-column: 3; grid-row: 1; justify-self: start; }

    .timesh-hora-cadastro-modal .timesh-hora-lab-num { grid-column: 1; grid-row: 2; text-align: right; }
    .timesh-hora-cadastro-modal .timesh-hora-campo-num {
        grid-column: 2 / -1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        max-width: none;
        justify-self: stretch;
    }

    .timesh-hora-cadastro-modal .timesh-hora-lab-entrada { grid-column: 1; grid-row: 3; }
    .timesh-hora-cadastro-modal .timesh-hora-cel-entrada { grid-column: 2; grid-row: 3; justify-self: start; }
    .timesh-hora-cadastro-modal .timesh-hora-lab-saida { grid-column: 4; grid-row: 3; text-align: right; justify-self: end; }
    .timesh-hora-cadastro-modal .timesh-hora-cel-saida { grid-column: 5; grid-row: 3; justify-self: end; }

    .timesh-hora-cadastro-modal .timesh-hora-lab-desconto { grid-column: 1; grid-row: 4; text-align: right; }
    .timesh-hora-cadastro-modal .timesh-hora-cel-desconto { grid-column: 2; grid-row: 4; justify-self: start; }
    .timesh-hora-cadastro-modal .timesh-hora-cel-ajuste {
        grid-column: 3 / -1;
        grid-row: 4;
        display: flex;
        align-items: center;
        gap: 6px;
        width: max-content;
        justify-self: end;
        position: static;
    }

    .timesh-hora-cadastro-modal .timesh-hora-cel-ajuste > label {
        text-align: right;
        flex: 0 0 auto;
    }

    .timesh-hora-cadastro-modal .timesh-hora-cel-total {
        grid-column: 1 / 3;
        grid-row: 5;
        display: grid;
        grid-template-columns: var(--timesh-hora-lab) max-content;
        gap: 8px;
        align-items: center;
        width: 100%;
        justify-self: start;
    }

    .timesh-hora-cadastro-modal .timesh-hora-cel-total > label {
        text-align: right;
    }

    .timesh-hora-cadastro-modal .timesh-hora-cel-entrada > input,
    .timesh-hora-cadastro-modal .timesh-hora-cel-saida > input,
    .timesh-hora-cadastro-modal .timesh-hora-cel-desconto > input,
    .timesh-hora-cadastro-modal .timesh-hora-cel-total > input,
    .timesh-hora-cadastro-modal .timesh-hora-ajuste input[type="time"] {
        flex: 0 0 60px;
        width: 60px;
        min-width: 60px;
        max-width: 60px;
    }
}

.lfm-viewport-mobile .lfm-modal-card.timesh-hora-cadastro-modal {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
    flex-shrink: 1;
}

.lfm-viewport-mobile .lfm-modal-card.timesh-hora-cadastro-modal .lfm-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .fieldset-dados {
    min-width: 0;
    overflow: visible;
    padding: 12px 10px 12px;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-linha {
    --timesh-hora-lab: 5rem;
    grid-template-columns: var(--timesh-hora-lab) minmax(0, 1fr);
    min-width: 0;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-linha-desc textarea {
    min-height: 96px;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-linha-tempo {
    --timesh-hora-lab: 5rem;
    grid-template-columns: var(--timesh-hora-lab) max-content minmax(0, 1fr) max-content 60px;
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-items: center;
    row-gap: 10px;
    column-gap: 8px;
    width: 100%;
    min-width: 0;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-bloco-tempo {
    display: contents;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-data,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-campo-data,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-dia,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-num,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-campo-num,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-entrada,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-entrada,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-saida,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-saida,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-desconto,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-desconto,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-ajuste,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-total {
    grid-area: auto;
    left: auto;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-data { grid-column: 1; grid-row: 1; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-campo-data {
    grid-column: 2;
    grid-row: 1;
    width: auto;
    min-width: 0;
    max-width: 10.5rem;
    flex: 0 1 auto;
    justify-self: start;
}
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-dia { grid-column: 3; grid-row: 1; justify-self: start; }

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-num { grid-column: 1; grid-row: 2; text-align: right; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-campo-num {
    grid-column: 2 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-entrada { grid-column: 1; grid-row: 3; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-entrada { grid-column: 2; grid-row: 3; justify-self: start; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-saida { grid-column: 4; grid-row: 3; text-align: right; justify-self: end; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-saida { grid-column: 5; grid-row: 3; justify-self: end; }

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-lab-desconto { grid-column: 1; grid-row: 4; text-align: right; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-desconto { grid-column: 2; grid-row: 4; justify-self: start; }
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-ajuste {
    grid-column: 3 / -1;
    grid-row: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    justify-self: end;
    position: static;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-ajuste > label {
    text-align: right;
    flex: 0 0 auto;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-total {
    grid-column: 1 / 3;
    grid-row: 5;
    display: grid;
    grid-template-columns: var(--timesh-hora-lab) max-content;
    gap: 8px;
    align-items: center;
    width: 100%;
    justify-self: start;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-total > label {
    text-align: right;
}

.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-entrada > input,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-saida > input,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-desconto > input,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-cel-total > input,
.lfm-viewport-mobile .timesh-hora-cadastro-modal .timesh-hora-ajuste input[type="time"] {
    flex: 0 0 60px;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}
