:root {
    --font-family-sans-serif: 'Montserrat-Regular', sans-serif;
    --bs-primary: #323537;
    --bs-primary-rgb: 50, 53, 55;
    --popup-background-color: #9bbe1d;
    --popup-background-color-access: #4d6610;
    --popup-background-color-nexus: #1c74a5;
    --popup-background-color-casulo: #99cc33;
    --popup-header-text: #fff;
    --popup-content-text: #333;
    --popup-border: #ddd;

    /* Syncfusion primary color scale override (grey instead of default blue) */
    --primary-100: rgba(235, 235, 235, 1);
    --primary-200: rgba(194, 194, 195, 1);
    --primary-300: rgba(153, 154, 155, 1);
    --primary-400: rgba(112, 114, 115, 1);
    --primary-500: rgba(50, 53, 55, 1);
    --primary-600: rgba(43, 45, 47, 1);
    --primary-700: rgba(35, 37, 39, 1);
    --primary-800: rgba(20, 21, 22, 1);
    --primary-900: rgba(10, 11, 11, 1);

    /* Override Syncfusion blue scale with grey equivalents */
    --blue-100: rgba(235, 235, 235, 1);
    --blue-200: rgba(194, 194, 195, 1);
    --blue-300: rgba(153, 154, 155, 1);
    --blue-400: rgba(112, 114, 115, 1);
    --blue-500: rgba(50, 53, 55, 1);
    --blue-600: rgba(43, 45, 47, 1);
    --blue-700: rgba(35, 37, 39, 1);
    --blue-800: rgba(20, 21, 22, 1);
    --blue-900: rgba(10, 11, 11, 1);

    /* Syncfusion primary component colors */
    --color-sf-primary: rgba(50, 53, 55, 1);
    --color-sf-primary-text-color: #fff;
    --color-sf-primary-light: var(--primary-200);
    --color-sf-primary-lighter: var(--primary-100);
    --color-sf-primary-dark: var(--primary-600);
    --color-sf-primary-darker: var(--primary-800);
    --color-sf-primary-shadow: var(--primary-200);
    --color-sf-primary-bg-color: var(--color-sf-primary);
    --color-sf-primary-border-color: var(--color-sf-primary);
    --color-sf-primary-text: var(--color-sf-primary-text-color);
    --color-sf-primary-bg-color-hover: rgba(45, 48, 50, 1);
    --color-sf-primary-border-color-hover: var(--primary-600);
    --color-sf-primary-text-hover: var(--color-sf-primary-text-color);
    --color-sf-primary-bg-color-pressed: var(--primary-700);
    --color-sf-primary-border-color-pressed: var(--primary-700);
    --color-sf-primary-text-pressed: var(--color-sf-primary-text-color);
    --color-sf-primary-bg-color-focus: var(--color-sf-primary-bg-color-hover);
    --color-sf-primary-border-color-focus: var(--color-sf-primary-border-color-hover);
    --color-sf-primary-text-focus: var(--color-sf-primary-text-hover);
    --color-sf-primary-bg-color-disabled: var(--primary-200);
    --color-sf-primary-border-color-disabled: var(--color-sf-primary-bg-color-disabled);
    --color-sf-primary-text-disabled: rgba(255, 255, 255, .65);
    --color-sf-primary-outline: var(--color-sf-primary-bg-color);

    /* Syncfusion selected state */
    --color-sf-content-bg-color-selected: var(--blue-500);
}

@font-face {
    font-family: 'Montserrat-Bold';
    src: url('/fonts/MONTSERRAT-BOLD.TTF') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat-Regular';
    src: url('/fonts/MONTSERRAT-REGULAR.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/MONTSERRAT-REGULAR.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/fonts/MONTSERRAT-BOLD.TTF') format('truetype');
    font-weight: 700;
    font-style: normal;
}

*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-family: 'Montserrat-Regular', sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
}

/* Global typography for Syncfusion components */
.e-lib,
.e-control,
.e-lib *,
.e-control *,
.e-label {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 11px !important;
}

.e-dlg-header, .e-dlg-header * {
    font-size: 16px !important;
}
/* Preserve Syncfusion icon font glyphs */
.e-icons,
.e-btn-icon,
.e-input-group-icon,
.e-ddt-icon,
.e-menu-icon,
.e-search-icon {
    font-family: "e-icons" !important;
    font-size: 15px !important;
}

/* Clear-all on DropDown/MultiSelect: .e-control * sets 11px; Syncfusion theme uses ~14px for e-icons glyph */
.e-control .e-clear-icon,
.e-control .e-clear-icon::before,
.e-lib .e-clear-icon,
.e-lib .e-clear-icon::before,
.e-input-group .e-clear-icon,
.e-input-group .e-clear-icon::before,
.e-clear-icon,
.e-clear-icon::before {
    font-family: "e-icons" !important;
    font-size: 14px !important;
}

/* MultiSelect chip remove: glyph is on ::before; .e-control * forces Montserrat and breaks e-icons */
.e-control .e-multiselect .e-chips-close,
.e-control .e-multiselect .e-chips-close::before,
.e-lib .e-multiselect .e-chips-close,
.e-lib .e-multiselect .e-chips-close::before,
.e-multiselect .e-chips-collection .e-chips .e-chips-close,
.e-multiselect .e-chips-collection .e-chips .e-chips-close::before,
.e-multiselect .e-chips.e-chip-selected .e-chips-close,
.e-multiselect .e-chips.e-chip-selected .e-chips-close::before,
.e-multiselect .e-chip .e-chips-close,
.e-multiselect .e-chip .e-chips-close::before {
    font-family: "e-icons" !important;
    font-size: 15px !important;
}
.e-pager.sf-pager .e-pagercontainer .e-first, 
.e-pager.sf-pager .e-pagercontainer .e-prev, 
.e-pager.sf-pager .e-pagercontainer .e-next, 
.e-pager.sf-pager .e-pagercontainer .e-last {
    font-size: 9px !important;
}
.e-pager.sf-pager .e-numericcontainer a {
    font-size: 14px !important;
}
.e-checkbox-wrapper .e-check, 
.e-css.e-checkbox-wrapper .e-check,
.e-checkbox-wrapper .e-stop, 
.e-css.e-checkbox-wrapper .e-stop {
    font-size: 8px !important;
}

.background-dark {
    background-color: #323537;
}

.guest-layout {
    min-height: 100vh;
}

/* ===== Dashboard Layout ===== */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.dashboard-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Alinhado ao tema escuro tipo Bootstrap (#343a40) — contraste suave vs. #2b2b2b */
    background-color: #343a40;
    width: 238px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    z-index: 1050;
    transition: width 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-nav::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.dashboard-nav a {
    color: #fff;
    text-decoration: none;
}

.dashboard-nav a:hover {
    text-decoration: none;
}

.dashboard-nav header {
    min-height: 60px;
    padding: 8px 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #8cc63f;
    flex-shrink: 0;
}

.dashboard-nav header .menu-toggle {
    display: none;
    margin-right: auto;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo:focus,
.brand-logo:active,
.brand-logo:hover {
    color: #dbdbdb;
    text-decoration: none;
}

.logo-open,
.logo-closed {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
}

.logo-closed {
    display: none;
}

html.menu-compact .dashboard .logo-open {
    display: none !important;
}

html.menu-compact .dashboard .logo-closed {
    display: flex !important;
}

html.menu-compact .dashboard .dashboard-nav {
    width: 80px;
    overflow: hidden;
}

.logo-open svg,
.logo-closed svg,
.logo-open img,
.logo-closed img {
    height: 100%;
    width: auto;
}

/* Avalonia LogicPOS logo (PNG); cap width in expanded nav */
.brand-logo .logo-open img {
    max-width: 180px;
    max-height: 40px;
    object-fit: contain;
}

html.menu-compact .dashboard .brand-logo .logo-closed img {
    max-width: 52px;
    max-height: 36px;
}

/* ===== Nav List ===== */
.dashboard-nav-list {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.dashboard-nav-menu {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.dashboard-nav-menu::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.dashboard-nav-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: 0.75rem;
}

/* ===== Nav Items ===== */
.dashboard-nav-item {
    min-height: 32px;
    padding-left: 0.5rem;
    display: flex;
    align-items: center;
    letter-spacing: 0.02em;
    transition: ease-out 0.5s;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-nav-item i {
    width: 36px;
    font-size: 19px;
    margin-left: -40px;
}

/* ===== Active States ===== */
.dashboard-nav-item.active,
.dashboard-nav-dropdown-item.active,
.dashboard-nav-dropdown-toggle.active {
    color: #fff;
    font-weight: bold;
    border-left: none;
    position: relative;
    background: transparent;
}

.dashboard-nav-item.active::before,
.dashboard-nav-dropdown-item.active::before,
.dashboard-nav-dropdown-toggle.active::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: calc(100% - 13px);
    background-color: #6c757d;
    border-radius: 4px;
    z-index: -1;
}

.dashboard-nav-item.active i,
.dashboard-nav-dropdown-item.active i,
.dashboard-nav-dropdown-toggle.active i,
.dashboard-nav-item.active .menu-text,
.dashboard-nav-dropdown-item.active .menu-text,
.dashboard-nav-dropdown-toggle.active .menu-text {
    position: relative;
    z-index: 1;
}

.dashboard-nav-dropdown-toggle.active::after {
    filter: brightness(0) invert(1);
}

/* ===== Dropdown ===== */
.dashboard-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.dashboard-nav-dropdown-toggle {
    position: relative;
    cursor: pointer;
}

.dashboard-nav-dropdown-toggle:after {
    content: "";
    position: absolute;
    right: 10px;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-image: url('/images/svg/arrow_left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    color: white;
}

.dashboard-nav .dashboard-nav-dropdown-toggle:after {
    filter: brightness(0) invert(1);
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle:after {
    background-image: url('/images/svg/arrow_down.svg');
    width: 10px;
    height: 10px;
    background-size: contain;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle {
    font-weight: bold;
}

.dashboard-nav-dropdown-menu {
    display: none;
    flex-direction: column;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
    display: flex;
    background-color: #495057;
}

.dashboard-nav-dropdown-item {
    min-height: 20px;
    max-height: 20px;
    line-height: 11px;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    transition: ease-out 0.5s;
    font-size: 11px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    position: relative;
    text-decoration: none;
}

.dashboard-nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-nav-dropdown-item.is-disabled,
.dashboard-nav-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dashboard-nav-dropdown-item.is-disabled:hover,
.dashboard-nav-item.is-disabled:hover {
    background: transparent;
}

.dashboard-nav-dropdown-item.active::before {
    left: 13px;
    width: calc(100% - 21px);
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu .dashboard-nav-dropdown-item.active::before {
    z-index: 0;
}

.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu .dashboard-nav-dropdown-item.active span,
.dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu .dashboard-nav-dropdown-item.active .menu-icon {
    position: relative;
    z-index: 1;
}

.dashboard-nav-dropdown-item .menu-icon {
    width: 18px;
    height: 18px;
}

.dashboard-nav-dropdown-item .menu-text {
    font-size: 11px;
    line-height: 11px;
}

/* ===== Cascata (3.º nível: Relatórios → categoria → relatório) ===== */
.dashboard-nav-cascade {
    position: relative;
}

.dashboard-nav-cascade-toggle {
    padding-right: 1.5rem;
}

.dashboard-nav-cascade-arrow {
    position: absolute;
    right: 10px;
    width: 8px;
    height: 8px;
    background-image: url('/images/svg/arrow_left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}

.dashboard-nav-cascade.open > .dashboard-nav-cascade-toggle {
    background: rgba(255, 255, 255, 0.16);
    font-weight: bold;
}

.dashboard-nav-cascade-panel {
    display: none;
    position: fixed;
    min-width: 260px;
    max-width: 340px;
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    padding: 4px 0 6px;
    background-color: #495057;
    border-left: 3px solid #8cc63f;
    border-radius: 0 6px 6px 0;
    box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.35);
    z-index: 1060;
}

.dashboard-nav-cascade.open > .dashboard-nav-cascade-panel {
    display: block;
}

.dashboard-nav-cascade-title {
    padding: 6px 12px 4px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-nav-cascade-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
}

.dashboard-nav-cascade-item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-nav-cascade-item .menu-icon {
    width: 16px;
    height: 16px;
    margin-right: 0;
    flex-shrink: 0;
}

.dashboard-nav-cascade-item .menu-text {
    font-size: 12px;
}

.dashboard-nav-cascade-item.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dashboard-nav-cascade-item.is-generating {
    font-style: italic;
    pointer-events: none;
}

@media (max-width: 1279px) {
    .dashboard-nav-cascade-panel {
        position: static;
        min-width: 0;
        max-width: none;
        max-height: none;
        padding: 0;
        border-left: none;
        border-radius: 0;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.15);
    }

    .dashboard-nav-cascade-title {
        display: none;
    }

    .dashboard-nav-cascade-item {
        padding-left: 2rem;
    }

    .dashboard-nav-cascade.open .dashboard-nav-cascade-arrow {
        transform: rotate(-90deg);
    }
}

/* ===== Menu Icons ===== */
.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    transition: width 0.3s, height 0.3s, margin 0.3s;
}

/* PNG/SVG do menu lateral — renderização branca sobre fundo escuro */
.dashboard-nav .menu-icon {
    filter: brightness(0) invert(1);
}

.menu-icon-selected {
    display: none !important;
}

.dashboard-nav-item.active .menu-icon-selected,
.dashboard-nav-dropdown-toggle.active .menu-icon-selected,
.dashboard-nav-dropdown-item.active .menu-icon-selected {
    display: inline-block !important;
}

.dashboard-nav-item.active .menu-icon-unselected,
.dashboard-nav-dropdown-toggle.active .menu-icon-unselected,
.dashboard-nav-dropdown-item.active .menu-icon-unselected {
    display: none !important;
}

/* ===== Menu Text ===== */
.menu-text {
    font-size: 14px;
    font-weight: 400;
}

/* ===== Menu Separator ===== */
.menu-separator {
    display: flex;
    align-items: center;
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.92);
    margin-left: 1rem;
    border-radius: 3px;
    padding-left: 4px;
    margin-right: 1rem;
}

.menu-separator span {
    white-space: nowrap;
    margin-right: 10px;
}

/* ===== Menu Toggle ===== */
.menu-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #443ea2;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
    text-decoration: none;
    color: #875de5;
}

.menu-toggle i {
    font-size: 20px;
}

.menu-toggle-legacy-icon {
    width: 36px;
    height: 36px;
    display: block;
}

/* ===== Dashboard Content ===== */
.dashboard-content {
    flex-grow: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    overflow-x: hidden;
}

.dashboard-toolbar {
    min-height: 60px;
    background-color: #ffffff;
    border-bottom: 1px solid #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 27px;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1200;
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.dashboard-toolbar__left {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    gap: 4px;
}

.dashboard-toolbar__left .breadcrumb-container {
    flex: 1;
    min-width: 0;
    margin-left: 8px;
}

.dashboard-toolbar__quick-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    margin-left: 8px;
}

.dashboard-toolbar__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
}

.dashboard-toolbar__icon-btn:hover {
    background: rgba(0, 0, 0, 0.06);
}

.dashboard-toolbar__icon-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.dashboard-app {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    margin-top: 60px;
}

.dashboard-body {
    flex: 1;
    padding: 20px 24px 28px;
    background-color: #f4f4f4;
    margin-top: 60px;
}

.dashboard-body:has(.back-office-home) {
    height: calc(100vh - 60px);
    padding: 16px 24px;
    overflow: hidden;
    box-sizing: border-box;
}

.dashboard-content:has(.back-office-home) {
    min-height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

html:has(.back-office-home),
html:has(.back-office-home) body {
    overflow: hidden;
    height: 100%;
}

.page-header {
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ededed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.page-title-text {
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    color: #323537;
}

.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.page-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    width: 100%;
}

.page-body {
    flex: 1;
    min-height: 0;
}

.portal-botao {
    border-radius: 10px;
    padding: 5px 23px !important;
    text-transform: uppercase;
    font-weight: 700;
}

.portal-botao-seta {
    border-radius: 10px;
    width: 48px !important;
    min-width: 48px !important;
    padding: 5px 10px !important;
}

.portal-botao-seta img {
    width: 15px;
    height: 15px;
    vertical-align: middle;
    object-fit: contain;
}

.portal-botao .e-btn-icon {
    margin-right: 5px;
}

.portal-botao img {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
    object-fit: contain;
    flex-shrink: 0;
}

/* Syncfusion outline-primary uses filled background on :focus:not(:focus-visible), :active, and .e-active; keep true outline for header toggles */
.portal-botao.e-outline.e-primary:focus:not(:focus-visible),
.portal-botao.e-outline.e-primary:active,
.portal-botao.e-outline.e-primary.e-active {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--primary-500, #323537) !important;
    border-color: var(--primary-500, #323537) !important;
    box-shadow: none !important;
}

/* Inactive toggle: readable label only — do not override theme background or borders */
.portal-botao.portal_botao_secondary,
.portal-botao.portal_botao_secondary:hover,
.portal-botao.portal_botao_secondary:focus,
.portal-botao.portal_botao_secondary:focus:not(:focus-visible),
.portal-botao.portal_botao_secondary:focus-visible,
.portal-botao.portal_botao_secondary:active,
.portal-botao.portal_botao_secondary.e-active,
.portal-botao.portal_botao_secondary:disabled,
.portal-botao.portal_botao_secondary.e-disabled {
    color: #323537 !important;
}

.portal-botao.portal_botao_secondary .e-btn-icon {
    color: #323537 !important;
}

.icon {
    display: inline-block;
    width: 15px !important;
    height: 15px !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.icon_pdf {
    background-image: url('/images/svg/buttons/botao_pdf.svg');
}

.icon_xlsx {
    background-image: url('/images/svg/buttons/botao_xlsx.svg');
}

.icon_activate {
    background-image: url('/images/svg/buttons/botao_ativar.svg');
}

.icon_deactivate {
    background-image: url('/images/svg/buttons/botao_inativar.svg');
}

.icon_edit {
    background-image: url('/images/svg/buttons/botao_editar_b.svg');
}

.icon_edit_white {
    background-image: url('/images/svg/buttons/botao_editar_w.svg');
}

.icon_view_details {
    background-image: url('/images/svg/buttons/botao_ver_detalhes_b.svg');
}

.icon_group_toggle {
    background-image: url('/images/svg/buttons/botao_link_b.svg');
}

.icon_delete_selected {
    background-image: url('/images/svg/buttons/botao_eliminar_w.svg');
}

.icon_new {
    background-image: url('/images/svg/buttons/botao_novo_b.svg');
}
.icon_new_white {
    background-image: url('/images/svg/buttons/botao_novo_w.svg');
}

.icon_delete_row {
    background-image: url('/images/svg/buttons/botao_eliminar_b.svg');
}

.icon_save {
    background-image: url('/images/svg/buttons/botao_guardar_b.svg');
}

.icon_cancel {
    background-image: url('/images/svg/buttons/botao_cancelar_b.svg');
}

.e-treegrid .e-toolbar-item .e-btn-icon.icon {
    width: 24px !important;
}

.icon_return_card {
    background-image: url('/images/svg/buttons/botao_repor.svg');
}

.icon_download_row {
    background-image: url('/images/svg/buttons/botao_download_b.svg');
}

.icon_download_selected {
    background-image: url('/images/svg/buttons/botao_download_b.svg');
}

.icon_edit_mode_inline {
    background-image: url('/images/svg/buttons/botao_editar_b.svg');
}

.icon_edit_mode_dialog {
    background-image: url('/images/svg/buttons/botao_ver_detalhes_b.svg');
}

.icon_mobile_import_movements {
    background-image: url('/images/svg/buttons/botao_telemovel.svg');
}

.icon_copy {
    background-image: url('/images/svg/buttons/botao_copiar_b.svg');
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    align-items: flex-end;
}

/* Assign schedules / assign groups: force a full-width filter row inside the page filter bar */
.filter_assign_row_full {
    flex: 1 1 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Wider department field when shown beside entity radios on the same row */
.filter_item_assign_grow {
    flex: 1 1 320px;
    max-width: 50%;
    min-width: 220px;
}

/* Return card: card field fixed width; options row uses remaining space (overrides .filter-item max-width) */
.filter_return_card_number.filter-item {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 280px;
    width: 220px;
}

.filter_return_card_options.filter-item {
    flex: 1 1 360px;
    min-width: 0;
    max-width: none;
}

.filter_return_card_sync_row.sync_checkboxes {
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 0;
}

.filter_return_card_options .employee_list_checkbox_label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    margin-bottom: 0;
    width: auto;
}

.report-container {
    width: 100%;
    min-height: 700px;
    box-sizing: border-box;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 20%;
    max-width: 25%;
}

.filter-item label {
    margin-bottom: 5px;
    font-weight: 500;
}

.tree_item {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
    width: 100%;
    column-gap: 8px;
    box-sizing: border-box;
}

.tree_item_name {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tree_item_number {
    text-align: right;
    white-space: nowrap;
}

/* Syncfusion DropDownTree: use the same string for ID and CssClass so EnablePersistence and styling stay aligned.
   department_tree_* = departments-only tree; employees_tree_* = departments + employees tree. */
.e-ddt.e-popup.department_tree_multiple .e-text-content,
.e-ddt.e-popup.department_tree_single .e-text-content,
.e-ddt.e-popup.employees_tree_multiple .e-text-content,
.e-ddt.e-popup.employees_tree_single .e-text-content {
    display: grid !important;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    width: 100% !important;
    box-sizing: border-box;
}

.e-ddt.e-popup.department_tree_multiple .e-list-text,
.e-ddt.e-popup.department_tree_single .e-list-text,
.e-ddt.e-popup.employees_tree_multiple .e-list-text,
.e-ddt.e-popup.employees_tree_single .e-list-text {
    display: block !important;
    grid-column: 3;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.grid_employee_photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.device_list_type_thumb_cell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.device_list_type_thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
}

.grid_action_icon_button {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.grid_action_icon_button:disabled {
    opacity: 0.45;
    cursor: default;
}

.grid_action_icon_button .icon {
    width: 16px !important;
    height: 16px !important;
}

.grid_action_icon_button .e-btn-icon.icon {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    min-height: 16px !important;
    margin: 0 !important;
    display: inline-block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
}

.grid_action_icon_button .e-btn-icon.icon::before {
    content: none !important;
}

/* Fallback for Syncfusion IconCss when classes are applied on the button element */
.grid_action_icon_button.icon_activate {
    background-image: url('/images/svg/buttons/botao_ativar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_deactivate {
    background-image: url('/images/svg/buttons/botao_inativar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_edit {
    background-image: url('/images/svg/buttons/botao_editar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_pdf {
    background-image: url('/images/svg/buttons/botao_pdf.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_view_details {
    background-image: url('/images/svg/buttons/botao_ver_detalhes_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_edit_row {
    background-image: url('/images/svg/buttons/botao_editar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_delete_row {
    background-image: url('/images/svg/buttons/botao_eliminar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_save_row {
    background-image: url('/images/svg/buttons/botao_guardar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_cancel_row {
    background-image: url('/images/svg/buttons/botao_cancelar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_delete_selected {
    background-image: url('/images/svg/buttons/botao_eliminar_w.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_download_row {
    background-image: url('/images/svg/buttons/botao_download_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_copy_row {
    background-image: url('/images/svg/buttons/botao_copiar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_device_import_employees {
    background-image: url('/Content/Images/png/sync_employees_device.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.grid_action_icon_button.icon_device_import_movements {
    background-image: url('/Content/Images/png/sync_movements.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.grid_action_icon_button.icon_device_restart {
    background-image: url('/images/svg/buttons/botao_repor.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.grid-actions-left {
    display: flex;
    gap: 10px;
    align-items: center;
}

.grid-actions-right {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.export-button {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

.toolbar_export_icon {
    display: inline-block;
    width: 30px !important;
    height: 30px !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    font-size: 0 !important;
    line-height: 0 !important;
}

.toolbar_export_icon::before {
    content: "" !important;
}

.portal_grid_default .e-toolbar .e-toolbar-search .e-searchclear.e-search-icon.e-icons.e-input-group-icon,
.portal_grid_default .e-toolbar .e-toolbar-search .e-search-icon.e-icons.e-input-group-icon,
.e-grid .e-toolbar .e-toolbar-search .e-searchclear.e-search-icon.e-icons.e-input-group-icon,
.e-grid .e-toolbar .e-toolbar-search .e-search-icon.e-icons.e-input-group-icon {
    width: 32px !important;
    min-width: 32px !important;
    height: 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
}

.portal_grid_default .e-toolbar .e-toolbar-search .e-searchclear.e-search-icon.e-icons.e-input-group-icon::before,
.portal_grid_default .e-toolbar .e-toolbar-search .e-search-icon.e-icons.e-input-group-icon::before,
.e-grid .e-toolbar .e-toolbar-search .e-searchclear.e-search-icon.e-icons.e-input-group-icon::before,
.e-grid .e-toolbar .e-toolbar-search .e-search-icon.e-icons.e-input-group-icon::before {
    content: "" !important;
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    background-image: url('/images/svg/buttons/botao_pesquisar_b.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 16px 16px !important;
}

.export_icon_button img {
    width: 32px;
    height: 32px;
}

.export_icon_button .icon {
    width: 32px !important;
    height: 32px !important;
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
        padding-left: 10px;
        padding-right: 10px;
    }

    .filter-item {
        min-width: 100%;
    }

    .grid-actions-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== Custom Scrollbar ===== */
.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 2px;
    width: 8px;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1000;
    cursor: pointer;
    pointer-events: none;
    visibility: collapse !important;
}

.custom-scrollbar.visible {
    opacity: 0.5;
    pointer-events: auto;
}

.dashboard-nav:hover .custom-scrollbar.visible {
    opacity: 0.8;
    visibility: visible !important;
}

.scrollbar-thumb {
    position: absolute;
    width: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    cursor: pointer;
    right: 1px;
    min-height: 30px;
    transition: background-color 0.3s, width 0.3s;
    pointer-events: auto;
}

.scrollbar-thumb:hover,
.scrollbar-thumb:active {
    background-color: rgba(255, 255, 255, 0.9);
    width: 8px;
    right: 0;
}

/* ===== Utility ===== */
.no-select {
    user-select: none;
}

.nav-item-divider {
    height: 1px;
    margin: 1rem auto;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.18);
    width: 95%;
}

.nav_front_office {
    padding: 0 0.5rem;
}

.nav_front_office__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 32px;
    padding: 0.35rem 0.5rem;
    color: #ffffff;
    text-decoration: none;
    box-sizing: border-box;
    border-radius: 4px;
    transition: background 0.15s ease;
}

.nav_front_office__btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav_front_office__icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.nav_front_office__text {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.dashboard-nav-footer__center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.dashboard-nav-footer__center .nav_lang {
    justify-content: center;
    padding-left: 0;
}

.dashboard-nav-footer__center .nav_app_info {
    align-items: center;
    padding-left: 0;
}

.dashboard-nav-footer__center .nav_app_info > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dashboard-nav-footer__center .nav_app_info_icon_company {
    margin-left: auto;
    margin-right: auto;
}

.dashboard-nav-footer__center .copyright_container {
    display: block;
    width: 100%;
}

.nav_lang {
    display: flex;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.lang_link img {
    width: 23px;
    height: auto;
    opacity: 0.55;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.lang_link:hover img {
    opacity: 0.9;
    transform: scale(1.08);
}

.lang_link--active img {
    opacity: 1;
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
    border-radius: 2px;
}

.nav_app_info {
    color: #ffffff;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    padding-left: 0.5rem;
}

.nav_app_info span {
    cursor: pointer;
}

.nav_app_info_icon_about {
    width: 25px;
    height: 25px;
    vertical-align: middle;
    margin-right: 5px;
}

.nav_app_info_icon_company {
    display: block;
    width: auto;
    max-width: 140px;
    max-height: 36px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.35rem;
}

.label_about {
    color: #ffffff;
    font-size: 12px;
    font-family: 'Montserrat-Regular', sans-serif;
}

.label_copyright {
    color: #ffffff;
    font-size: 10px;
    font-family: 'Montserrat-Regular', sans-serif;
}

.copyright_container {
    margin-top: 10px;
}

.brand_app_link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: opacity 0.2s ease;
}

.brand_app_link:hover {
    text-decoration: none;
    color: #ffffff;
    opacity: 0.8;
}

.brand_app_logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.brand_app_text {
    font-size: 11px;
    font-family: 'Montserrat-Regular', sans-serif;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

/* ===== Compact Mode ===== */
.dashboard-compact .dashboard-nav {
    width: 80px;
    overflow: hidden;
}

.dashboard-compact .logo-open {
    display: none !important;
}

.dashboard-compact .logo-closed {
    display: flex !important;
}

.dashboard-compact .dashboard-nav-item {
    text-align: center;
    justify-content: center;
    padding-left: 0;
}

.dashboard-compact .dashboard-nav-item i {
    margin-left: 0;
    width: 100%;
    font-size: 22px;
    text-align: center;
}

.dashboard-compact .dashboard-nav-item span {
    display: none !important;
}

.dashboard-compact .menu-icon {
    margin-right: 0;
    margin-left: 0;
    display: block;
    margin: 0 auto;
    width: 28px;
    height: 28px;
    transition: width 0.3s, height 0.3s, margin 0.3s;
}

.dashboard-compact .dashboard-nav-dropdown-menu {
    display: none !important;
}

.dashboard-compact .dashboard-nav-dropdown-toggle::after {
    display: none !important;
}

.dashboard-compact .dashboard-nav-footer,
.dashboard-compact .nav-item-divider,
.dashboard-compact .nav_front_office,
.dashboard-compact .dashboard-nav-footer__center,
.dashboard-compact .nav_lang,
.dashboard-compact .nav_app_info {
    display: none !important;
}

.dashboard-compact .dashboard-nav-item.active,
.dashboard-compact .dashboard-nav-dropdown-toggle.active {
    color: #fff;
}

.dashboard-compact .dashboard-nav-item.active .menu-icon,
.dashboard-compact .dashboard-nav-dropdown-toggle.active .menu-icon {
    filter: brightness(0) invert(1);
}

.dashboard-compact .dashboard-nav-item.active::before,
.dashboard-compact .dashboard-nav-dropdown-toggle.active::before {
    width: 50px;
    height: 40px;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

/* ===== Compact Hover (page loaded) ===== */
html.page-loaded .dashboard-compact .dashboard-nav:hover {
    width: 238px !important;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    position: fixed;
    /* Above .dashboard-toolbar (z-index 1000 !important in stacking block); otherwise logo/header clip under the white bar */
    z-index: 1300 !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .logo-open {
    display: flex !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .logo-closed {
    display: none !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item {
    text-align: left;
    justify-content: flex-start;
    padding-left: 0.5rem;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item span {
    display: inline-block !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    margin-left: 0;
    display: inline-block;
    transition: width 0.3s, height 0.3s, margin 0.3s;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle::after {
    display: inline-block !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-footer {
    display: block !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_front_office,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-footer__center,
html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_lang,
html.page-loaded .dashboard-compact .dashboard-nav:hover .nav_app_info {
    display: block !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-footer__center .nav_lang,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-footer__center .nav_app_info {
    display: flex !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .nav-item-divider {
    display: block !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown.show > .dashboard-nav-dropdown-menu {
    display: flex !important;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown.show {
    background: rgba(255, 255, 255, 0.06);
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle:after {
    content: "";
    position: absolute;
    right: 10px;
    display: inline-block !important;
    width: 10px;
    height: 10px;
    background-image: url('/images/svg/arrow_left.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: none;
    color: white;
    filter: brightness(0) invert(1);
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown.show > .dashboard-nav-dropdown-toggle:after {
    background-image: url('/images/svg/arrow_down.svg');
    width: 10px;
    height: 10px;
    background-size: contain;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item.active,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-item.active,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle.active {
    background: transparent;
    color: #fff;
    font-weight: bold;
    border-left: none;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item.active .menu-icon,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-item.active .menu-icon,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle.active .menu-icon {
    filter: brightness(0) invert(1);
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-item.active::before,
html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle.active::before {
    width: calc(100% - 16px);
    height: 28px;
    left: 8px;
    transform: translateY(-50%);
    border-radius: 4px;
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-item.active::before {
    left: 16px;
    width: calc(100% - 24px);
}

html.page-loaded .dashboard-compact .dashboard-nav:hover .dashboard-nav-dropdown-toggle.active {
    background: transparent;
    font-weight: bold;
    border-left: none;
}

/* ===== Responsive ===== */
@media (min-width: 1280px) {
    .dashboard-app {
        margin-left: 238px;
    }

    .dashboard-content {
        margin-left: 238px;
    }

    .dashboard-compact .dashboard-app {
        margin-left: 80px;
    }

    .dashboard-compact .dashboard-content {
        margin-left: 80px;
    }

    .dashboard-toolbar {
        left: 238px;
    }

    .dashboard-compact .dashboard-toolbar {
        left: 80px;
    }

    .dashboard-compact .dashboard-nav {
        width: 80px !important;
        overflow: hidden;
        z-index: 1500;
    }

    /*
     * Menu flexível (compacto): ao hover o nav passa a 238px (fixed) mas o conteúdo ficava com margem 80px —
     * o sub-menu tapava o formulário/login. Empurra toolbar + área principal para alinhar com a largura expandida.
     */
    html.page-loaded .dashboard-compact > nav.dashboard-nav:hover ~ .dashboard-content {
        margin-left: 238px !important;
        transition: margin-left 0.3s ease;
    }

    html.page-loaded .dashboard-compact > nav.dashboard-nav:hover ~ .dashboard-content > .dashboard-toolbar {
        left: 238px !important;
        transition: left 0.3s ease;
    }
}

@media (max-width: 1279px) {
    .dashboard-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1070;
    }

    .dashboard-nav.mobile-show {
        display: block;
        z-index: 1500;
    }

    .dashboard-nav header .menu-toggle {
        display: flex;
    }

    .dashboard-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-body {
        padding: 15px 0;
    }
}

/* ========== Toolbar ========== */
.dashboard-toolbar {
    display: flex;
    align-items: center;
}

.breadcrumb-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
    flex-grow: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    background-color: transparent;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: #515151;
    font-size: 12px;
    white-space: nowrap;
}

.breadcrumb-item a {
    color: #323537;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #323537;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #515151;
}

.breadcrumb-item + .breadcrumb-item {
    padding-left: 8px;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding-right: 8px;
    color: #6c757d;
    content: ">";
}

.breadcrumb-item:empty {
    display: none;
}

@media (max-width: 768px) {
    .breadcrumb-container {
        display: none;
    }
}

/* ========== Header user info ========== */
.header_user_info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    white-space: nowrap;
}

.dashboard-compact .header_user_info {
    margin-left: auto;
}

.employee_name {
    font-size: 1rem;
    color: #515151;
}

.employee_client_id {
    font-size: 1rem;
    color: #909192;
}

.header_separator {
    height: 42px;
    width: 2px;
    background-color: #d8d8d8;
    margin: 0 5px;
}

@media (max-width: 1279px) {
    .employee_name {
        display: none;
    }
}

/* ========== Chat / AI / Movements icons ========== */
.chat_notification {
    position: relative;
    display: inline-block;
}

.chat_link {
    display: inline-block;
    position: relative;
}

.chat_link img {
    width: 40px;
    vertical-align: middle;
}

.chat_ai {
    position: relative;
    display: inline-block;
}

.chat_ai_link {
    display: inline-block;
    position: relative;
}

.chat_ai_link img {
    width: 40px;
    vertical-align: middle;
}

.movimentos {
    position: relative;
    display: inline-block;
}

.movimentos_link {
    display: inline-block;
    position: relative;
}

.movimentos_link img {
    width: 30px;
    vertical-align: middle;
}

/* ========== Notification badges ========== */
.notification-badge {
    position: absolute;
    top: -5px;
    left: -9px;
    background-color: #9bbe1d;
    color: white;
    border-radius: 50%;
    padding: 0;
    min-width: 18px;
    height: 18px;
    font-size: 9px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    text-decoration: none;
}

.dialog_toolbar {
    width: 100%;
    padding: 2px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.1;
}

.about_panel {
    width: 100%;
    background: #ededed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    overflow: auto;
    max-height: min(85vh, 900px);
}

.about_card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 12px;
    width: 95%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.about_card_header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
}

.about_logo img {
    height: 38px;
    width: auto;
}

.about_title {
    font-size: 20px;
    color: #323537;
    text-align: right;
    font-family: "Montserrat-Bold", sans-serif;
}

.about_card_body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-top: 8px;
}

.about_stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.about_stats_col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
}

.about_stats_col:nth-child(1) {
    flex: 0.12;
}

.about_stats_col:nth-child(2) {
    flex: 0.30;
}

.about_stats_col:nth-child(3) {
    flex: 0.58;
}

.about_stats_col:not(:last-child) {
    border-right: 4px solid #ededed;
}

.about_stats_value {
    font-size: 13px !important;
    color: #323537;
    font-family: "Montserrat-Bold", sans-serif !important;
}

.about_stats_label {
    font-size: 11px;
    color: #777;
    margin-top: 5px;
}

.about_sms_icon_row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    width: 100%;
}

.about_sms_icon_img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.about_sms_data_row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
}

.about_sms_data_col {
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: flex-start;
}

.about_modules_container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px 0;
}

.about_module_item {
    display: flex;
    flex-direction: row;
    width: 31%;
    align-items: center;
}

.about_module_item_margin {
    margin-right: 2%;
}

.about_module_icon_col {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.about_module_icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about_module_icon_dashboardbi {
    background-image: url("/images/svg/menu/menu_dashboard_avancado_b.svg");
}

.about_module_icon_telework {
    background-image: url("/images/svg/menu/menu_teletrabalho_b.svg");
}

.about_module_icon_tasks {
    background-image: url("/images/svg/menu/menu_gestao_tarefas_b.svg");
}

.about_module_icon_cloudservice {
    background-image: url("/images/svg/about/icon_sobre_accesstrack.svg");
}

.about_module_icon_automatic_scales {
    background-image: url("/images/svg/menu/menu_consultar_escala_sequencial_b.svg");
}

.about_module_icon_api {
    background-image: url("/images/svg/buttons/botao_api.svg");
}

.about_module_icon_visitors {
    background-image: url("/images/svg/menu/menu_visitantes_b.svg");
}

.about_module_icon_sport {
    background-image: url("/images/svg/menu/menu_desporto_b.svg");
}

.about_module_icon_peoplecount {
    background-image: url("/images/svg/menu/menu_contagem_por_zona_b.svg");
}

.about_module_icon_cloudservice_time {
    background-image: url("/images/svg/about/icon_timetrack_r.svg");
}

.about_module_icon_electronic_invoicing {
    background-image: url("/Assets/Images/Icons/Accordion/pos_backoffice_agt.png");
}

.about_module_icon_stock {
    background-image: url("/Assets/Images/Icons/Accordion/pos_backoffice_artigos.png");
}

.about_module_text_col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about_module_label {
    font-size: 11px;
    color: #323537;
}

.about_module_status {
    font-size: 10px;
    border-radius: 4px;
    padding: 1px 8px;
    text-transform: lowercase;
    display: block;
    width: 100%;
    text-align: right;
}

.about_status_active {
    background: #93c949;
    color: #fff;
}

.about_status_inactive {
    background: #ef3f32;
    color: #fff;
}

.about_links {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 95%;
    margin-bottom: 6px;
    padding: 15px 0;
}
.about_link_text {
    font-size: 15px !important;
    font-family: "Montserrat-Bold", sans-serif !important;
}
.about_link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    font-size: 15px !important;
    color: #323537;
    text-decoration: none;
    width: 33.33%;
    justify-content: flex-start;
    font-family: "Montserrat-Bold", sans-serif !important;
}

.about_link:hover {
    color: #9bbe1d;
}

.about_link_icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.about_link_icon_web {
    background-image: url("/images/svg/about/icon_sobre_site.svg");
}

.about_link_icon_helpdesk {
    background-image: url("/images/svg/about/icon_sobre_helpdesk.svg");
}

.about_footer {
    margin-top: 0;
    padding: 10px 0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    width: 95%;
}

.about_footer_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: #323537;
    width: 50%;
}

.about_footer_version {
    font-size: 15px !important;
    font-family: "Montserrat-Bold", sans-serif !important;
}

.about_footer_hardware,
.about_footer_copyright {
    font-size: 15px !important;
    color: #777;
}

.about_footer_spacer {
    margin-top: 6px;
}

.about_footer_apps {
    display: flex;
    width: 24%;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.about_store_badge {
    display: block;
    width: 100%;
    line-height: 0;
}

.about_store_badge img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 991px) {
    .about_module_item {
        width: 48%;
    }

    .about_module_item_margin {
        margin-right: 0;
    }

    .about_links {
        flex-direction: column;
        gap: 10px;
    }

    .about_link {
        width: 100%;
    }

    .about_footer {
        flex-direction: column;
        gap: 8px;
    }

    .about_footer_info,
    .about_footer_apps {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .about_stats {
        flex-direction: column;
        gap: 14px;
    }

    .about_stats_col:nth-child(1),
    .about_stats_col:nth-child(2),
    .about_stats_col:nth-child(3) {
        flex: 1;
        width: 100%;
    }

    .about_stats_col:not(:last-child) {
        border-right: 0;
        border-bottom: 2px solid #ededed;
        padding-bottom: 10px;
    }

    .about_module_item {
        width: 100%;
    }
}

.mailbox-badge {
    cursor: pointer;
}

/* ========== User dropdown ========== */
.user_dropdown {
    position: relative;
}

.user_link {
    display: flex;
    align-items: center;
    position: relative;
}

.user_link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #909192;
}

.user_dropdown_menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    list-style: none;
    padding: 10px 0;
    min-width: 150px;
    z-index: 999999;
}

.user_dropdown_menu.show {
    display: block;
}

.user_dropdown_menu li {
    padding: 8px 15px;
}

.user_dropdown_menu li a {
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 1rem;
}

.user_dropdown_menu li a:hover {
    background: #f5f5f5;
}

.user_dropdown_menu li hr {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #ccc;
}

/* ========== Blink Effect for minimized conversation headers ========== */
@keyframes chatHeaderBlink {
  0%, 100% { background-color:#ededed; }
  50% { background-color:#323537; color:#ffffff; }
}
.chat_conv_header.blinking {
  animation: chatHeaderBlink 1s linear 3;
}
.chat_conv_item.blinking {
  animation: chatHeaderBlink 1s linear 3;
}

/* ========== Chat badge ========== */
.chat-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #9bbe1d;
    color: white;
    font-size: 10px;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-weight: bold;
}

/* ========== Confirm button disabled state ========== */
.emp_confirm_btn:disabled{
    background-color:#bfbfbf;
    cursor:not-allowed;
    color:#ffffff;
    opacity:0.7;
}

/* ========== Chat message bar (collapsed) – bottom right ========== */
.chat_bar {
    position: fixed;
    bottom: 0;
    right: 27px;
    width: 280px;
    height: 42px;
    background-color: #ededed;
    border: 1px solid #d0d0d0;
    border-top-left-radius: 4px;
    display: flex;
    flex-direction: column;
    padding: 0;
    z-index: 1100;
    cursor: pointer;
}

.chat_bar_header {
    height: 42px;
    background-color: #ededed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.chat_bar_content {
    display: none;
    background-color: #fff;
    width: 100%;
    flex: 1;
    overflow-y: auto;
    border-top: 1px solid #d0d0d0;
}

.chat_bar.expanded {
    height: 80vh;
}

.chat_conv_item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.chat_conv_item:hover {
    background-color: #f7f7f7;
}

.chat_conv_item .conv_photo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #909192;
    margin-right: 8px;
}

.chat_conv_item .conv_info {
    flex: 1;
    min-width: 0;
}

.conv_name {
    font-family: 'Montserrat-Bold', sans-serif;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv_preview {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv_meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-left: 6px;
    gap: 4px;
}

.conv_date {
    font-size: 10px;
    color: #999;
}

.conv_unread {
    background-color: #9bbe1d;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* ========== Header (minimized bar) layout ========== */
.chat_bar_left {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.chat_bar_left img.rounded-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #909192;
}

.chat_bar_actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat_bar_actions img {
    width: 16px;
    height: 16px;
}

.chat_bar_left .chat_notification_badge {
    top: -6px;
    left: 18px;
}

.chat_notification_badge {
    position: absolute;
    background-color: #9bbe1d;
    color: #fff;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 18px;
    box-shadow: 0 0 0 2px #fff;
    pointer-events: none;
}

/* ========== Employee modal ========== */
.chat_emp_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.chat_emp_inner {
    background: #fff;
    width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.chat_emp_item {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Montserrat-Regular', sans-serif;
}

.chat_emp_item:hover { background:#f7f7f7; }
.chat_emp_item.emp_selected{ background:#ededed; }

.emp_modal_footer{
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px 10px;
    border-top:1px solid #f0f0f0;
}

.emp_group_name_input{
    flex:1;
    padding:6px 8px;
    border:1px solid #ddd;
    border-radius:4px;
    font-family:'Montserrat-Regular', sans-serif;
    font-size:12px;
}

.chat_emp_item .emp_photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ededed;
    margin-right: 8px;
}

.chat_emp_item .emp_name { font-size:14px; font-family:'Montserrat-Bold', sans-serif; }
.chat_emp_item .emp_dept { font-size:12px; color:#666; font-family:'Montserrat-Regular', sans-serif; }

.emp_search_input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: none;
    border-bottom:1px solid #ededed;
    outline: none;
    font-family: 'Montserrat-Regular';
    background-color: #ededed;
}

.emp_list_container {
    max-height: 70vh;
    overflow-y: auto;
}

/* ========== Conversation window ========== */
.chat_conv_window {
    position: fixed;
    bottom: 0;
    width: 320px;
    height: 42px;
    background: #ededed;
    border: 1px solid #d0d0d0;
    border-top-left-radius:4px;
    display: flex;
    flex-direction: column;
    z-index: 1100;
}

.chat_conv_window.expanded {
    height: 60vh;
}

.chat_conv_header {
    height: 42px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap:8px;
}

.chat_conv_photo {
    width:32px;
    height:32px;
    border-radius:50%;
    border:1px solid #909192;
}

.chat_conv_name {
    font-family:'Montserrat-Bold', sans-serif;
    font-size:12px;
    flex:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.chat_conv_close{
    width:16px;
    height:16px;
    cursor:pointer;
    filter:brightness(0.5);
    transition:filter 0.2s;
}
.chat_conv_close:hover{ filter:brightness(0); }

.chat_conv_body{
    flex:1;
    background:#fff;
    overflow-y:auto;
    border-top:1px solid #d0d0d0;
    padding:8px;
    font-family:'Montserrat-Regular', sans-serif;
    font-size:12px;
    color:#333;
}

/* ========== Conversation window footer (input bar) ========== */
.chat_conv_footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px 8px;
    border-top: 1px solid #d0d0d0;
    background: #ededed;
}

.chat_attach,
.chat_send {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.chat_input {
    flex: 1;
    resize: none;
    border: none;
    outline: none;
    font-family: 'Montserrat-Regular', sans-serif;
    font-size: 12px;
    min-height: 32px;
    max-height: 120px;
    overflow-y: auto;
    padding: 4px 6px;
    border-radius: 4px;
    background: #fff;
}

/* ========== Chat messages ========== */
.msg_item {
    display: flex;
    margin-bottom: 6px;
    align-items: flex-end;
}

.msg_theirs { justify-content: flex-start; }
.msg_mine { justify-content: flex-end; }

.msg_photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid #909192;
    margin: 0 4px;
}

.msg_bubble {
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.3em;
    position: relative;
}

.msg_theirs .msg_bubble {
    background: #f2f2f2;
    color: #333;
    border-top-left-radius: 0;
}

.msg_mine .msg_bubble {
    background: #323537;
    color: #fff;
    border-top-right-radius: 0;
}

.msg_text { white-space: pre-wrap; }

.msg_time {
    font-size: 10px;
    opacity: 0.7;
    text-align: right;
    margin-top: 2px;
}

.chat_load_more{
    text-align:center;
    cursor:pointer;
    color:#323537;
    font-size:12px;
    padding:4px 0;
}
.chat_load_more:hover{ text-decoration:underline; }

.chat_pending_attachments{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:4px;
    width:100%;
}
.chat_attach_chip{
    background:#f2f2f2;
    border:1px solid #ccc;
    border-radius:4px;
    padding:2px 6px;
    font-size:11px;
    display:flex;
    align-items:center;
    gap:4px;
}
.chat_attach_chip .chip_remove{
    cursor:pointer;
    font-weight:bold;
}
.chat_attach_chip .chip_remove:hover{ color:#9bbe1d; }

.chat_footer_row{
    display:flex;
    align-items:center;
    gap:6px;
}

.chat_send.disabled{
    opacity:0.3;
    pointer-events:none;
}

/* Status icon for sent/read messages */
.chat_message_status {
    width: 12px;
    height: 12px;
    margin-left: 4px;
    vertical-align: middle;
}

/* Wrapper holding bubble and optional attachments */
.msg_content{
    display:flex;
    flex-direction:column;
}
.msg_mine .msg_content{ align-items:flex-end; }
.msg_theirs .msg_content{ align-items:flex-start; }

/* Attachments list below bubble */
.msg_attachments{
    margin-top:4px;
    font-size:11px;
    word-break:break-all;
}
.msg_attachments a{
    color:#0066cc;
    text-decoration:underline;
}
.msg_attachments a:hover{ text-decoration:none; }

.chat_conv_manage{
    width:18px;
    height:18px;
    cursor:pointer;
    filter:brightness(0.5);
    transition:filter 0.2s;
}
.chat_conv_manage:hover{ filter:brightness(0); }

/* ========== Chat AI window overrides ========== */
.chat_ai_window{
    border:none !important;
}
.chat_ai_window .chat_conv_header,
.chat_ai_window .chat_conv_body,
.chat_ai_window .chat_conv_footer{
    border:none !important;
}
.chat_ai_window .chat_conv_photo,
.chat_ai_window .msg_photo{
    border:none !important;
}

/* ========== Agent selector (Helpdesk / Juridico) ========== */
.agent_selector {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom:4px;
}
.agent_option {
    font-size: 11px;
    padding: 3px 8px;
    border: 1px solid #999;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    color: #333;
    background: #fff;
    transition: background 0.2s, color 0.2s;
    flex: 1;
    text-align: center;
}
.agent_option_selected {
    background: #323537;
    color: #fff;
    border-color: #323537;
}
.chat_suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.chat_suggestion_btn {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid #999;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    color: #333;
    transition: background 0.2s, color 0.2s;
}
.chat_suggestion_btn:hover {
    background: #f0f0f0;
    border-color: #666;
}
.chat_sources {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e0e0e0;
}
.chat_sources_header {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}
.chat_sources_title {
    font-size: 10px;
    font-weight: 600;
    color: #555;
}
.chat_sources_toggle {
    font-size: 9px;
    color: #555;
}
.chat_sources_toggle::after {
    content: '\25BC';
}
.chat_sources_expanded .chat_sources_toggle::after {
    content: '\25B2';
}
.chat_sources_list_wrapper {
    display: none;
    margin-top: 4px;
}
.chat_sources_expanded .chat_sources_list_wrapper {
    display: block;
}
.chat_sources_list {
    margin: 0;
    padding-left: 16px;
    font-size: 11px;
    color: #666;
    line-height: 1.35;
}
.chat_source_item {
    margin-bottom: 2px;
}

/* ========== Global layer order ========== */
/*
 * Camadas (maior = mais acima):
 *   notificações SweetAlert (toast + confirmação) — acima de modais Syncfusion
 *   modais Syncfusion (PDF viewer ~250000, restantes ~200000)
 *   chat / dropdowns / toolbar
 */
:root {
    --logicpos-layer-notifications: 10000000;
    --logicpos-layer-syncfusion-max: 250000;
}

.swal2-container {
    z-index: var(--logicpos-layer-notifications) !important;
}

.swal2-container .swal2-popup.swal2-toast {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38) !important;
}

.modal,
.modal.show,
.chat_emp_modal,
.user_dropdown_menu {
    z-index: 3000 !important;
}

.modal-backdrop,
.modal-backdrop.show {
    z-index: 2990 !important;
}

.chat_bar,
.chat_conv_window {
    z-index: 2000 !important;
}

.dashboard-nav,
.dashboard-nav.mobile-show,
.dashboard-toolbar,
.custom-scrollbar {
    z-index: 1000 !important;
}

.movement_modal_dialog {
    max-width: 980px;
    width: min(94vw, 980px);
}

.movement_modal_content {
    border: 0;
    background: #ffffff;
}

.movement_modal.e-dialog,
.about_modal.e-dialog {
    border-radius: 14px;
    overflow: hidden;
}

.movement_modal.e-dialog .e-dlg-header-content,
.about_modal.e-dialog .e-dlg-header-content {
    background-color: var(--popup-background-color);
    border-bottom: 0;
    padding: 6px 14px;
}

.movement_modal.e-dialog .e-dlg-header,
.movement_modal.e-dialog .e-dlg-header *,
.movement_modal.e-dialog .e-dlg-closeicon-btn .e-icons,
.about_modal.e-dialog .e-dlg-header,
.about_modal.e-dialog .e-dlg-header *,
.about_modal.e-dialog .e-dlg-closeicon-btn .e-icons {
    color: #ffffff;
}

.movement_modal_body {
    background: #ffffff;
    max-height: calc(100vh - 110px);
    overflow: auto;
    overflow-x: hidden;
}

.movement_loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    font-family: "Montserrat-Regular", sans-serif;
}

.movement_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    min-height: 360px;
    align-items: stretch;
}

.movement_map_column {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.movement_map_container {
    width: 100%;
    flex: 1 1 auto;
    min-height: 320px;
}

.movement_map_offline {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-color: #c8d4e0;
    background-image:
        linear-gradient(to right, rgba(60, 70, 90, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(60, 70, 90, 0.4) 1px, transparent 1px);
    background-size: 20px 20px;
}

.movement_map_marker {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #85a81a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translate(-50%, -100%);
    cursor: grab;
    padding: 0;
    z-index: 10;
}

.movement_map_marker:active {
    cursor: grabbing;
}

.movement_map_marker_locked,
.movement_map_marker_locked:active {
    cursor: default;
}

.movement_map_checkbox {
    position: absolute;
    left: 10px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    padding: 5px;
    z-index: 1001;
}

.movement_map_refresh {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    cursor: pointer;
}

.movement_map_refresh_icon {
    width: 24px;
    height: 24px;
}

.movement_controls_column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.movement_control_row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.movement_label {
    font-size: 14px;
    color: #323537;
    font-family: "Montserrat-Regular", sans-serif;
}

.movement_task_row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.movement_input,
.movement_textarea {
    width: 100%;
}

.movement_controls_column .movement_input.e-control-wrapper,
.movement_controls_column .movement_input.e-input-group {
    min-height: 32px;
    height: 32px;
}

.movement_controls_column .movement_input.e-control-wrapper .e-input,
.movement_controls_column .movement_input.e-input-group .e-input {
    height: 30px;
    line-height: 30px;
    padding: 0 8px;
    font-family: "Montserrat-Regular", sans-serif;
    font-size: 11px;
}

.movement_controls_column .movement_input.e-control-wrapper .e-input-group-icon {
    min-height: 30px;
    height: 30px;
    width: 30px;
}

.movement_textarea {
    resize: vertical;
    min-height: 72px;
    padding: 6px 8px;
    font-family: "Montserrat-Regular", sans-serif;
    font-size: 11px;
}

.movement_checkbox_label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #323537;
    font-family: "Montserrat-Regular", sans-serif;
}

.movement_telework {
    white-space: nowrap;
}

.movement_actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: auto;
}

.movement_action {
    min-height: 78px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 8px solid;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 12px 15px;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.movement_action_icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    margin-right: 15px;
}

.movement_action_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.movement_action_entry {
    border-color: #95c748;
}

.movement_action_exit {
    border-color: #85a81a;
}

.movement_action_title {
    font-weight: 700;
    font-size: 16px !important;
    line-height: 1;
    font-family: "Montserrat-Regular", sans-serif;
    color: #333;
}

.movement_action_subtitle {
    font-size: 13px !important;
    line-height: 1.1;
    color: #666;
    font-family: "Montserrat-Regular", sans-serif;
    margin-top: 2px;
}

.movement_action:disabled {
    opacity: 0.55;
}

@media (max-width: 1100px) {
    .movement_grid {
        grid-template-columns: 1fr;
    }

    .movement_map_column {
        min-height: 280px;
    }

    .movement_map_container,
    .movement_map_offline {
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .movement_modal_body {
        padding: 10px;
        max-height: calc(100vh - 90px);
    }

    .movement_task_row {
        grid-template-columns: 1fr;
    }

    .movement_actions {
        grid-template-columns: 1fr;
    }

    .movement_map_column {
        min-height: 250px;
    }

    .movement_action {
        min-height: 66px;
        border-width: 3px;
    }

    .movement_action_icon { width: 34px; height: 34px; margin-right: 10px; }
    .movement_action_title { font-size: 14px; }
    .movement_action_subtitle { font-size: 12px; }
}

/* ================================================
   Employee Details - main header block layout
   ================================================ */
.employee_details_tab {
    max-width: 100%;
    width: 100%;
}

.employee_details_tab .e-content {
    padding-top: 12px;
    overflow: visible !important;
}

.employee_details_tab .e-toolbar-items {
    overflow-x: auto !important;
    overflow-y: hidden;
    scrollbar-width: thin;
    max-width: 100%;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    text-transform: none !important;
}


.tab_section_separator {
    margin: 20px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ededed;
    font-size: 18px !important;
    font-weight: 600;
    color: #323537;
    width: 100%;
    display: block;
}

.tab_section_separator:first-child {
    margin-top: 0;
}

.tab_section_separator.employee_access_terminals_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tab_section_separator.employee_access_terminals_header .portal-botao.e-btn {
    flex-shrink: 0;
    width: auto !important;
    max-width: none !important;
}

/* Access methods: filter-item is sized for fields (20–25% width); buttons must stay content-sized like header Save */
.employee_access_methods_tab .filter-item:has(.portal-botao) {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
}

.employee_access_methods_tab .filter-item:has(.portal-botao) .portal-botao.e-btn {
    width: auto !important;
    max-width: none !important;
}

.employee_details_header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.employee_photo_col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.employee_photo_wrapper {
    position: relative;
    width: 200px;
    height: 235px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.employee_photo_wrapper:hover {
    border-color: #aaa;
}

.employee_photo_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.employee_photo_delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px !important;
    height: 26px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 50% !important;
    padding: 3px;
    cursor: pointer;
    border: 1px solid #ddd !important;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.employee_photo_delete img {
    width: 16px;
    height: 16px;
}

.employee_photo_delete.e-btn {
    line-height: 1;
    min-width: 26px !important;
}

.employee_photo_upload_label {
    font-size: 12px;
    color: #666;
    text-align: center;
    cursor: pointer;
    padding: 4px 8px;
    border: 1px dashed #aaa;
    border-radius: 4px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

/* Form layout: same rules as time.track_portal Content/Styles/pages.css (EmployeeDetails.aspx) */
.princ_col {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.padding-top {
    padding-top: 1rem;
}

.form-row {
    display: flex;
    gap: 5px;
    width: 100%;
    align-items: flex-end;
    margin-bottom: 0;
}

.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding-right: 3px;
    min-width: 16%;
    max-width: 33%;
}

.form-group-min-width {
    min-width: 33%;
}

.form-group-small {
    flex: 0.15;
}

.form-group-medium {
    flex: 0.4;
}

.form-group-large {
    flex: 1.7;
    max-width: 33%;
}

.form-group label {
    margin-bottom: 2px;
    font-weight: 500;
}

.form-row .form-group:not(:last-child) {
    padding-right: 5px;
}

.compact-row {
    gap: 3px !important;
}

.compact-field {
    flex: 0.03 0 auto !important;
}

.form-configuration {
    min-width: 33%;
    padding-top: 5px;
}

/* People counting dashboard: manual adjustments — button content-sized (not full flex column width). */
.form-group.people_counting_manual_actions {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.form-group.people_counting_manual_actions .portal-botao.e-btn {
    width: auto !important;
    max-width: none !important;
}

.form-label {
    font-weight: 600;
    padding-bottom: 1px;
}

.form-label:empty {
    min-height: 1.35em;
    margin-bottom: 2px;
}

/* Syncfusion controls fill column (same intent as legacy Width="100%") */
.form-group .e-control-wrapper,
.form-group .e-ddl,
.form-group .e-input-group,
.form-group .e-multiselect,
.form-group .e-dropdownbase,
.form-group .e-ddt {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Form rows + EmployeeDetails tab strips: checkboxes match text/date controls (site-wide .e-check is 8px; override here). */
.form-group .e-checkbox-wrapper,
.employee_details_tab .filter-item .e-checkbox-wrapper,
.employee_details_tab .filter-container > .e-checkbox-wrapper,
.device_sync_filter_delete .e-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
}

.form-group .e-checkbox-wrapper .e-frame,
.form-group .e-css.e-checkbox-wrapper .e-frame,
.employee_details_tab .filter-item .e-checkbox-wrapper .e-frame,
.employee_details_tab .filter-item .e-css.e-checkbox-wrapper .e-frame,
.employee_details_tab .filter-container > .e-checkbox-wrapper .e-frame,
.employee_details_tab .filter-container > .e-css.e-checkbox-wrapper .e-frame,
.device_sync_filter_delete .e-checkbox-wrapper .e-frame,
.device_sync_filter_delete .e-css.e-checkbox-wrapper .e-frame {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    line-height: 22px !important;
}

.form-group .e-checkbox-wrapper .e-check,
.form-group .e-css.e-checkbox-wrapper .e-check,
.form-group .e-checkbox-wrapper .e-stop,
.form-group .e-css.e-checkbox-wrapper .e-stop,
.employee_details_tab .filter-item .e-checkbox-wrapper .e-check,
.employee_details_tab .filter-item .e-css.e-checkbox-wrapper .e-check,
.employee_details_tab .filter-item .e-checkbox-wrapper .e-stop,
.employee_details_tab .filter-item .e-css.e-checkbox-wrapper .e-stop,
.employee_details_tab .filter-container > .e-checkbox-wrapper .e-check,
.employee_details_tab .filter-container > .e-css.e-checkbox-wrapper .e-check,
.employee_details_tab .filter-container > .e-checkbox-wrapper .e-stop,
.employee_details_tab .filter-container > .e-css.e-checkbox-wrapper .e-stop,
.device_sync_filter_delete .e-checkbox-wrapper .e-check,
.device_sync_filter_delete .e-css.e-checkbox-wrapper .e-check,
.device_sync_filter_delete .e-checkbox-wrapper .e-stop,
.device_sync_filter_delete .e-css.e-checkbox-wrapper .e-stop {
    font-size: 14px !important;
}

.form-group .e-checkbox-wrapper .e-label,
.employee_details_tab .filter-item .e-checkbox-wrapper .e-label,
.employee_details_tab .filter-container > .e-checkbox-wrapper .e-label,
.device_sync_filter_delete .e-checkbox-wrapper .e-label {
    font-size: 14px;
    line-height: 1.35;
    padding-left: 8px;
}

/* MultiSelect: Syncfusion uses --e-font-family on the control; align with portal Montserrat */
.e-multiselect.e-control {
    --e-font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif;
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif;
}

.e-multiselect.e-control .e-multi-select-wrapper .e-input,
.e-multiselect.e-control .e-multi-select-wrapper input.e-input,
.e-multiselect.e-control .e-multi-select-wrapper textarea.e-input,
.e-multiselect.e-control .e-delim-values,
.e-multiselect.e-control .e-delim-view,
.e-multiselect.e-control .e-placeholder,
.e-multi-select-wrapper .e-delim-values {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 12px !important;
}

/* MultiSelect / DropDownList popup list (portaled to body): same family for items and filter box */
.e-ddl.e-popup .e-dropdownbase .e-list-item,
.e-ddl.e-popup .e-filter-parent input,
.e-ddl.e-popup .e-filter-parent .e-input-filter {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
}

/* Syncfusion MultiSelect: chip row is span.e-chips (.e-chip-selected when focused); not .e-chip child */
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips.e-chip-selected,
.form-group .e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips,
.form-group .e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips.e-chip-selected,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chip,
.e-multiselect .e-multi-select-wrapper .e-chips .e-chip,
.e-multiselect .e-chips-collection .e-chip,
.e-multiselect .e-chips .e-chip,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chip.e-secondary,
.e-multiselect .e-chips .e-chip.e-secondary,
.form-group .e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chip,
.form-group .e-multiselect .e-chips .e-chip {
    background-color: var(--bs-primary, #323537) !important;
    border-color: var(--bs-primary, #323537) !important;
    color: #fff !important;
}

.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips .e-chipcontent,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips.e-chip-selected .e-chipcontent,
.form-group .e-multiselect .e-chips-collection .e-chips .e-chipcontent,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chip .e-chipcontent,
.e-multiselect .e-multi-select-wrapper .e-chips .e-chip .e-chipcontent,
.e-multiselect .e-chips-collection .e-chip .e-chipcontent,
.e-multiselect .e-chips .e-chip .e-chipcontent {
    color: #fff !important;
}

.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips .e-chips-close,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips.e-chip-selected .e-chips-close,
.form-group .e-multiselect .e-chips-collection .e-chips .e-chips-close,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chip .e-chips-close,
.e-multiselect .e-multi-select-wrapper .e-chips .e-chip .e-chips-close,
.e-multiselect .e-chips-collection .e-chip .e-chips-close,
.e-multiselect .e-chips .e-chip .e-chips-close {
    font-family: "e-icons" !important;
    font-size: 15px !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips .e-chips-close:hover,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chips.e-chip-selected .e-chips-close:hover,
.form-group .e-multiselect .e-chips-collection .e-chips .e-chips-close:hover,
.e-multiselect .e-multi-select-wrapper .e-chips-collection .e-chip .e-chips-close:hover,
.e-multiselect .e-multi-select-wrapper .e-chips .e-chip .e-chips-close:hover,
.e-multiselect .e-chips-collection .e-chip .e-chips-close:hover,
.e-multiselect .e-chips .e-chip .e-chips-close:hover {
    color: #fff !important;
    opacity: 1;
}

@media (max-width: 768px) {
    .princ_col {
        flex-direction: column;
        padding-left: 10px;
        padding-right: 10px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    .form-group,
    .form-group-small,
    .form-group-large,
    .form-group-medium {
        width: 100%;
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.device_details_form {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.device_details_dropdown_item,
.device_details_dropdown_value {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    box-sizing: border-box;
}

.device_details_dropdown_thumb_brand {
    flex: 0 0 auto;
    max-width: 100px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.device_details_dropdown_thumb_model {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.device_details_dropdown_item_model .device_details_dropdown_ref {
    flex: 0 0 auto;
    min-width: 5.5rem;
    font-weight: 500;
}

.device_details_dropdown_text {
    flex: 1 1 auto;
    min-width: 0;
}

/* Legacy DeviceDetails.aspx section separator (pages.css) */
.separator {
    margin: 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ededed;
}

.separator .label-separator {
    font-size: 18px;
    font-weight: 600;
    color: #323537;
}

.employee_data_col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.employee_form_row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: flex-end;
    flex-wrap: wrap;
}

.employee_form_group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.employee_form_group label {
    margin-bottom: 3px;
    font-weight: 500;
    font-size: 13px;
    color: #555;
}

.employee_form_group_small {
    flex: 0 0 auto;
    min-width: 80px;
}

.employee_form_group_medium {
    flex: 0 0 auto;
    min-width: 140px;
}

.employee_form_group_large {
    flex: 2;
    min-width: 200px;
}

.employee_form_group_readonly_value {
    font-size: 14px;
    font-weight: 600;
    color: #323537;
    padding: 4px 2px;
    line-height: 1.4;
}

.employee_notes_textarea {
    height: 90px;
    width: 100%;
    min-height: 70px;
    resize: vertical;
}

.employee_photo_file_input {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .employee_details_header {
        flex-direction: column;
    }

    .employee_photo_col {
        width: 100%;
        min-width: unset;
        align-items: flex-start;
    }

    .employee_form_row {
        flex-direction: column;
    }

    .employee_form_group,
    .employee_form_group_small,
    .employee_form_group_medium,
    .employee_form_group_large {
        width: 100%;
        min-width: unset;
        flex: 1 1 100%;
    }
}

/* Full-area file input: click and native drag-drop onto the control */
.drop_zone_documents {
    position: relative;
    display: block;
    min-height: 88px;
    width: 100%;
    box-sizing: border-box;
    border: 2px dashed #ccc;
    border-radius: 4px;
}

.drop_zone_documents input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 88px;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    font-size: 0;
}

/* Access schedule consult: radios must use full content width (global .filter-item caps at 25%) */
.access_schedule_consult_filter_row.filter-container {
    width: 100%;
}

.access_schedule_consult_filter_row > .filter-item {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
}

/* Device sync (legacy EmployeesDeviceSync.aspx) */
.sync_checkboxes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
    align-items: center;
}

.sync_checkboxes .filter-item {
    margin-top: 0;
    min-width: auto;
    max-width: none;
    display: inline-block;
}

.grid_header_image {
    width: 25px;
}

.grid_header_text {
    font-size: 9px;
}

.info_templates {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    padding: 2px 5px;
    overflow-y: auto;
    height: 100%;
    font-size: 12px;
}

.template_info_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 0;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.3;
}

.template_copy_btn {
    cursor: pointer;
    color: #999;
    font-size: 11px;
    padding: 2px;
    border-radius: 2px;
    flex-shrink: 0;
    margin-left: 6px;
}

.template_copy_btn:hover {
    color: var(--primary-color);
    background-color: #f0f0f0;
}

.profile_tree_section {
    margin-top: 10px;
    width: 100%;
}

.profile_tree_search {
    margin-bottom: 6px;
}

.profile_tree_container {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px;
    background: #fff;
    width: 100%;
}

.profile_tree.e-treeview .e-list-item {
    padding: 0 !important;
}

.profile_tree.e-treeview .e-fullrow {
    height: 22px !important;
}

.profile_tree.e-treeview .e-text-content {
    padding: 0 !important;
    display: flex;
    align-items: center;
    min-height: 22px;
}

.profile_tree.e-treeview .e-list-text {
    font-size: 12px;
    line-height: 22px;
    padding: 0 !important;
}

.profile_tree.e-treeview .e-checkbox-wrapper {
    margin: 0 4px 0 0 !important;
}

.profile_tree.e-treeview .e-checkbox-wrapper .e-frame {
    width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
}

.profile_tree.e-treeview .e-icons.e-icon-expandable,
.profile_tree.e-treeview .e-icons.e-icon-collapsible {
    font-size: 10px;
    padding: 0 2px !important;
    margin: 0 !important;
}

.profile_tree.e-treeview .e-ul {
    padding-left: 18px !important;
}

.profile_tree.e-treeview .e-list-item .e-ul {
    margin: 0 !important;
}

.profile_tree.e-treeview .e-list-item.e-level-1 > .e-text-content,
.profile_tree.e-treeview .e-list-item[aria-level] > .e-text-content {
    padding-left: 0 !important;
}

.profile_tree.e-treeview .e-list-item:not(.e-has-child) > .e-text-content {
    margin-left: 18px;
}

/* Stub pages BackOffice (listagens em desenvolvimento) */
.back-office-stub {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Modal de visualização de PDF (conteúdo criado via PDF.js) */
.document-pdf-viewer-dialog .document-pdf-viewer-dialog__viewer-host {
    background: #f8f9fa;
    overflow: auto;
}

.document-pdf-viewer-dialog .pdf-viewer-pages {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 0 auto;
    min-width: 100%;
    padding: 0.75rem;
    width: 100%;
}

.document-pdf-viewer-dialog .pdf-viewer-page {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
}

/* Sugestões de autocomplete/combobox (popup no body): o title nativo falha; o nome completo mostra ao passar o rato. */
.e-popup .e-list-item {
    overflow: visible !important;
}

.e-popup:has(.combo-option-label:hover),
.e-popup:has(.combo-option-label:hover) .e-content,
.e-popup:has(.combo-option-label:hover) .e-dropdownbase,
.e-popup:has(.combo-option-label:hover) .e-list-parent,
.e-popup .e-list-item:has(.combo-option-label:hover) {
    overflow: visible !important;
}

.e-popup .e-list-item:has(.combo-option-label:hover) {
    position: relative;
    z-index: 6;
    height: auto !important;
}

.e-popup .combo-option-label {
    position: relative;
    display: block;
    min-width: 0;
    overflow: visible;
}

.e-popup .combo-option-label__text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.e-popup .combo-option-label__tip {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 2px);
    z-index: 10050;
    width: max-content;
    max-width: min(420px, 70vw);
    padding: 6px 10px;
    border-radius: 4px;
    background: #212529;
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    word-break: break-word;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    pointer-events: none;
}

.e-popup .combo-option-label:hover .combo-option-label__tip {
    display: block;
}
