@font-face {
    font-family: 'Trebuchet MS';
    font-style: normal;
    font-weight: normal;
    src: local('Trebuchet MS'), url('./fonts/trebuc.woff') format('woff');
}

@font-face {
    font-family: 'Trebuchet MS Italic';
    font-style: normal;
    font-weight: normal;
    src: local('Trebuchet MS Italic'), url('./fonts/Trebuchet-MS-Italic.woff') format('woff');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('./fonts/roboto/roboto-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./fonts/roboto/roboto-400.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./fonts/roboto/roboto-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./fonts/roboto/roboto-700.woff2') format('woff2');
}

.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: sans-serif;
    font-size: 1.2em;
    color: #555;
}

html, body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
}

a, .btn-link {
    color: var(--sky-theme-primary-main);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8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gMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.barcode-dialog button .mud-icon-button-label {
    color: var(--sky-theme-auxiliary-main);
}

.mud-snackbar {
    background-color: var(--sky-theme-background01);
    color: var(--sky-theme-auxiliary-main);
    font-family: "Roboto";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 142.857% */
}

.mud-alert-filled-success {
    color: var(--sky-theme-action-success) !important;
}

.mud-alert-filled-error {
    color: var(--sky-theme-action-error) !important;
}

.mud-alert-filled-warning {
    color: var(--sky-theme-action-warning);
}

.movement-dialog {
    display: flex;
    width: 91%;
    flex-direction: column;
    border-radius: 8px;
    background: var(--sky-theme-background01);
    box-shadow: 0px 4px 4px 0px rgba(51, 51, 51, 0.05);
}

    .movement-dialog .mud-dialog-title {
        padding-top: 20px;
        padding-bottom: 8px;
        padding: 20px 16px 8px 24px;
    }

        .movement-dialog .mud-dialog-title .mud-button-close {
            top: 6px;
            color: #4D4D4D;
        }

    .movement-dialog .mud-dialog-actions {
        padding-right: 24px;
        padding-bottom: 20px;
    }

    .movement-dialog .mud-dialog-content {
        padding-bottom: 0px;
        padding-top: 8px;
        padding-right: 24px;
        padding-left: 24px;
    }

.mud-typography-h6 {
    color: var(--sky-theme-primary-main);
    font-family: "Trebuchet MS";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.main-layout {
    height: 100%;
    display: flex;
}

.dialog-title {
    padding: 0px !important;
}

    .dialog-title .mud-button-close {
        color: var(--sky-theme-neutral-gray01);
    }

.dialog-content {
    padding: 0px !important;
}

.dialog-body {
    padding: 20px;
    gap: 16px;
    display: flex;
    width: 328px;
}

.mud-list-item-clickable:hover {
    background-color: color-mix(in srgb, var(--sky-theme-primary-variant01) 5%, transparent) !important;
}

.mud-list-item-clickable {
    color: var(--sky-theme-neutral-gray01) !important;
    border: 0;
    cursor: pointer;
    margin: 0;
    outline: 0;
    user-select: none;
    border-radius: 0;
    vertical-align: middle;
    background-color: var(--sky-theme-background03) !important;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
}

.container-template {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mud-ripple:after {
    background-image: none;
}

.mud-icon-button:focus-visible, .mud-icon-button:active {
    background-color: unset !important;
    transition: none !important;
}


.mud-progress-linear.mud-progress-linear-color-info:not(.mud-progress-linear-buffer) .mud-progress-linear-bar {
    background-color: #2E6DA4;
}

.mud-icon-button:hover {
    background-color: transparent;
}

/* Mobile Styles */
@media (max-width: 769px) {
    .mud-snackbar-location-top-center {
        width: 96%;
    }
}

.driver-popover-next-btn {
    background-color: var(--BASE-Azul-Padro-WMS, #2E6DA4) !important;
    border-radius: 6px !important;
    text-shadow: unset !important;
    color: var(--NEUTROS-neu-branco, #FFF) !important;
    font-family: "Trebuchet MS" !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 24px !important;
}

.driver-popover-prev-btn {
    border-radius: 6px !important;
    border: 1px solid var(--NEUTROS-neu-cinza-01, #4D4D4D) !important;
    color: var(--NEUTROS-neu-cinza-01, #4D4D4D) !important;
    font-family: "Trebuchet MS" !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: 24px !important;
}

.hide-prev-button .driver-popover-prev-btn {
    display: none !important;
}

.mud-input.mud-input-outlined .mud-input-outlined-border {
    border: 1px solid var( --sky-theme-neutral-gray02);
}

.mud-input.mud-input-outlined > .mud-input-outlined-border legend {
    margin: 0 0 0 12px;
    font-size: 0.59rem;
}

.mud-input.mud-input-outlined:focus-within > .mud-input-outlined-border legend, .mud-input.mud-input-outlined:focus-within .mud-shrink > .mud-input-outlined-border legend {
    width: auto;
    padding: 0 3px;
}

a.mud-typography.mud-link.mud-primary-text.mud-link-underline-hover.mud-typography-body1.product-paper-container-info-text {
    text-decoration: none;
}

.mud-input.mud-input-underline:after {
    left: 0;
    right: 0;
    bottom: 0;
    content: "";
    position: absolute;
    transform: none;
    transition: none;
    border-bottom: none;
    pointer-events: none;
}

.mud-input.mud-input-underline:hover:not(.mud-disabled):before {
    border-bottom: none
}

.mud-input.mud-input-underline:before {
    left: 0;
    right: 0;
    bottom: 0;
    content: " ";
    position: absolute;
    transition: none;
    border-bottom: none;
    pointer-events: none;
}


/* Flow Styles */
.flow-body {
    display: flex;
    gap: 16px;
    flex-direction: column;
    height: 100%;
    padding: 16px;
    padding-bottom: calc(50px + var(--mud-appbar-height)) !important;
}

.flow-label {
    color: var(--sky-theme-secondary-variant02);
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 19px;
    white-space: nowrap;
}


/* Mobile styles */
@media (max-width: 768px) {
    .mud-appbar-flow {
        width: 100%;
        display: flex;
        z-index: var(--mud-zindex-appbar);
        box-sizing: border-box;
        flex-shrink: 0;
        flex-direction: column;
        background-color: #333333;
        padding: 22px 16px;
        justify-content: space-between;
        align-items: center;
        align-self: stretch;
        height: auto;
    }

    .flow-appbar-toolbar {
        height: 40px !important;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .flow-body {
        padding: 20px 16px;
    }

    .mud-appbar-flow {
        display: flex;
        height: 94px;
        padding: 22px 16px;
        justify-content: center;
        align-items: center;
        gap: 87px;
        flex-shrink: 0;
        align-self: stretch;
    }
}

img, svg {
    vertical-align: middle;
}

hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: .25;
}

table {
    caption-side: bottom;
    border-collapse: collapse;
}

.align-items-center {
    align-items: center;
}


ol, ul {
    padding-left: 2rem;
}

*:focus-visible {
    outline: 3px solid #0A313E !important;
    outline-offset: 1px !important;
    position: relative;
    border-radius: 5px;
}

.mud-input-root:focus-visible {
    outline: none !important;
    outline-offset: unset !important;
    position: unset !important;
}

.mud-icon-button:focus-visible, .mud-icon-button:active {
    border-radius: 5px;
}

.driver-popover * {
    outline: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .mud-treeview-hover .mud-treeview-item-content:hover {
        background-color: var(--sky-theme-neutral-gray03);
    }
}

.mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border-radius: var(--mud-default-borderradius);
    border: 2px solid var(--sky-theme-background-brand);
}

@media (hover: hover) and (pointer: fine) {
    .mud-input.mud-input-outlined:not(.mud-disabled):not(:focus-within):hover .mud-input-outlined-border {
        border-color: var(--sky-theme-neutral-gray02);
    }
}

.mud-table-hover .mud-table-container .mud-table-root .mud-table-body .mud-table-row:hover {
    background-color: var(--sky-theme-neutral-gray03);
}

/*.mud-primary-text {
    color: var(--sky-theme-auxiliary-variant) !important;
}
*/
/*.mud-primary {
    background: var(--sky-theme-background-brand) !important;
}
*/

.apply-button {
    display: flex;
    height: 40px;
    padding: 0px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    border-radius: 6px;
    background: var( --sky-theme-background-brand);
    text-transform: none;
    color: var(--sky-theme-neutral-variant);
    /* text-md/lineHeight-6/font-semibold */
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

.clear-button {
    display: flex;
    height: 40px;
    padding: 0px 16px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    text-transform: none;
    border-radius: 6px;
    border: 1px solid var(--sky-theme-neutral-gray01);
    color: var(--sky-theme-neutral-gray01);
    background: var(--sky-theme-background03);
    /* text-md/lineHeight-6/font-semibold */
    font-family: Roboto;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; /* 150% */
}

    .clear-button:hover {
        background: var(--sky-theme-background03) !important
    }

.apply-button:hover {
    background: var( --sky-theme-background-brand) !important
}

.mud-input > input.mud-input-root, div.mud-input-slot.mud-input-root {
    color: var( --sky-theme-neutral-gray02);
}

.mud-list.mud-menu-list {
    background-color: var(--sky-theme-background03);
}




.mud-button-filled.mud-button-filled-primary.sky-office-primary-button {
    background-color: var(--sky-theme-background-brand);
}

.sky-office-container-legacy {
    flex-grow: inherit;
}

/******** GRID */
@media (max-width: 600px) {
    /* Cada linha vira um grid com 2 colunas:
     - 1ª coluna: dados
     - 2ª coluna: menu de ações (última célula)  */
    .extension-table .mud-table-body .mud-table-row {
        display: grid !important; /* sobrepõe display padrão do Mud */
        grid-template-columns: 1fr auto;
        grid-auto-rows: auto; /* cria quantas linhas forem necessárias */
        width: 100%;
        padding: 0px 12px 10px;
        margin-bottom: 0px;
    }

    .mud-table-root .mud-table-body .mud-table-cell::before {
        color: var(--sky-theme-primary-main);
        padding-right: 0px;
        padding-inline-end: 0px;
    }

    /* Por padrão, TODAS as células vão para a coluna 1 (esquerda) */
    .extension-table .mud-table-body .mud-table-cell {
        grid-column: 1;
    }

        /* Célula principal (primeira): se quiser dar destaque extra */
        .extension-table .mud-table-body .mud-table-cell:first-child {
            font-weight: 600;
            margin-bottom: 4px;
        }

        /* Última célula: vira a coluna da direita (menu de contexto) */
        .extension-table .mud-table-body .mud-table-cell:last-child {
            grid-column: 2; /* 2ª coluna */
            grid-row: 1 / -1; /* ocupa da 1ª até a última linha de dados */
            justify-self: end; /* encosta na direita */
            align-self: center; /* centraliza verticalmente (ajuste se quiser top/bottom) */
            padding-right: 0px;
            padding-left: 0px;
        }

            .extension-table .mud-table-body .mud-table-cell:last-child .mud-icon-button {
                padding-left: 0px;
                padding-right: 0px;
            }

            /* Remove o float inline do menu para não brigar com o grid */
            .extension-table .mud-table-body .mud-table-cell:last-child .menu-icon {
                float: none !important;
            }

        .extension-table .mud-table-body .mud-table-cell:first-child::before {
            display: none !important;
        }

        .extension-table .mud-table-body .mud-table-cell:first-child {
            color: var(--sky-theme-primary-main);
        }


    .mud-xs-table .mud-table-row .mud-table-cell:last-child {
        border-bottom: revert;
    }

    .mud-table-row {
        border-bottom: 1px solid var(--mud-palette-table-lines);
    }

        .mud-table-row:last-child {
            border-bottom: revert;
        }
}


#backOfficeActionBarBottom {
    padding-top: 4px;
    padding-bottom: 4px;
}

.mud-table-root .mud-table-head .mud-table-cell {
    color: var(--sky-theme-neutral-variant);
}