:root {
    --font-family-sans-serif: 'Montserrat-Regular', sans-serif;
    --bs-primary: #323537;
    --bs-primary-rgb: 50, 53, 55;
    --popup-background-color: #ef3f32;
    --popup-background-color-access: #781e49;
    --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);

    /* Syncfusion components (charts included) read this when painting text */
    --e-font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif;

    /* Portal standard checkbox (SfCheckBox, grid selection, tree filters) */
    --portal-checkbox-size: 16px;
    --portal-checkbox-icon-size: 9px;
}

@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 .e-control shells (exclude RTE, icons, section titles, About modal, AI anomaly dialog, dashboard title note, and dashboard widget HTML zones defined in dashboard*.css). */
.e-lib:not(.about_modal):not(.ai_dashboard_anomaly_detail_dialog),
.e-control:not(.about_modal):not(.ai_dashboard_anomaly_detail_dialog),
.e-control:not(.about_modal):not(.ai_dashboard_anomaly_detail_dialog) *:not(.e-richtexteditor *):not(.e-icons):not(.e-btn-icon):not(.e-input-group-icon):not(.e-ddt-icon):not(.e-menu-icon):not(.e-search-icon):not(.label-separator):not(.tab_section_separator):not(.ai_dashboard_title_note):not(.ai_dashboard_title_note *):not(.recruitment_dashboard_kpi_widget):not(.recruitment_dashboard_kpi_widget *):not(.performance_survey_dashboard_kpi_widget):not(.performance_survey_dashboard_kpi_widget *):not(.widget-header):not(.widget-header *):not(.ai_dashboard_section_header):not(.ai_dashboard_section_header *):not(.recruitment_dashboard_section_header):not(.recruitment_dashboard_section_header *):not(.import_export_dashboard_root):not(.import_export_dashboard_root *):not(.dx-widget):not(.dx-widget *):not(.access_dashboard_grid_area):not(.access_dashboard_grid_area *):not(.time_dashboard_grid_area):not(.time_dashboard_grid_area *),
.e-label {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
}

.e-control:not(.about_modal):not(.ai_dashboard_anomaly_detail_dialog) *:not(.e-richtexteditor *):not(.e-icons):not(.e-btn-icon):not(.e-input-group-icon):not(.e-ddt-icon):not(.e-menu-icon):not(.e-search-icon):not(.label-separator):not(.tab_section_separator):not(.ai_dashboard_title_note):not(.ai_dashboard_title_note *):not(.recruitment_dashboard_kpi_widget):not(.recruitment_dashboard_kpi_widget *):not(.performance_survey_dashboard_kpi_widget):not(.performance_survey_dashboard_kpi_widget *):not(.widget-header):not(.widget-header *):not(.ai_dashboard_section_header):not(.ai_dashboard_section_header *):not(.recruitment_dashboard_section_header):not(.recruitment_dashboard_section_header *):not(.import_export_dashboard_root):not(.import_export_dashboard_root *):not(.dx-widget):not(.dx-widget *):not(.access_dashboard_grid_area):not(.access_dashboard_grid_area *):not(.time_dashboard_grid_area):not(.time_dashboard_grid_area *):not(text):not(tspan),
.e-label {
    font-size: 11px !important;
}

/* Syncfusion text-like controls: the Bootstrap5 theme sets `font-size: 14px` (16px on some) on the
   WRAPPER itself (`.e-input-group.e-control-wrapper` / `.e-float-input`), and the displayed value —
   plain input, but also spans like `.e-overflow .e-show-text` (DropDownTree delimiter) and `.e-remain`
   ("+N more") — INHERITS that size. These wrappers are NOT inside a `.e-control`, so the
   ".e-control *" descendant rule above never reaches them. Force the portal 11px on the WRAPPER itself
   (everything inside inherits) GLOBALLY — every page: forms, filters, dialogs — not just dashboards.
   This covers every current and future text-like control (TextBox, DropDownList, DropDownTree, ComboBox,
   AutoComplete, DatePicker, DateRange, Time, Numeric, Masked, MultiSelect) without enumerating each one. */
.e-input-group,
.e-control-wrapper,
.e-input-group input,
.e-input-group textarea,
.e-control-wrapper input,
.e-control-wrapper textarea,
input.e-input,
textarea.e-input,
input.e-dropdowntree,
input.e-dropdownlist,
.e-ddl .e-input-value,
.e-ddt .e-overflow,
.e-ddt .e-overflow .e-show-text,
.e-ddt .e-overflow .e-remain,
.e-ddt .e-delim-values,
.e-multi-select-wrapper .e-delim-values,
.e-multi-select-wrapper .e-chips .e-chipcontent {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 11px !important;
}

/* DropDownTree delimiter value is a span (.e-overflow.e-show-text), not the input. The wrapper uses a
   unitless line-height (1.4), so at 11px the line-box (~15px) is shorter than the fixed 30px control and
   the text top-aligns when unfocused (focused state swaps in the real input, which already centers).
   Pin a fixed line-height so the single line centers vertically (20px + the span's 5px*2 padding = 30px). */
.e-ddt .e-overflow.e-show-text {
    line-height: 20px !important;
}

/* Syncfusion charts paint SVG with font-family="Roboto" and font-size="14px"; override presentation attributes. */
.e-chart svg text,
.e-chart svg tspan,
.e-accumulationchart svg text,
.e-accumulationchart svg tspan,
.e-heatmap svg text,
.e-heatmap svg tspan,
.e-stockchart svg text,
.e-stockchart svg tspan {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 11px !important;
}

.e-dialog:not(.about_modal) .e-dlg-header,
.e-dialog:not(.about_modal) .e-dlg-header * {
    font-size: 16px !important;
}
/* Preserve Syncfusion icon font glyphs (must beat .e-control * above). */
.e-control .e-icons,
.e-lib .e-icons,
.e-control .e-btn-icon,
.e-lib .e-btn-icon,
.e-control .e-input-group-icon,
.e-lib .e-input-group-icon,
.e-control .e-ddt-icon,
.e-lib .e-ddt-icon,
.e-control .e-menu-icon,
.e-lib .e-menu-icon,
.e-control .e-search-icon,
.e-lib .e-search-icon,
.e-treegrid .e-treegridexpand,
.e-treegrid .e-treegridcollapse,
.e-treegrid .e-treegridexpand::before,
.e-treegrid .e-treegridcollapse::before {
    font-family: "e-icons" !important;
    font-size: 15px !important;
}
.e-grid .e-gridheader thead .e-icons:not(.e-check):not(.e-stop) {
    font-size: 10px !important;
}

.e-grid .e-headercell, .e-grid .e-detailheadercell {
    padding: 5px 5px 5px !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;
}
/* Portal standard: all Syncfusion checkboxes (SfCheckBox, grids, trees). */
.e-checkbox-wrapper .e-frame,
.e-css.e-checkbox-wrapper .e-frame {
    width: var(--portal-checkbox-size) !important;
    height: var(--portal-checkbox-size) !important;
    min-width: var(--portal-checkbox-size) !important;
    min-height: var(--portal-checkbox-size) !important;
    line-height: var(--portal-checkbox-size) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    box-sizing: border-box !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: var(--portal-checkbox-icon-size) !important;
    line-height: 1 !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;
    overflow-y: auto;
    background-color: #323537;
    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: #ef3f32;
}

.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;
}

.logo-open svg,
.logo-closed svg,
.logo-open img,
.logo-closed img {
    height: 100%;
    width: auto;
}

/* ===== Nav List ===== */
.dashboard-nav-list {
    display: flex;
    flex-direction: column;
}

/* ===== Nav Items ===== */
.dashboard-nav-item {
    min-height: 26px;
    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.04);
}

.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: #323537;
    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: rgba(221, 225, 232, 0.7);
    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);
    z-index: 2;
}

.dashboard-nav-dropdown-toggle.active-parent {
    color: #fff;
    font-weight: bold;
    border-left: none;
    position: relative;
    background: transparent;
}

.dashboard-nav-dropdown-toggle.active-parent::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: calc(100% - 13px);
    background-color: rgba(221, 225, 232, 0.35);
    border-radius: 4px;
    z-index: -1;
}

.dashboard-nav-dropdown-toggle.active-parent .menu-text {
    position: relative;
    z-index: 1;
}

/* ===== Dropdown ===== */
.dashboard-nav-dropdown {
    display: flex;
    flex-direction: column;
}

.dashboard-nav-dropdown-toggle {
    position: relative;
    cursor: pointer;
    padding-right: 24px;
    overflow: hidden;
}

.dashboard-nav-dropdown-toggle .menu-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.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;
    z-index: 2;
}

.dashboard-nav .dashboard-nav-dropdown-toggle:after {
    filter: brightness(0.5) invert(0.5);
}

.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: #434343;
}

.dashboard-nav-dropdown-item {
    min-height: 20px;
    max-height: 20px;
    line-height: 11px;
    padding-left: 1rem;
    padding-right: 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;
    box-sizing: border-box;
}

.dashboard-nav-dropdown-item .menu-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 11px;
    line-height: 11px;
}

.dashboard-nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.09);
}

.dashboard-nav-dropdown-item.active::before {
    left: 1rem;
    width: calc(100% - 2rem);
}

.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;
}

/* ===== Menu Icons ===== */
.menu-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    transition: width 0.3s, height 0.3s, margin 0.3s;
}

.menu-icon-selected {
    display: none !important;
}

.dashboard-nav-item.active .menu-icon-selected,
.dashboard-nav-dropdown-toggle.active .menu-icon-selected,
.dashboard-nav-dropdown-toggle.active-parent .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-toggle.active-parent .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: #ededed4f;
    color: #ffffff;
    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: #ededed;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 27px;
}

.toolbar-left {
    display: flex;
    align-items: center;
}

.dashboard-app {
    display: flex;
    flex-direction: column;
    flex-grow: 2;
    min-width: 0;
}

.dashboard-body {
    flex: 1;
    padding: 25px;
    background-color: #ffffff;
}

.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_header_main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.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;
}

/* Performance Survey dashboard header menu (global: avoids FOUC before page CSS loads). */
.performance_survey_dashboard_header_menu {
    position: relative;
    display: flex;
    align-items: center;
}

.performance_survey_dashboard_header_menu_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.performance_survey_dashboard_header_menu_btn:hover {
    background: #f3f4f6;
}

.performance_survey_dashboard_header_menu_icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.performance_survey_dashboard_header_menu_backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: transparent;
}

.performance_survey_dashboard_header_menu_dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1201;
    min-width: 260px;
    padding: 6px 0;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.performance_survey_dashboard_header_menu_setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #eceef2;
}

.performance_survey_dashboard_header_menu_setting_label {
    flex: 1 1 auto;
    font-size: 12px;
    color: #323537;
    line-height: 1.35;
}

.performance_survey_dashboard_header_menu_setting_spin {
    flex: 0 0 112px;
    width: 112px;
}

.performance_survey_dashboard_header_menu_setting_spin .e-control-wrapper,
.performance_survey_dashboard_header_menu_setting_spin .e-numeric {
    width: 100% !important;
}

.performance_survey_dashboard_header_menu_setting_spin .e-input-group-icon {
    width: 24px;
    min-width: 24px;
    flex: 0 0 24px;
    font-size: 10px;
}

.performance_survey_dashboard_header_menu_setting_spin input.e-input {
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
}

.performance_survey_dashboard_header_menu_item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #323537;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.performance_survey_dashboard_header_menu_item:hover {
    background: #f8f9fb;
}

.performance_survey_dashboard_header_menu_item_icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
}

.portal-botao {
    border-radius: 10px;
    padding: 5px 23px !important;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Montserrat-Bold', sans-serif !important;
    font-size: 11px !important;
}

/* Primary buttons inside form-group columns: content width (column flex unchanged). */
.portal-botao.portal_botao_fit_content.e-btn {
    width: auto !important;
    align-self: flex-start;
}

.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');
}

/* List vs DevExpress report toggle (page header actions) */
.icon_report_toggle_grid {
    background-image: url('/images/svg/buttons/menu_visualizar_tabela_grid_b.svg');
}

.icon_report_toggle_report {
    background-image: url('/images/svg/buttons/menu_visulizar_relatorio_b.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_view_details {
    background-image: url('/images/svg/buttons/menu_visualizar_e_editar_b.svg');
}

.icon_group_toggle {
    background-image: url('/images/svg/buttons/menu_agrupar_campos_b.svg');
}

.icon_approve_employee {
    background-image: url('/images/svg/buttons/botao_aprovar.svg');
}

.icon_reject_employee {
    background-image: url('/images/svg/buttons/botao_desaprovar.svg');
}

.icon_aplicar,
.icon.icon_aplicar,
.portal-botao .e-btn-icon.icon_aplicar {
    background-image: url('/images/svg/buttons/botao_aplicar.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_guardar {
    background-image: url('/images/svg/buttons/botao_guardar.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/menu_editar_na_tabela_b.svg');
}

.icon_edit_mode_dialog {
    background-image: url('/images/svg/buttons/menu_editar_em_janela_popup_b.svg');
}

/* Same asset as menu "Marcação de férias" / VacationsCalendar page header */
.icon_menu_marcacao_ferias {
    background-image: url('/images/svg/menu/menu_marcacao_ferias_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');
}

.icon_recalculate {
    background-image: url('/images/svg/buttons/botao_recalcular_b.svg');
}

/* Grid toolbar: clear / erase bulk actions (replaces Syncfusion e-erase on light toolbars). */
.icon_toolbar_clear {
    background-image: url('/images/svg/buttons/botao_limpar_b.svg');
}

/* Grid toolbar: actions scoped to employees / users. */
.icon_toolbar_employees {
    background-image: url('/images/svg/buttons/botao_nome_utilizador_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;
}

/* Load card (card charge): read field width; section layout; balance colours */
.filter_load_card_read.filter-item {
    flex: 0 0 auto;
    min-width: 160px;
    max-width: 320px;
    width: 280px;
}

.load_card_section_title {
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.load_card_detail_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: flex-start;
}

.load_card_detail_grid .filter-item {
    max-width: 22%;
    min-width: 180px;
}

.load_card_error_label {
    color: #b3261e;
    margin-bottom: 0.5rem;
}

.load_card_balance_positive {
    color: #137333;
}

.load_card_balance_negative {
    color: #b3261e;
}

.load_card_actions_row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.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.filter-wide {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
}

.filter-item.filter-wide .e-input-group,
.filter-item.filter-wide .e-control-wrapper {
    width: 100%;
}

.filter-item label {
    margin-bottom: 5px;
    font-weight: 500;
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 11px !important;
}

.portal_date_range_filter {
    position: relative;
}

.portal_date_range_filter_dual_layout {
    max-width: 50%;
    min-width: min(520px, 100%);
}

.portal_date_range_filter_header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 5px;
}

.portal_date_range_filter_header > label {
    margin-bottom: 0;
}

.portal_date_range_filter_header .portal_filter_settings_menu_dropdown {
    left: 0;
    right: auto;
}

.portal_date_range_filter_dual {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.portal_filter_settings_menu {
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.portal_filter_settings_menu_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.portal_filter_settings_menu_btn:hover {
    background: #f3f4f6;
}

.portal_filter_settings_menu_icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.portal_filter_settings_menu_backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: transparent;
}

.portal_filter_settings_menu_dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 1201;
    min-width: 220px;
    padding: 6px 0;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.portal_filter_settings_menu_section_label {
    padding: 8px 14px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.portal_filter_settings_menu_option {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    color: #323537;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.portal_filter_settings_menu_option:hover {
    background: #f8f9fb;
}

.portal_filter_settings_menu_option_active {
    background: #eef6f0;
    font-weight: 600;
}

.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;
   employee_list_quick_add_department_tree = employee list quick-add (no shared persistence);
   data_assignment_department_tree = Data Assignment dialog (distinct ID from employee details / lists);
   canteen_build_menu_plate_tree = Build menu (add/edit dishes dialog). */
.e-ddt.e-popup.department_tree_multiple .e-text-content,
.e-ddt.e-popup.department_tree_single .e-text-content,
.e-ddt.e-popup.employee_list_quick_add_department_tree .e-text-content,
.e-ddt.e-popup.data_assignment_department_tree .e-text-content,
.e-ddt.e-popup.employees_tree_multiple .e-text-content,
.e-ddt.e-popup.employees_tree_single .e-text-content,
.e-ddt.e-popup.canteen_dishes_type_tree .e-text-content,
.e-ddt.e-popup.canteen_build_menu_plate_tree .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.employee_list_quick_add_department_tree .e-list-text,
.e-ddt.e-popup.data_assignment_department_tree .e-list-text,
.e-ddt.e-popup.employees_tree_multiple .e-list-text,
.e-ddt.e-popup.employees_tree_single .e-list-text,
.e-ddt.e-popup.canteen_dishes_type_tree .e-list-text,
.e-ddt.e-popup.canteen_build_menu_plate_tree .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;
}

/* Status / state icons in grid cells (SVGs have large intrinsic size without explicit dimensions). */
.portal-grid-imagem {
    width: 20px;
    height: 20px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    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 .icon {
    width: 16px !important;
    height: 16px !important;
}

.grid_action_icon_button img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    object-fit: contain;
}

.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_view_details {
    background-image: url('/images/svg/buttons/menu_visualizar_e_editar_b.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button .e-btn-icon.icon_approve_employee {
    background-image: url('/images/svg/buttons/botao_aprovar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button .e-btn-icon.icon_reject_employee {
    background-image: url('/images/svg/buttons/botao_desaprovar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button .e-btn-icon.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_approve_employee {
    background-image: url('/images/svg/buttons/botao_aprovar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_reject_employee {
    background-image: url('/images/svg/buttons/botao_desaprovar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_aplicar_row {
    background-image: url('/images/svg/buttons/botao_aplicar.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

.grid_action_icon_button.icon_recalculate_row {
    background-image: url('/images/svg/buttons/botao_recalcular_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('/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('/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;
}

/* Edit movements: sheet validation actions below grid (exports live on grid toolbar) */
.edit_movements_footer_actions {
    align-items: flex-start;
}

.edit_movements_footer_validate_only {
    justify-content: flex-end;
}

.edit_movements_export_icons {
    gap: 8px;
}

.edit_movements_sheet_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    max-width: none;
}

.edit_movements_sheet_button img {
    margin-right: 8px;
    vertical-align: middle;
}

.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-item .e-btn-icon.toolbar_export_icon {
    width: 22px !important;
    height: 22px !important;
}

/* RequestExchange: vertical gap between bulk schedule / apply row and the grid below. */
.request_exchange_grid_below_bulk {
    margin-top: 18px;
}

/* Centers icon groups in Syncfusion grid cells (inline-flex alone stays content-sized and hugs the left edge). */
.portal_grid_icon_cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.portal_grid_icon_cell_double {
    gap: 6px;
    flex-wrap: wrap;
}

/* Row action clusters with three or more icon buttons (e.g. approve + reject + edit). */
.portal_grid_icon_cell_row_actions {
    gap: 6px;
    flex-wrap: wrap;
}

/* Syncfusion RowDataBound: hide built-in row command buttons on protected rows (pattern from Syncfusion KB). */
.portal_grid_row_suppress_commands .e-rowcell.e-unboundcell .e-unboundcelldiv .portal_grid_row_edit_command,
.portal_grid_row_suppress_commands .e-rowcell.e-unboundcell .e-unboundcelldiv .portal_grid_row_delete_command,
.portal_grid_row_suppress_commands .e-rowcell.e-unboundcell .e-unboundcelldiv .portal_grid_row_save_command,
.portal_grid_row_suppress_commands .e-rowcell.e-unboundcell .e-unboundcelldiv .portal_grid_row_cancel_command {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Syncfusion grid edit dialog: custom EditTemplate columns do not show HeaderText as labels — use PortalGridDialogField. */
.portal_grid_dialog_field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

.portal_grid_dialog_field_label {
    margin-bottom: 0;
    font-weight: 400;
    font-size: 13px;
    color: #323537;
}

.portal_grid_dialog_field_editor {
    width: 100%;
    min-width: 0;
}

/* Grid edit dialog: .filter-item inside a field editor must span full width (global cap is 25%). */
.portal_grid_dialog_field_editor > .filter-item {
    min-width: 0;
    max-width: none;
    width: 100%;
}

.portal_grid_dialog_field_editor .employee_photo_upload_label {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.35;
    padding: 8px 12px;
}

/* PortalTreatmentTimeInput: intrinsic width inside dialog field (editor div is 100% wide). */
.portal_grid_dialog_field_editor > .portal_treatment_time_input {
    display: inline-flex;
    max-width: 100%;
}

.portal_treatment_time_input .e-input-group.e-control-wrapper {
    width: auto !important;
}

/* Checkbox inline (dialog): control left, caption right */
.portal_grid_dialog_field_checkbox_inline {
    margin-bottom: 10px;
}

.portal_grid_dialog_field_checkbox_inline_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.portal_grid_dialog_field_checkbox_cell {
    flex: 0 0 auto;
}

.portal_grid_dialog_field_checkbox_caption {
    flex: 1 1 auto;
    font-weight: 400;
    font-size: 13px;
    color: #323537;
    line-height: 1.3;
}

/* Inline-edit row (no dialog labels): checkbox stays left */
.portal_grid_dialog_field_editor_checkbox_row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* Active toggle (ico_toggle_ativo2 / ico_toggle_inativo2) */
.portal_active_toggle_field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.portal_active_toggle_field_label {
    display: block;
    margin: 0;
    padding-bottom: 1px;
}

.portal_active_toggle_field_control {
    display: flex;
    align-items: center;
    min-height: 0;
    margin: 0;
    padding: 0;
}

.form-group .portal_active_toggle_field_control {
    /* Match Syncfusion text input row height in compact forms */
    min-height: 20px;
}

.portal_active_toggle {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    line-height: 0;
    vertical-align: middle;
}

.portal_active_toggle:focus-visible {
    outline: 2px solid #92c849;
    outline-offset: 2px;
    border-radius: 999px;
}

.portal_active_toggle:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.portal_active_toggle_img {
    display: block;
    height: 20px;
    width: auto;
    max-width: 100%;
}

.portal_grid_icon_cell .portal_active_toggle {
    justify-content: center;
    width: 100%;
}

.portal_grid_icon_cell .portal_active_toggle_img {
    height: 16px;
}

/* Employee Training grid: edit dialog ~50% width on tablet/desktop; below md breakpoint Syncfusion default (typical full-width on phones). */
@media (min-width: 768px) {
    .e-dialog.portal_training_grid_edit_dialog {
        width: 50% !important;
    }
}

/* Treatment grid: narrower edit dialog on tablet/desktop (capped so it stays compact on wide screens). */
@media (min-width: 768px) {
    .e-dialog.portal_treatment_grid_edit_dialog {
        width: min(800px, 50vw) !important;
    }
}

/* Treatment edit dialog: vertically center checkbox cells next to taller label+input columns */
.e-dialog.portal_treatment_grid_edit_dialog .row.g-3 > .col-lg-3:has(.portal_grid_dialog_field_checkbox_inline) {
    display: flex;
    align-items: center;
}

/* Syncfusion grid edit dialog: blank header (HeaderTemplate) replaces default "Details of {primary key}" title */
.e-grid .e-dlg-header .portal_employee_grid_dialog_blank_title {
    display: block;
    line-height: 0;
    min-height: 0;
}

/* Absences inline-edit dialog: compact size, hidden title bar */
.e-dialog.portal_absences_dialog_grid_edit_dialog .e-dlg-header-content {
    padding: 4px 8px;
    min-height: 0;
}

.e-dialog.portal_absences_dialog_grid_edit_dialog .e-dlg-content {
    padding: 12px 16px 8px;
}

.e-dialog.portal_absences_dialog_grid_edit_dialog .e-footer-content {
    padding: 6px 16px 10px;
}

.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;
        justify-content: flex-start;
        gap: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-actions {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .page-actions .performance_survey_dashboard_header_menu {
        margin-left: auto;
    }

    .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,
.dashboard-nav-list: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: #aaaeb3;
    width: 95%;
}

.nav_lang {
    display: flex;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.lang_link img {
    width: 23px;
    height: auto;
}

.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 {
    width: 60%;
    vertical-align: middle;
}

.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 .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;
}

/* ===== Responsive ===== */
@media (min-width: 1280px) {
    .dashboard-compact .dashboard-nav {
        width: 80px !important;
        overflow: hidden;
        z-index: 1500;
    }
}

@media (max-width: 1279px) {
    .dashboard-nav,
    .dashboard > .e-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1070;
    }

    .dashboard-nav.mobile-show,
    .dashboard > .e-sidebar.mobile-show {
        display: flex !important;
        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;
    position: relative;
    z-index: 2;
}

.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;
    cursor: pointer;
    pointer-events: auto;
}

.chat_link img {
    width: 40px;
    vertical-align: middle;
}

.chat_ai {
    position: relative;
    display: inline-block;
}

.chat_ai_link {
    display: inline-block;
    position: relative;
    cursor: pointer;
    pointer-events: auto;
}

.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: #ff3b30;
    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;
}

.chat_notification #chatBadge {
    display: none;
}

.dialog_toolbar {
    width: 100%;
    padding: 2px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.1;
}

.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: #ef3f32;
    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_bar.expanded .chat_bar_content {
    display: flex;
    flex-direction: column;
}

.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: #ef3f32;
    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_title {
    font-family: 'Montserrat-SemiBold', 'Montserrat-Regular', sans-serif;
    font-size: 13px;
    color: #444;
}

.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: #ef3f32;
    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:#ef3f32; }

.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); }

/* ========== Agent selector (Helpdesk / Juridico) ========== */
.agent_selector {
    display: flex;
    align-items: center;
    gap: 6px;
}
.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 ========== */
/* Order required: SweetAlert > popups > chat > menu/topbar */
.swal2-container {
    z-index: 4000 !important;
}

/* Import report dialog: keep newlines when rendered as escaped text (see interop.js ShowImportReportDialog). */
.swal2-prewrap {
    white-space: pre-wrap;
    text-align: left;
}

.portal-swal-confirm-body {
    text-align: left;
}

.portal-swal-intro {
    margin: 0 0 0.75rem 0;
}

.portal-swal-bullet-list {
    margin: 0;
    padding-left: 1.25rem;
    max-height: 14rem;
    overflow-y: auto;
}

.portal-swal-bullet-list li {
    margin-bottom: 0.35rem;
}

.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,
.custom-scrollbar {
    z-index: 1000 !important;
}

.dashboard-toolbar {
    z-index: 1200 !important;
}

.movement_modal_dialog {
    max-width: 980px;
    width: min(94vw, 980px);
}

.movement_modal_content {
    border: 0;
    background: #ffffff;
}

.movement_modal.e-dialog {
    border-radius: 14px;
    overflow: hidden;
}

.movement_modal.e-dialog .e-dlg-header-content {
    background-color: var(--popup-background-color);
    border-bottom: 0;
    padding: 10px 16px;
}

.movement_modal.e-dialog .e-dlg-header,
.movement_modal.e-dialog .e-dlg-header *,
.movement_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;
}

/* Dashboard movement map dialog: larger map-first layout, minimal header (no title) */
.e-dialog.movement_modal_map_dialog,
.movement_modal_map_dialog.e-dialog {
    width: min(980px, 94vw) !important;
    max-width: 94vw;
    height: min(720px, 80vh) !important;
    max-height: 80vh;
}

.movement_modal_map_dialog.e-dialog .e-dlg-header-content {
    background-color: #ffffff;
    border-bottom: 1px solid #edebeb;
    padding: 2px 8px;
    min-height: 32px;
}

.movement_modal_map_dialog.e-dialog .e-dlg-closeicon-btn .e-icons {
    color: #323537;
}

/* Map-only dialogs (Movements, Dashboard): stretch Leaflet container to full content height below header */
.e-dialog.movement_modal_map_fill,
.movement_modal_map_fill.e-dialog {
    display: flex;
    flex-direction: column;
}

.e-dialog.movement_modal_map_fill .e-dlg-content,
.movement_modal_map_fill.e-dialog .e-dlg-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}

.e-dialog.movement_modal_map_fill .e-dlg-content .movement_map_container,
.movement_modal_map_fill.e-dialog .e-dlg-content .movement_map_container {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
}

/* Blazor/Syncfusion may wrap the fragment in an extra div under .e-dlg-content */
.e-dialog.movement_modal_map_fill .e-dlg-content > div,
.movement_modal_map_fill.e-dialog .e-dlg-content > div {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.portal_content_dialog.e-dialog,
.portal_content_dialog.e-dialog .e-dlg-content {
    border-radius: 14px;
    overflow: hidden;
}

.portal_content_dialog.e-dialog .e-dlg-header-content {
    background-color: var(--popup-background-color);
    border-bottom: 0;
    padding: 6px 14px;
}

.portal_content_dialog.e-dialog .e-dlg-header,
.portal_content_dialog.e-dialog .e-dlg-header *,
.portal_content_dialog.e-dialog .e-dlg-closeicon-btn .e-icons {
    color: #ffffff;
}

.portal_content_dialog_body {
    background: #ffffff;
    max-height: calc(100vh - 120px);
    overflow: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Treatment secondary dialogs (Ausências, Férias, Aprovações): fill fixed dialog height; scroll grid area only; footer at bottom */
.portal_content_dialog.portal_dialog_treatment_secondary.e-dialog {
    display: flex;
    flex-direction: column;
}

.portal_content_dialog.portal_dialog_treatment_secondary.e-dialog .e-dlg-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.portal_content_dialog.portal_dialog_treatment_secondary.e-dialog .e-dlg-content > .portal_content_dialog_body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: none;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_secondary_dialog_shell {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_secondary_dialog_shell .treatment_dialog_grid_region {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_secondary_dialog_shell .treatment_dialog_grid_region .portal-grid_wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_secondary_dialog_shell > .portal_dialog_footer_action_bar {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
}

/* Approvals: top bar + tab strip fills remaining height; each tab panel matches absences/vacations footer layout */
.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_dialog_root > .portal_dialog_top_action_bar {
    flex-shrink: 0;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_dialog_root > .treatment_approvals_tabs.e-tab {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_tabs.e-tab > .e-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_tabs.e-tab > .e-content > .e-item.e-active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_tab_panel {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_tab_panel .treatment_dialog_grid_region {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_tab_panel .treatment_dialog_grid_region .portal-grid_wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.portal_content_dialog.portal_dialog_treatment_secondary .treatment_approvals_tab_panel > .portal_dialog_footer_action_bar {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
}

/* Confirm/Save + Cancel pinned at bottom while scrolling long dialog forms (Data Assignment dialogs, etc.) */
.portal_dialog_footer_action_bar {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 2px 4px;
    margin: 16px 0 0;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
}

/* Top toolbar: employee context + primary actions — sticky while dialog body scrolls (mirrors portal_dialog_footer_action_bar). */
.portal_dialog_top_action_bar {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 4px 2px 14px;
    margin: 0 0 12px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.portal_dialog_top_action_bar_buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.portal_content_dialog_body .edit_movements_dialog_shell {
    box-sizing: border-box;
}

.portal_content_dialog_body .edit_movements_batch_top_bar_main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 20px;
    flex: 1 1 auto;
    min-width: min(280px, 100%);
}

.portal_content_dialog_body .edit_movements_batch_meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.portal_content_dialog_body .edit_movements_meta_line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
    font-size: 0.95rem;
    line-height: 1.35;
}

.portal_content_dialog_body .edit_movements_meta_label {
    font-weight: 600;
    color: #323537;
}

.portal_content_dialog_body .edit_movements_meta_value {
    color: #323537;
    word-break: break-word;
}

.portal_content_dialog_body .edit_movements_batch_filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    flex: 0 1 auto;
    min-width: 0;
}

.portal_content_dialog_body .edit_movements_batch_filter_date {
    flex: 0 0 auto;
    width: 160px;
    max-width: 100%;
}

.portal_content_dialog_body .edit_movements_batch_filter_date .e-control-wrapper,
.portal_content_dialog_body .edit_movements_batch_filter_date .e-input-group {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.portal_content_dialog_body .edit_movements_batch_filter_checkbox {
    padding-bottom: 2px;
}

.portal_content_dialog_body .edit_movements_batch_entries {
    width: 100%;
}

.portal_content_dialog_body .edit_movements_batch_entry {
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #d9d9d9;
}

.portal_content_dialog_body .edit_movements_batch_entry:last-child {
    margin-bottom: 0;
}

.portal_content_dialog_body .edit_movements_batch_entry_grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 16px;
    align-items: start;
}

.portal_content_dialog_body .edit_movements_batch_col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Syncfusion inputs fill their grid column (avoid shrink-to-content width). */
.portal_content_dialog_body .edit_movements_batch_col .edit_movements_batch_control_fill,
.portal_content_dialog_body .edit_movements_add_form .form-group.compact-field {
    width: 100%;
    max-width: 100%;
}

.portal_content_dialog_body .edit_movements_batch_col .edit_movements_batch_control_fill .e-control-wrapper,
.portal_content_dialog_body .edit_movements_batch_col .e-ddl:not(.e-popup),
.portal_content_dialog_body .edit_movements_batch_col .e-input-group,
.portal_content_dialog_body .edit_movements_batch_col .e-float-input.e-control-wrapper,
.portal_content_dialog_body .edit_movements_batch_col .e-time-wrapper,
.portal_content_dialog_body .edit_movements_add_form .e-input-group,
.portal_content_dialog_body .edit_movements_add_form .e-float-input.e-control-wrapper,
.portal_content_dialog_body .edit_movements_add_form .e-ddl,
.portal_content_dialog_body .edit_movements_add_form .e-time-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.portal_content_dialog_body .edit_movements_batch_col .edit_movements_batch_control_fill input.e-input,
.portal_content_dialog_body .edit_movements_add_form input.e-input {
    width: 100% !important;
    box-sizing: border-box;
}

.portal_content_dialog_body .edit_movements_batch_entry_actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.portal_content_dialog_body .edit_movements_add_form {
    padding-top: 4px;
}

.portal_content_dialog_body .edit_movements_add_entry_grid {
    margin-bottom: 12px;
}

.portal_content_dialog_body .edit_movements_add_span_cols {
    grid-column: span 2;
}

.portal_content_dialog_body .edit_movements_add_reason_row {
    margin-top: 4px;
}

.portal_content_dialog_body .edit_movements_add_reason_row .edit_movements_add_reason_field.form-group.compact-field {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100%;
    min-width: 0;
}

.portal_content_dialog_body .approve_movements_add_dialog_tree_full_width.filter-item.filter-tree {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.portal_content_dialog_body .approve_movements_add_dialog_tree_full_width.filter-item.filter-tree .e-ddl {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

.portal_content_dialog_body .edit_movements_add_flags_row.form-row.compact-row {
    align-items: center;
    margin-top: 4px;
}

.portal_content_dialog_body .edit_movements_add_flags_row .form-group.compact-field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.portal_content_dialog_body .edit_movements_add_flags_row .edit_movements_add_telework_field {
    justify-content: center;
}

.portal_content_dialog_body .edit_movements_add_justification_row {
    margin-top: 4px;
}

.portal_content_dialog_body .edit_movements_add_justification_field {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

.portal_content_dialog_body .edit_movements_add_justification_field .e-control-wrapper,
.portal_content_dialog_body .edit_movements_add_justification_field .e-input-group,
.portal_content_dialog_body .edit_movements_add_justification_field .e-float-input,
.portal_content_dialog_body .edit_movements_add_justification_field .e-multi-line-input {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 86px !important;
    box-sizing: border-box;
}

.portal_content_dialog_body .edit_movements_add_justification_field textarea.e-input,
.portal_content_dialog_body .edit_movements_add_justification_textbox textarea.e-input,
.portal_content_dialog_body textarea.edit_movements_add_justification_textbox.e-input {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 86px !important;
    height: 86px !important;
    box-sizing: border-box;
    resize: vertical;
}

.portal_content_dialog_body .edit_movements_add_justification_textbox.e-input-focus,
.portal_content_dialog_body .edit_movements_add_justification_textbox.e-input-group.e-input-focus,
.portal_content_dialog_body .edit_movements_add_justification_textbox.e-control-wrapper.e-input-focus {
    min-height: 86px !important;
}

.portal_content_dialog_body .edit_movements_add_telework_field {
    justify-content: flex-end;
}

.portal_content_dialog_body .edit_movements_add_checkbox_label_spacer {
    visibility: hidden;
}

.portal_content_dialog_body .edit_movements_add_checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .portal_content_dialog_body .edit_movements_batch_entry_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portal_content_dialog_body .edit_movements_add_span_cols {
        grid-column: span 2;
    }
}

@media (max-width: 520px) {
    .portal_content_dialog_body .edit_movements_batch_entry_grid {
        grid-template-columns: 1fr;
    }

    .portal_content_dialog_body .edit_movements_add_span_cols {
        grid-column: span 1;
    }
}

/* Compact data-assignment dialogs: one field group per row */
.portal_content_dialog_body .data_assignment_dialog_form_compact .form-row.compact-row {
    flex-direction: column;
    align-items: stretch;
}

.portal_content_dialog_body .data_assignment_dialog_form_compact .form-row.compact-row .form-group {
    max-width: 100%;
    min-width: 0;
    width: 100%;
    flex: 1 1 auto;
    padding-right: 0;
}

/* Single control spanning dialog width (department picker, proof-of-life date, etc.) */
.portal_content_dialog_body .portal_dialog_field_full.form-group {
    max-width: 100%;
    flex: 1 1 100%;
    min-width: 0;
}

/* Data assignment — multiple movements: two fields per row (50% / 50%). */
.portal_content_dialog_body .data_assignment_movements_dialog .form-row.compact-row .form-group.compact-field {
    flex: 1 1 50% !important;
    max-width: 50%;
    min-width: 0;
}

/* Same dialog on narrow viewports: .form-row goes column (global @media) but the rule above still
   caps fields at 50% — only justification had a full-width override, so controls looked squeezed. */
@media (max-width: 768px) {
    .portal_content_dialog_body .data_assignment_movements_dialog .form-row.compact-row .form-group.compact-field {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100%;
    }
}

/* Monthly scale — profile add/edit: two columns (legacy month schedule profiles). */
.portal_content_dialog_body .monthly_scale_profile_edit_dialog .form-row.compact-row {
    align-items: flex-start;
}

.portal_content_dialog_body .monthly_scale_profile_edit_dialog .form-row.compact-row > .form-group {
    flex: 1 1 50% !important;
    max-width: 50%;
    min-width: 0;
}

.portal_content_dialog_body .monthly_scale_profile_edit_dialog .form-row.compact-row > .form-group:only-child {
    flex: 1 1 100% !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .portal_content_dialog_body .monthly_scale_profile_edit_dialog .form-row.compact-row > .form-group {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100%;
    }
}

/* Data assignment — employee parameters: long checkbox text wraps inside the form column. */
.portal_content_dialog_body .data_assignment_parameters_dialog .form-row.compact-row {
    align-items: flex-start;
}

/* Data assignment — overtime types: grid scroll inside dialog (legacy ASPxGridView). */
.portal_content_dialog_body .data_assignment_type_extra_hours_dialog_grid_wrap {
    max-height: min(55vh, 420px);
    overflow: auto;
    width: 100%;
    margin-top: 8px;
}

.portal_content_dialog_body .data_assignment_parameters_dialog .form-row.compact-row .form-group.compact-field {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.portal_content_dialog_body .data_assignment_parameters_dialog .form-group.form-group-min-width {
    min-width: 0 !important;
}

/* Absence detail dialog: 2-column form layout */
.portal_content_dialog_body .absence_detail_dialog .form-row.compact-row .form-group.compact-field {
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
}

@media (max-width: 768px) {
    .portal_content_dialog_body .absence_detail_dialog .form-row.compact-row .form-group.compact-field {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100%;
    }
}

.portal_content_dialog_body .data_assignment_tri_checkbox {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.portal_content_dialog_body .data_assignment_tri_checkbox .e-checkbox-wrapper,
.portal_content_dialog_body .data_assignment_tri_checkbox .e-css.e-checkbox-wrapper {
    flex: 0 0 auto;
    margin-top: 2px;
}

.portal_content_dialog_body .data_assignment_tri_checkbox_label {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    cursor: pointer;
    box-sizing: border-box;
}

.portal_content_dialog_body .data_assignment_tri_checkbox_label:disabled {
    cursor: default;
}

/* Full-page loading (legacy WebForms Loading.ascx parity: dimmed overlay + spinning brand SVG). */
.portal_loading_overlay {
    position: fixed;
    inset: 0;
    z-index: 999990;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
    cursor: wait;
}

.portal_loading_container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal_loading_spin_wrap {
    display: inline-block;
    width: 100px;
    height: 100px;
    animation: portal_loading_spin 1.5s linear infinite;
    transform-origin: 50% 50%;
}

.portal_loading_svg {
    display: block;
    width: 100px;
    height: 100px;
    object-fit: contain;
}

@keyframes portal_loading_spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#components-reconnect-modal.portal_reconnect_modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999991;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

#components-reconnect-modal.portal_reconnect_modal.components-reconnect-show,
#components-reconnect-modal.portal_reconnect_modal.components-reconnect-retrying,
#components-reconnect-modal.portal_reconnect_modal.components-reconnect-failed,
#components-reconnect-modal.portal_reconnect_modal.components-reconnect-rejected {
    display: flex;
    pointer-events: auto;
}

.portal_reconnect_dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 28px 32px;
    max-width: 420px;
    width: calc(100% - 32px);
    text-align: center;
}

.portal_reconnect_panel {
    display: none;
}

.portal_reconnect_message_retrying {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .portal_reconnect_panel_progress,
#components-reconnect-modal.components-reconnect-retrying .portal_reconnect_panel_progress {
    display: block;
}

#components-reconnect-modal.components-reconnect-show .portal_reconnect_message_first_attempt,
#components-reconnect-modal.components-reconnect-retrying .portal_reconnect_message_retrying {
    display: block;
}

#components-reconnect-modal.components-reconnect-retrying .portal_reconnect_message_first_attempt {
    display: none;
}

#components-reconnect-modal.components-reconnect-failed .portal_reconnect_panel_failed {
    display: block;
}

#components-reconnect-modal.components-reconnect-rejected .portal_reconnect_panel_rejected {
    display: block;
}

.portal_reconnect_message {
    margin: 16px 0 0;
    color: #323537;
    font-family: "Montserrat-Regular", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.portal_reconnect_button {
    margin-top: 16px;
    padding: 8px 18px;
    border: 1px solid #323537;
    border-radius: 4px;
    background: #fff;
    color: #323537;
    cursor: pointer;
    font-family: "Montserrat-Regular", sans-serif;
    font-size: 14px;
}

.portal_reconnect_button:hover {
    background: #f2f2f2;
}

.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;
}

.zones_map_page .movement_map_column {
    min-height: calc(100vh - 220px);
}

.zones_map_page .movement_map_container {
    min-height: calc(100vh - 220px);
    height: calc(100vh - 220px);
}

.zones_map_details_page .movement_map_column {
    min-height: 500px;
    margin-top: 16px;
}

.zones_map_details_page .movement_map_container {
    min-height: 500px;
    height: 500px;
}

.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: #ef4a3d;
    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: #ef4a3d;
}

.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%;
}

/* SfTab content wrapper only — not .e-grid .e-gridcontent .e-content (breaks header/body row alignment). */
.employee_details_tab > .e-content {
    padding-top: 12px;
    overflow: visible !important;
}

/* Do not set overflow-x on toolbar-items: native scrolling conflicts with SfTab arrow clicks (ScrollStep 0 + wrong scroll metrics can jump to the last tab in one step). */
.employee_details_tab .e-toolbar-items {
    overflow-y: hidden;
    max-width: 100%;
}

/* Device details: child SfGrids are wide; tab panel uses overflow visible on > .e-content which hides horizontal scroll. */
.employee_details_tab.device_details_tab_shell > .e-content {
    overflow-x: auto !important;
    overflow-y: visible;
    max-width: 100%;
    min-width: 0;
}

.employee_details_tab.device_details_tab_shell .e-grid .e-gridcontent {
    overflow-x: auto !important;
}

.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-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600;
    color: #323537;
    width: 100%;
    display: block;
}

.tab_section_separator:first-child {
    margin-top: 5px;
}

.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;
}

/* Monthly scale — "Dias do mês": title + grouped actions (Limpar / Copiar escala / Aplicar). */
.tab_section_separator.employee_access_terminals_header.monthly_scale_days_section_header > .label-separator {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #323537 !important;
    line-height: 1.3;
}

.monthly_scale_days_section_header_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

.tab_section_separator.device_details_section_header_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tab_section_separator.device_details_section_header_actions .portal-botao.e-btn {
    flex-shrink: 0;
    width: auto !important;
    max-width: none !important;
}

/* Section title next to actions: Syncfusion .e-control * forces 11px on descendants — match other tab_section_separator headings. */
.tab_section_separator.device_details_section_header_actions > span:first-of-type,
.tab_section_separator.device_details_section_header_actions > .label-separator {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #323537 !important;
    line-height: 1.3;
}

/* Configuration (SfTab): tab content padding and section separator layout */
.configuration_tab {
    margin-top: 10px;
}

/* SfTab content wrapper only — not nested SfGrid .e-content scroll areas. */
.configuration_tab > .e-content {
    padding: 12px;
    overflow: visible !important;
}

.configuration_tab .employee_data_col > .separator {
    margin: 20px 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ededed;
    width: 100%;
    display: block;
}

.configuration_tab .employee_data_col > .separator:first-child {
    margin-top: 5px;
}

.configuration_tab .separator.separator_configuration {
    margin: 20px 0 10px 0;
}

.configuration_tab .separator.configuration_advanced_toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.configuration_tab .separator.configuration_advanced_toggle:hover {
    opacity: 0.7;
}

.configuration_tab .configuration_advanced_icon {
    font-size: 12px;
}

/* Device details > Operations: 4 columns, gaps, content-sized (no full-width flex columns). */
.device_details_operations_tab .device_details_operations_button_grid {
    display: grid;
    grid-template-columns: repeat(4, max-content);
    column-gap: 1.25rem;
    row-gap: 1rem;
    justify-content: start;
    justify-items: start;
    align-content: start;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 1.25rem;
}

.device_details_operations_tab .device_details_operations_button_cell {
    min-width: 0;
}

.device_details_operations_tab .device_details_operations_button_cell .portal-botao.e-btn {
    width: auto !important;
    max-width: 22rem !important;
    white-space: normal !important;
    text-align: center;
    line-height: 1.25;
}

.device_details_action_button_row.form-row {
    flex-wrap: wrap;
}

.device_details_action_button_row .form-group:has(.portal-botao) {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

.device_details_action_button_row .portal-botao.e-btn {
    width: auto !important;
    max-width: none !important;
}

/* Portal primary buttons: custom SVG icons via IconCss (span.e-btn-icon.icon). */
.portal-botao .e-btn-icon.icon {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    margin-right: 5px !important;
    display: inline-block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.portal-botao .e-btn-icon.icon::before {
    content: none !important;
}

/* Replace background-image per asset when final SVGs exist; names match DeviceDetails SfButton IconCss. */
.icon.icon_device_operations_import_users {
    background-image: url('/images/svg/buttons/menu_terminais_importar_utilizadores.svg');
}

.icon.icon_device_operations_import_movements {
    background-image: url('/images/svg/buttons/menu_terminais_importar_movimentos.svg');
}

.icon.icon_device_operations_delete_admins {
    background-image: url('/images/svg/buttons/menu_terminais_eliminar_administrador.svg');
}

.icon.icon_device_operations_sync_clock {
    background-image: url('/images/svg/buttons/menu_terminais_sinclonizar_relogio.svg');
}

.icon.icon_device_operations_sync_schedule {
    background-image: url('/images/svg/buttons/menu_terminais_enviar_horarios.svg');
}

.icon.icon_device_operations_set_parameters {
    background-image: url('/images/svg/buttons/menu_terminais_configuracoes.svg');
}

.icon.icon_device_operations_delete_all_data {
    background-image: url('/images/svg/buttons/menu_terminais_limpar-memoria_do_terminal.svg');
}

.icon.icon_device_operations_restart {
    background-image: url('/images/svg/buttons/menu_terminais_reiniciar_terminal.svg');
}

.icon.icon_device_operations_default_inbio {
    background-image: url('/images/svg/buttons/menu_terminais_valores_por_defeito_inbiopro.svg');
}

.icon.icon_device_operations_suprema_detect_slave {
    background-image: url('/images/svg/buttons/botao_pesquisar_b.svg');
}

.icon.icon_device_operations_suprema_door {
    background-image: url('/images/svg/buttons/botao_abrir_porta_b.svg');
}

.icon.icon_device_operations_suprema_rs485 {
    background-image: url('/images/svg/buttons/botao_link_b.svg');
}

.icon.icon_device_operations_suprema_auth {
    background-image: url('/images/svg/buttons/botao_password_utilizador_b.svg');
}

.icon.icon_device_operations_suprema_system {
    background-image: url('/images/svg/buttons/menu_terminais_sincronizar.svg');
}

/* Same asset as /Devices/Sync (EmployeesDeviceSync) primary action. */
.icon.icon_device_sync {
    background-image: url('/images/svg/buttons/botao_sincronizar.svg');
}

.icon.icon_device_operations_sync_inbio_events {
    background-image: url('/images/svg/buttons/botao_sincronizar.svg');
}

.icon.icon_device_operations_sync_inbio_multicard {
    background-image: url('/images/svg/buttons/botao_sincronizar.svg');
}

/* Generic placeholder: use IconCss="icon icon_device_operations_placeholder" until a dedicated SVG is added. */
.icon.icon_device_operations_placeholder {
    background-image: none;
    background-color: #bdbdbd;
    border-radius: 3px;
}

/* 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-button {
    flex: 0 0 auto;
    min-width: unset;
    max-width: unset;
}

.form-group-button .e-btn {
    width: auto;
}

.form-group-spacer {
    flex: 1;
    min-width: 0;
    max-width: unset;
}

.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;
}

/* Settings > Parameters, company tab: logo preview must stay 225×75 (reports / legacy ASPxImagePhoto).
   Scoped CSS alone can miss; flex column parent gives logo wrapper min-height:auto from huge SVG intrinsic size. */
.form-configuration .configuration_logo_wrapper {
    width: 225px;
    max-width: 225px;
    height: 75px;
    max-height: 75px;
    min-height: 0;
    min-width: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: #fff;
    box-sizing: border-box;
    overflow: hidden;
}

.form-configuration .configuration_logo_img {
    width: 225px;
    height: 75px;
    max-width: 225px;
    max-height: 75px;
    min-width: 0;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    display: block;
    box-sizing: border-box;
}

/* Parameters company logo: same upload control as EmployeeDetails (employee_photo_*), narrow column = preview width. */
.form-configuration .configuration_logo_upload_col {
    width: 225px;
    max-width: 100%;
    min-width: 0;
    align-self: flex-start;
    align-items: stretch;
}

/* 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;
}


/* Form rows + EmployeeDetails tab strips: checkbox label wrap (size from --portal-checkbox-size).
   Use flex (block-level) instead of inline-flex so the wrapper is constrained by the parent width and the label wraps correctly.
   !important is required to override Syncfusion's own .e-checkbox-wrapper rules. */
.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: flex !important;
    align-items: flex-start !important;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

/* The <label> inside the wrapper is the actual flex item — it must be constrained so the text span
   does not grow beyond the wrapper's width. */
.form-group .e-checkbox-wrapper > label,
.form-group .e-css.e-checkbox-wrapper > label,
.employee_details_tab .filter-item .e-checkbox-wrapper > label,
.employee_details_tab .filter-container > .e-checkbox-wrapper > label,
.device_sync_filter_delete .e-checkbox-wrapper > label {
    display: flex !important;
    align-items: flex-start !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    overflow: hidden;
}

.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;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    min-width: 0 !important;
    flex: 1 1 0 !important;
}

/* 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 and size 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;
    font-size: 11px !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_inbio_door_port_row {
    margin-bottom: 1.25rem;
}

.device_details_grid_dialog_field {
    margin-bottom: 0.85rem;
}

.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;
}

/* Beat Syncfusion .e-control * (11px) inside tabs and other e-control shells */
.e-control .separator > .label-separator,
.separator .label-separator {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #323537 !important;
    line-height: 1.3;
}

.separator_configuration {
    margin: 15px 0 0 0;
}

.employee_data_col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* Employee > Parâmetros tab > Telemóvel: empty labels were removed; align row tops so row height matches Geral checkbox rows. */
.employee_details_parameters_mobile .form-row.compact-row {
    align-items: flex-start;
}

.employee_form_row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: flex-end;
    flex-wrap: wrap;
}

/* Employee details header: fixed 3-column grid so Syncfusion spin/dropdown chrome does not skew column widths. */
.employee_details_header_form {
    width: max-content;
    max-width: 100%;
}

.employee_details_header_form .employee_form_row {
    display: grid;
    grid-template-columns: repeat(3, 200px);
    gap: 10px;
    width: max-content;
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: end;
}

.employee_details_header_form .employee_form_group_medium,
.employee_details_header_form .employee_form_group_small {
    flex: unset;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.employee_details_header_form .employee_form_group_span_2 {
    grid-column: span 2;
}

.employee_details_header_form .employee_form_group_span_3 {
    grid-column: 1 / -1;
}

.employee_details_header_form .employee_form_group > .e-control-wrapper,
.employee_details_header_form .employee_form_group > .e-ddl,
.employee_details_header_form .employee_form_group > .e-input-group,
.employee_details_header_form .employee_form_group > .e-ddt,
.employee_details_header_form .employee_form_group > .e-multi-select-wrapper,
.employee_details_header_form .employee_form_group .e-control-wrapper {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

.employee_details_header_form .employee_notes_textarea {
    width: 100%;
}

.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_details_header_form .employee_form_row {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .employee_details_header_form .employee_form_group_span_2,
    .employee_details_header_form .employee_form_group_span_3 {
        grid-column: 1;
    }

    .employee_form_group,
    .employee_form_group_small,
    .employee_form_group_medium,
    .employee_form_group_large {
        width: 100%;
        min-width: unset;
        flex: 1 1 100%;
    }
}

/* Material request: list status column icons; details message row action alignment */
.material_request_status_icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    vertical-align: middle;
}

.warning_details_form_shell .buttons-right {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

/* 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;
    transition: border-color 0.15s ease, background-color 0.15s ease, border-style 0.15s ease;
}

/* Visible hint behind the transparent file input (input stays on top for click / drag-drop). */
.drop_zone_documents .drop_zone_documents_hint {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.35;
    transition: color 0.15s ease, font-weight 0.15s ease;
}

.drop_zone_documents.drop_zone_documents_drag_over {
    border-color: var(--color-sf-primary) !important;
    border-style: solid;
    background-color: var(--primary-100);
}

.drop_zone_documents.drop_zone_documents_drag_over .drop_zone_documents_hint {
    color: var(--color-sf-primary);
    font-weight: 600;
}

.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;
    z-index: 1;
}

/* Temperature dashboard: full-width radio row; split summary (normal / elevated) */
.temperature_dashboard_filter_shell.filter-container {
    width: 100%;
}

.temperature_dashboard_filter_shell > .temperature_dashboard_filter_radios_host.filter-item {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
}

.temperature_dashboard_filter_radios {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    column-gap: 1.25rem;
    box-sizing: border-box;
}

.performance_survey_my_surveys_filter_host.filter-item {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: 1 1 100%;
}

.performance_survey_my_surveys_filter_radios {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    column-gap: 1.25rem;
    box-sizing: border-box;
}

.performance_survey_my_surveys_filter_radios .e-radio + label,
.performance_survey_my_surveys_filter_radios .e-radio-btn-wrap {
    white-space: nowrap;
}

.temperature_dashboard_summary_row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    flex: 1 1 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    align-items: center;
}

.temperature_dashboard_summary_half {
    flex: 1 1 50%;
    min-width: 0;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}

.temperature_dashboard_summary_normal {
    color: #137333;
}

.temperature_dashboard_summary_elevated {
    color: #b3261e;
}

/* 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;
}

.info_templates table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.info_templates table th,
.info_templates table td {
    padding: 6px 10px;
    border: 1px solid #e8e8e8;
    vertical-align: top;
    text-align: left;
    line-height: 1.4;
}

.info_templates table thead th {
    font-weight: 600;
    background-color: #f5f5f5;
}

.info_templates table th:first-child,
.info_templates table td:first-child {
    width: 30%;
    border-right: 1px solid #ccc;
}

.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-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;
}

/* Vacation calendar (VacationsOverall / DepartmentVacations): colors from CSS variables (server-driven). */
.vacation_calendar_legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.vacation_calendar_legend_chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    background-color: var(--vac-legend-bg, #eee);
    color: var(--vac-legend-fg, #000);
}

.vacation_calendar_month_heading {
    margin: 16px 0 8px;
    font-size: 1.05rem;
}

.vacation_calendar_month_wrap {
    overflow-x: auto;
}

/* VacationsOverall: single combined table (multi-month tbody blocks). */
.vacation_overall_root {
    margin-top: 8px;
}

.vacation_overall_footer_bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 10px 0 8px;
}

.vacation_overall_excel_btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.vacation_overall_excel_btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.vacation_overall_excel_btn_icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
}

.vacation_interactive_legend_with_export {
    flex: 1 1 auto;
    margin: 0;
    min-width: 0;
}

.vacation_overall_grid_wrap {
    overflow-x: auto;
    margin-bottom: 8px;
}

.vacation_overall_grid {
    border-collapse: collapse;
    width: 100%;
    min-width: 560px;
    font-size: 11px;
}

.vacation_overall_month_block {
    border-bottom: 1px solid #e0e0e0;
}

.vacation_overall_month_heading {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    padding: 10px 6px 6px;
    background: #f5f5f5;
}

.vacation_overall_col_number,
.vacation_overall_col_name,
.vacation_overall_col_department {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 4px 6px;
    white-space: nowrap;
}

.vacation_overall_col_number {
    min-width: 52px;
    text-align: center;
}

.vacation_overall_col_name {
    min-width: 120px;
}

.vacation_overall_col_department {
    min-width: 100px;
}

.vacation_overall_col_day {
    border: 1px solid #e0e0e0;
    padding: 2px;
    text-align: center;
    min-width: 44px;
}

.vacation_overall_cell_number,
.vacation_overall_cell_name,
.vacation_overall_cell_department {
    border: 1px solid #e0e0e0;
    padding: 2px 6px;
    vertical-align: middle;
    background: #fff;
}

.vacation_overall_cell_number {
    text-align: center;
}

.vacation_overall_cell_day {
    border: 1px solid #e0e0e0;
    padding: 1px;
    text-align: center;
    vertical-align: middle;
}

.vacation_overall_cell_aggregate {
    border: 1px solid #e0e0e0;
    padding: 2px 4px;
    text-align: center;
    background: #fafafa;
    font-weight: 600;
}

.vacation_overall_row_total .vacation_overall_cell_number,
.vacation_overall_row_total .vacation_overall_cell_name,
.vacation_overall_row_total .vacation_overall_cell_aggregate {
    background: #ececec;
}

.vacation_overall_row_total .vacation_overall_cell_name {
    font-weight: 600;
}

.vacation_overall_grid .vacation_interactive_day {
    width: 100%;
    min-height: 36px;
}

/* Performance survey group results consult: stacked tbody blocks per evaluation group. */
.performance_survey_group_results_root {
    margin-top: 8px;
}

.performance_survey_group_results_section {
    margin-bottom: 24px;
}

.performance_survey_group_results_section:last-of-type {
    margin-bottom: 8px;
}

.performance_survey_group_results_grid_wrap {
    overflow-x: auto;
    margin-bottom: 12px;
}

.performance_survey_group_results_grid {
    border-collapse: collapse;
    width: 100%;
    min-width: 420px;
    font-size: 12px;
}

.performance_survey_group_results_block {
    border-bottom: 1px solid #e0e0e0;
}

.performance_survey_group_results_heading {
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    padding: 10px 6px 6px;
    background: #f5f5f5;
}

.performance_survey_group_results_col_survey,
.performance_survey_group_results_col_weight,
.performance_survey_group_results_col_score {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    padding: 4px 8px;
    white-space: nowrap;
    text-align: left;
}

.performance_survey_group_results_col_weight,
.performance_survey_group_results_col_score {
    text-align: right;
    min-width: 90px;
}

.performance_survey_group_results_col_survey {
    min-width: 200px;
}

.performance_survey_group_results_cell_survey,
.performance_survey_group_results_cell_weight,
.performance_survey_group_results_cell_score {
    border: 1px solid #e0e0e0;
    padding: 6px 8px;
    vertical-align: middle;
    background: #fff;
}

.performance_survey_group_results_cell_weight,
.performance_survey_group_results_cell_score {
    text-align: right;
}

.performance_survey_group_results_row_total .performance_survey_group_results_cell_survey,
.performance_survey_group_results_row_total .performance_survey_group_results_cell_weight,
.performance_survey_group_results_row_total .performance_survey_group_results_cell_score {
    background: #ececec;
}

.performance_survey_group_results_row_total .performance_survey_group_results_cell_survey {
    font-weight: 600;
}

.performance_survey_group_results_chart_inline {
    margin-bottom: 4px;
}

.performance_survey_group_results_chart_scale_host {
    width: 100%;
}

.performance_survey_group_results_chart_scale {
    width: 100%;
}

.performance_survey_group_results_chart_legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 24px;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #323537;
}

.performance_survey_group_results_chart_legend_total {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.performance_survey_group_results_chart_legend_dash {
    display: inline-block;
    width: 24px;
    border-top: 2px dashed #e64a30;
}

.performance_survey_group_results_chart_legend_item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.performance_survey_group_results_chart_legend_swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.performance_survey_group_results_chart_legend_swatch_above {
    background-color: #9ccd5a;
}

.performance_survey_group_results_chart_legend_swatch_below {
    background-color: #e64a30;
}

@media (max-width: 768px) {
    .performance_survey_group_results_root {
        margin-top: 4px;
    }

    .performance_survey_group_results_section {
        margin-bottom: 6px;
    }

    .performance_survey_group_results_section:last-of-type {
        margin-bottom: 2px;
    }

    .performance_survey_group_results_grid_wrap {
        margin-bottom: 3px;
    }

    .performance_survey_group_results_grid {
        font-size: 9px;
        min-width: 280px;
    }

    .performance_survey_group_results_heading {
        font-size: 0.75rem;
        padding: 2px 4px 1px;
    }

    .performance_survey_group_results_col_survey,
    .performance_survey_group_results_col_weight,
    .performance_survey_group_results_col_score {
        padding: 1px 2px;
    }

    .performance_survey_group_results_col_weight,
    .performance_survey_group_results_col_score {
        min-width: 52px;
    }

    .performance_survey_group_results_col_survey {
        min-width: 110px;
    }

    .performance_survey_group_results_cell_survey,
    .performance_survey_group_results_cell_weight,
    .performance_survey_group_results_cell_score {
        padding: 1px 2px;
    }

    .performance_survey_group_results_chart_scale_host {
        height: calc(var(--performance_survey_group_results_chart_height, 280px) * 0.25);
        overflow: hidden;
    }

    .performance_survey_group_results_chart_scale {
        transform: scale(0.25);
        transform-origin: top left;
        width: 400%;
    }

    .performance_survey_group_results_chart_inline {
        margin-bottom: 1px;
    }

    .performance_survey_group_results_chart_legend {
        gap: 2px 6px;
        margin-top: 2px;
        font-size: 0.65rem;
    }

    .performance_survey_group_results_chart_legend_dash {
        width: 10px;
    }

    .performance_survey_group_results_chart_legend_swatch {
        width: 8px;
        height: 8px;
    }

    .performance_survey_group_results_root .vacation_overall_footer_bar {
        margin: 3px 0 2px;
        gap: 4px 6px;
    }

    .performance_survey_group_results_root .vacation_overall_excel_btn_icon {
        width: 18px;
        height: 18px;
    }
}

/* Performance survey evaluation group detail: percentage total footer row (dashboard green / orange). */
.portal-grid.performance_survey_evaluation_group_percent_total_ok .e-summarycell {
    background-color: #e9f4db !important;
    font-weight: 600;
}

.portal-grid.performance_survey_evaluation_group_percent_total_ok .e-summarycell .performance_survey_evaluation_group_percent_total_value,
.performance_survey_evaluation_group_percent_total_value.performance_survey_evaluation_group_percent_total_ok {
    color: #9ccd5a !important;
    font-weight: 600;
}

.portal-grid.performance_survey_evaluation_group_percent_total_warn .e-summarycell {
    background-color: #f6e3e3 !important;
    font-weight: 600;
}

.portal-grid.performance_survey_evaluation_group_percent_total_warn .e-summarycell .performance_survey_evaluation_group_percent_total_value,
.performance_survey_evaluation_group_percent_total_value.performance_survey_evaluation_group_percent_total_warn {
    color: #e64a30 !important;
    font-weight: 600;
}

.performance_survey_score_relative_bar_host {
    width: 100%;
    min-width: 72px;
}

.performance_survey_score_relative_bar_host .e-progressbar .e-progress-label {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.performance_survey_score_relative_bar_host.performance_survey_score_relative_bar_zero .e-progressbar-track {
    background-color: #e64a30 !important;
}

.performance_survey_scale_icon_template_bar {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 8px;
}

.performance_survey_scale_icon_template_row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.performance_survey_scale_icon_template_card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    padding: 3px 6px;
    border: 1px solid #d5d8dc;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.performance_survey_scale_icon_template_card_selected {
    border-color: #323537;
    box-shadow: 0 0 0 1px #323537;
}

.performance_survey_scale_icon_template_preview_img {
    width: 18px;
    height: 18px;
}

.performance_survey_scale_icon_template_clear_btn {
    flex-shrink: 0;
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
}

.performance_survey_scale_option_icon_cell {
    gap: 6px;
}

.performance_survey_scale_choice_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    gap: 8px;
    margin-top: 8px;
}

.performance_survey_scale_question_choices .performance_survey_scale_choice_row {
    justify-content: center;
}

.performance_survey_scale_question_choices .performance_survey_scale_choice_item {
    align-items: center;
    text-align: center;
}

.performance_survey_scale_question_choices .performance_survey_scale_choice_label,
.performance_survey_scale_question_choices .performance_survey_scale_choice_description {
    text-align: center;
    width: 100%;
}

.performance_survey_scale_question_choices .performance_survey_scale_choice_item .e-radio-btn-wrap {
    justify-content: center;
}

.performance_survey_scale_choice_item {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    padding: 8px 4px;
    box-sizing: border-box;
    border: 3px solid transparent;
    border-radius: 6px;
}

.performance_survey_scale_choice_item .e-radio-btn-wrap,
.performance_survey_scale_choice_item .e-radio + label {
    width: auto;
}

.performance_survey_scale_choice_item_selected {
    border-color: #323537;
}

.performance_survey_scale_choice_label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 4px;
    word-break: break-word;
}

.performance_survey_scale_choice_description {
    margin-top: 0;
    margin-bottom: 6px;
    text-align: left;
}

.performance_survey_scale_choice_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.performance_survey_scale_choice_icon:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.performance_survey_scale_choice_icon_img {
    width: auto;
    height: auto;
    min-width: 24px;
    min-height: 24px;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
}

.performance_survey_single_choice_description {
    margin-left: 28px;
    margin-top: 2px;
    margin-bottom: 4px;
}

.performance_survey_layout_builder {
    margin-top: 12px;
}

.performance_survey_layout_header_grid .e-row .e-rowcell,
.performance_survey_layout_footer_grid .e-row .e-rowcell {
    background-color: #f9f3ca;
}

.performance_survey_layout_row_page .e-rowcell {
    background-color: #deefc8;
}

.performance_survey_layout_row_html .e-rowcell {
    background-color: #f9f3ca;
}

.separator.device_details_section_header_actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.separator.device_details_section_header_actions .monthly_scale_days_section_header_actions .portal-botao.e-btn {
    flex-shrink: 0;
    width: auto !important;
    max-width: none !important;
}

.performance_survey_question_header .label-separator {
    display: block;
}

.performance_survey_question_header .performance_survey_question_description {
    margin-top: 4px;
    margin-bottom: 0;
}

.performance_survey_text_answer_field {
    width: 50%;
    max-width: 100%;
}

.performance_survey_text_answer_textarea {
    width: 100%;
    min-height: 120px;
    font-size: 15px;
    resize: vertical;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .performance_survey_text_answer_field {
        width: 100%;
    }
}

.performance_survey_html_block {
    margin-top: 8px;
    margin-bottom: 12px;
}

.e-richtexteditor .e-rte-content,
.e-richtexteditor .e-rte-content p,
.e-richtexteditor .e-rte-content li,
.e-richtexteditor .e-rte-content span,
.e-richtexteditor .e-rte-content div {
    font-family: 'Montserrat-Regular', Helvetica, Arial, sans-serif;
}

.recruitment_vacancy_job_ad_shell {
    width: 100%;
    max-width: 100%;
}

.recruitment_vacancy_job_ad_shell .e-richtexteditor {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100%;
    height: 480px;
}

.recruitment_vacancy_job_ad_shell .e-richtexteditor .e-rte-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Public careers guest shell: ~3x the login card width (470px). */
.guest_layout_careers .login_logo,
.guest_layout_careers .login_form_container {
    max-width: min(1410px, 94vw);
}

.guest_layout_careers .login_form {
    padding: 32px 48px;
}

.guest_layout_careers .recruitment_careers_job_ad_content {
    max-height: none;
}

.recruitment_careers_vacancy_card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.recruitment_careers_vacancy_meta .form-group span {
    display: block;
    line-height: 1.4;
}

.recruitment_careers_vacancy_description {
    margin: 0.75rem 0 0 0;
    line-height: 1.45;
    color: #323537;
    white-space: normal;
    word-break: break-word;
}

.recruitment_careers_job_ad_shell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.recruitment_careers_job_ad_content {
    min-height: 320px;
    max-height: min(70vh, 720px);
    overflow-y: auto;
    padding: 1rem 1.25rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    line-height: 1.5;
    box-sizing: border-box;
}

.recruitment_careers_job_ad_content p {
    margin: 0 0 0.75rem 0;
}

.recruitment_careers_job_ad_content p:last-child {
    margin-bottom: 0;
}

.recruitment_careers_job_ad_content ul,
.recruitment_careers_job_ad_content ol {
    margin: 0 0 0.75rem 1.25rem;
    padding: 0;
}

.recruitment_careers_job_ad_content li {
    margin-bottom: 0.35rem;
}

.performance_survey_wizard_indicator {
    margin: 16px 0 0 0;
    font-weight: normal;
    text-align: right;
}

.performance_survey_page_navigation {
    margin-top: 16px;
}

.performance_survey_page_navigation .monthly_scale_days_section_header_actions:first-child {
    justify-content: flex-start;
}

.performance_survey_wizard_nav {
    margin-top: 16px;
}

.performance_survey_response_shell {
    width: 100%;
}

.performance_survey_response_page {
    padding: 8px 24px 24px 24px;
}

/* Fixed action icons: top-right below app toolbar (no page header on survey response/preview). */
.performance_survey_response_floating_actions {
    position: fixed;
    top: calc(60px + 6px);
    right: 24px;
    z-index: 1100;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .performance_survey_response_floating_actions {
        top: calc(60px + 6px);
    }
}

.vacation_calendar_day_cell {
    display: block;
    padding: 2px 4px;
    min-height: 1.25em;
    font-size: 11px;
    white-space: nowrap;
    background-color: var(--vac-cell-bg, #fff);
    color: var(--vac-cell-fg, #000);
}

/* Interactive vacation calendar (annual single-employee marking). */
.vacation_interactive_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.vacation_interactive_action_active.e-btn {
    box-shadow: 0 0 0 2px rgba(50, 53, 55, 0.25);
}

.vacation_interactive_summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.vacation_legacy_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.vacation_legacy_actions_group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vacation_legacy_actions_trailer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

.vacation_legacy_action.e-btn.e-primary,
.vacation_legacy_action.e-btn.e-primary:hover,
.vacation_legacy_action.e-btn.e-primary:focus,
.vacation_legacy_action.e-btn.e-primary:active {
    min-height: 24px;
    padding: 3px 12px;
    border: 1px solid #bdbdbd;
    border-radius: 0;
    box-shadow: none;
    color: #000;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.vacation_legacy_action_mark.e-btn.e-primary,
.vacation_legacy_action_mark.e-btn.e-primary:hover,
.vacation_legacy_action_mark.e-btn.e-primary:focus,
.vacation_legacy_action_mark.e-btn.e-primary:active,
.vacation_legacy_action_mark_half.e-btn.e-primary,
.vacation_legacy_action_mark_half.e-btn.e-primary:hover,
.vacation_legacy_action_mark_half.e-btn.e-primary:focus,
.vacation_legacy_action_mark_half.e-btn.e-primary:active {
    background: #efe15f;
}

.vacation_legacy_action_unmark.e-btn.e-primary,
.vacation_legacy_action_unmark.e-btn.e-primary:hover,
.vacation_legacy_action_unmark.e-btn.e-primary:focus,
.vacation_legacy_action_unmark.e-btn.e-primary:active {
    background: #fff;
}

.vacation_legacy_action_approve.e-btn.e-primary,
.vacation_legacy_action_approve.e-btn.e-primary:hover,
.vacation_legacy_action_approve.e-btn.e-primary:focus,
.vacation_legacy_action_approve.e-btn.e-primary:active {
    background: #93c949;
}

.vacation_legacy_action_active.e-btn.e-primary {
    outline: 2px solid rgba(50, 53, 55, 0.35);
    outline-offset: 1px;
}

.vacation_interactive_legend {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 10px 0 8px;
    font-size: 11px;
}

.vacation_interactive_legend_row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 10px;
    align-items: center;
}

.vacation_interactive_footer_split {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px 16px;
    margin: 10px 0 8px;
}

.vacation_interactive_footer_split > .vacation_legacy_summary {
    flex: 1 1 calc(50% - 8px);
    min-width: min(100%, 320px);
    margin-top: 0;
    text-align: left;
}

.vacation_interactive_footer_split > .vacation_interactive_legend {
    flex: 1 1 calc(50% - 8px);
    min-width: min(100%, 320px);
    margin: 0;
}

.vacation_interactive_legend_align_end {
    align-items: stretch;
    width: 100%;
}

.vacation_interactive_legend_align_end .vacation_interactive_legend_row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
}

.vacation_interactive_legend_row .vacation_interactive_legend_item {
    min-width: 0;
}

.vacation_interactive_legend_item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vacation_interactive_legend_chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 16px;
    padding: 1px 4px;
    border: 1px solid #d8d8d8;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.vacation_legacy_summary {
    margin-top: 8px;
    font-size: 11px;
    line-height: 1.45;
}

.vacation_legacy_summary_row {
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
    min-height: 16px;
}

.vacation_legacy_notes {
    width: min(320px, 100%);
    margin-top: 10px;
    font-size: 11px;
}

.vacation_legacy_notes label {
    display: block;
    margin-bottom: 3px;
}

.vacation_legacy_notes_field {
    width: 100%;
    min-height: 34px;
    padding: 4px 6px;
    border: 1px solid #d8d8d8;
    resize: vertical;
}

.vacation_interactive_wrap {
    width: 100%;
    overflow-x: hidden;
    padding-bottom: 6px;
}

.vacation_interactive_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    font-size: 10px;
}

.vacation_interactive_table th,
.vacation_interactive_table td {
    min-width: 0;
    height: 30px;
    padding: 0;
    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    text-align: center;
    vertical-align: middle;
}

.vacation_interactive_table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    height: 24px;
    background: #f5f6f7;
    font-weight: 600;
}

.vacation_interactive_month_header,
.vacation_interactive_month_name {
    position: sticky;
    left: 0;
    z-index: 3;
    width: 82px;
    padding: 0 5px !important;
    background: #f5f6f7;
    text-align: left !important;
    white-space: nowrap;
}

.vacation_interactive_month_name {
    font-weight: 600;
}

.vacation_interactive_empty {
    background: #f9f9f9;
}

.vacation_interactive_day {
    display: flex;
    width: 100%;
    min-height: 30px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.vacation_interactive_day:disabled {
    cursor: not-allowed;
}

.vacation_interactive_day_number {
    font-size: 9px;
    line-height: 1;
}

.vacation_interactive_day_text {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
    text-overflow: clip;
}

.vacation_interactive_day_workday {
    background: #fff;
}

.vacation_interactive_day_weekend {
    background: var(--vacation-weekend-bg, #a0a0a0);
    color: var(--vacation-weekend-fg, #000);
}

.vacation_interactive_day_holiday {
    background: var(--vacation-holiday-bg, #f7abbe);
    color: var(--vacation-holiday-fg, #000);
}

.vacation_interactive_day_marked {
    background: #efe15f;
    color: #000;
}

.vacation_interactive_day_approved {
    background: #93c949;
    color: #000;
}

.vacation_interactive_day_in_approval {
    background: #d0773c;
    color: #000;
}

.vacation_interactive_day_absence {
    background: var(--vac-cell-bg, #ff8000);
    color: var(--vac-cell-fg, #000);
}

.vacation_interactive_day_pending {
    outline: 2px solid #323537;
    outline-offset: -2px;
}

.vacation_interactive_day_department_conflict {
    border: 2px solid #d32f2f;
}

.vacation_interactive_day_locked {
    opacity: 0.55;
}

@media (max-width: 768px) {
    .vacation_interactive_table th,
    .vacation_interactive_table td {
        height: 26px;
    }

    .vacation_interactive_day {
        min-height: 26px;
    }

    .vacation_interactive_month_header,
    .vacation_interactive_month_name {
        width: 64px;
        font-size: 9px;
    }
}

/* Service scale planning grid. */
/* Build service scales: Pareto solution picker (AI generation). */
.build_service_scales_pareto_strip {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

.build_service_scales_pareto_header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.build_service_scales_pareto_title {
    margin: 0;
    font-weight: 700;
}

.build_service_scales_pareto_hint {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.build_service_scales_pareto_solutions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.build_service_scales_pareto_solution.e-btn,
.build_service_scales_pareto_solution.e-btn:hover,
.build_service_scales_pareto_solution.e-btn:focus,
.build_service_scales_pareto_solution.e-btn:focus-visible,
.build_service_scales_pareto_solution.e-btn:active {
    text-transform: none;
    white-space: normal;
    min-height: 44px;
    background: #e9f4db !important;
    border: 1px solid #e0e0e0 !important;
    color: #323537 !important;
    box-shadow: none !important;
}

.build_service_scales_pareto_solution_selected.e-btn,
.build_service_scales_pareto_solution_selected.e-btn:hover,
.build_service_scales_pareto_solution_selected.e-btn:focus,
.build_service_scales_pareto_solution_selected.e-btn:focus-visible,
.build_service_scales_pareto_solution_selected.e-btn:active {
    background: #93c94b !important;
    border: 1px solid #323537 !important;
    color: #323537 !important;
    box-shadow: none !important;
}

.build_service_scales_pareto_solution_label {
    display: block;
    font-weight: 700;
    font-size: 11px;
}

.build_service_scales_pareto_solution_metrics {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    white-space: normal;
}

/* Build service scales: same toolbar button look as VacationsCalendar (vacation_legacy_*); inline Style sets shift colours. */
.build_service_scales_schedule_strip {
    margin-bottom: 10px;
}

.build_service_scales_schedule_strip .vacation_legacy_action.e-btn.e-primary,
.build_service_scales_schedule_strip .vacation_legacy_action.e-btn.e-primary:hover,
.build_service_scales_schedule_strip .vacation_legacy_action.e-btn.e-primary:focus,
.build_service_scales_schedule_strip .vacation_legacy_action.e-btn.e-primary:active {
    text-transform: none;
    white-space: normal;
    min-height: 28px;
    min-width: 60px;
}

.build_service_scales_schedule_button_text {
    display: inline-block;
    line-height: 1.15;
    white-space: pre-line;
    font-size: 10px !important;
    font-weight: 700;
}

.build_service_scales_export_footer {
    justify-content: flex-start;
}

.build_service_scales_rules_section {
    width: 100%;
    margin-top: 12px;
    margin-bottom: 4px;
}

.build_service_scales_rules_heading {
    margin: 0 0 4px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #d9d9d9;
    font-size: 12px;
    font-weight: 600;
    color: #323537;
}

.build_service_scales_operation_row {
    margin-top: 4px;
    margin-bottom: 12px;
    max-width: 100%;
}

.build_service_scales_legend_strip .filter-item {
    font-size: 10px;
    padding: 2px 6px;
    min-height: 0;
}

.build_service_scales_grid_wrap {
    width: 100%;
    overflow: auto;
    padding-bottom: 6px;
}

.build_service_scales_grid {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

.build_service_scales_grid th,
.build_service_scales_grid td {
    min-width: 56px;
    height: 28px;
    padding: 1px 4px;
    border-right: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.build_service_scales_grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f6f7;
    font-weight: 600;
    font-size: 10px;
}

.build_service_scales_number_header,
.build_service_scales_number_cell {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 52px !important;
    max-width: 52px;
    width: 52px;
    background: #f5f6f7;
}

.build_service_scales_name_header,
.build_service_scales_name_cell {
    position: sticky;
    left: 52px;
    z-index: 3;
    min-width: 140px !important;
    max-width: 220px;
    width: 220px;
    background: #f5f6f7;
    text-align: left !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.build_service_scales_grid thead .build_service_scales_number_header,
.build_service_scales_grid thead .build_service_scales_name_header {
    z-index: 4;
}

.build_service_scales_day_header,
.build_service_scales_day_cell {
    min-width: 34px !important;
    width: 34px;
    padding: 0 !important;
}

.build_service_scales_cell_button,
.build_service_scales_total_cell {
    display: flex;
    width: 100%;
    min-height: 26px;
    align-items: center;
    justify-content: center;
    border: 0;
    font: inherit;
    font-size: 10px;
}

.build_service_scales_cell_button {
    cursor: pointer;
}

.build_service_scales_cell_button:hover {
    outline: 2px solid rgba(50, 53, 55, 0.3);
    outline-offset: -2px;
}

.build_service_scales_cell_blocked {
    cursor: not-allowed;
}

.build_service_scales_cell_rule_violation {
    border: 2px solid #e65035 !important;
}

.build_service_scales_summary_cell {
    background: #808080;
    color: #ffffff;
}

.build_service_scales_total_row td {
    background: #d3d3d3;
    color: #000000;
}
/* Employee list — quick add: 2 columns — name|number, department|birth, gender|marital, admission|vacations */
.filters.employee_quick_add_form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.filters.employee_quick_add_form .filter-item {
    min-width: 0;
    max-width: none;
}

.filters.employee_quick_add_form .employee_quick_add_form_row_split {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

.filters.employee_quick_add_form .employee_quick_add_form_row_split .filter-item {
    min-width: 0;
}

/* Employee list — quick add: three primary buttons in one row */
.filter-container.employee_quick_add_actions {
    display: grid;
    flex-wrap: unset;
    align-items: stretch;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 1.5rem;
}

.employee_quick_add_actions .e-btn {
    width: 100%;
    box-sizing: border-box;
}

/* Build menu — add/edit dishes dialog: fields use full dialog width (global .filter-item caps at 25%). */
.build_menu_plate_dialog_form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.build_menu_plate_dialog_form .filter-item,
.build_menu_plate_dialog_form .filter-item.filter-tree {
    min-width: 0;
    max-width: none;
    width: 100%;
}

.filter-container.build_menu_plate_dialog_actions {
    margin-top: 1.25rem;
    margin-bottom: 0;
    justify-content: flex-end;
}

/* Build menu add/edit dialog: allow nested Syncfusion popups to overflow the panel. */
.build_menu_plate_dialog.e-dialog,
.build_menu_plate_dialog.e-dialog .e-dlg-content {
    overflow: visible;
}

/* DropDownTree popup for dishes: this is only a first-paint fallback. The actual stacking
   above the SfDialog is enforced dynamically in JS (interop.js:
   portalRaiseSyncfusionPopupAboveDialogs), because Syncfusion assigns each SfDialog an
   ever-increasing internal z-index (observed ~999992, not the documented ~1000 default),
   so no fixed CSS value here can be guaranteed to stay above it. */
.e-ddt.e-popup.canteen_build_menu_plate_tree {
    z-index: 1000000 !important;
}

/* Monthly scale calendar grid */
.grid_month_schedule {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
    margin-top: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.row_month_schedule {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid #e0e0e0;
    min-width: 700px;
}

.row_month_schedule:last-child {
    border-bottom: none;
}

.row_month_schedule_header {
    background-color: #f5f5f5;
    font-weight: 600;
    font-size: 13px;
    color: #323537;
}

.row_month_schedule_header .group_month_schedule {
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
}

.group_month_schedule {
    flex: 1;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    padding: 6px 4px;
    border-right: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.group_month_schedule:last-child {
    border-right: none;
}

.group_month_schedule_week {
    flex: 0 0 56px;
    min-width: 56px;
    max-width: 56px;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    font-size: 12px;
    color: #666;
}

.group_month_schedule_empty {
    background-color: #fafafa;
}

.month_day_number {
    font-size: 11px;
    font-weight: 600;
    color: #555;
    margin-bottom: 3px;
    text-align: right;
    padding-right: 2px;
}

.month_week_number {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-align: center;
}

/* ScheduleDetails: color preview label — fills the form-group column with the schedule's back/text colors */
.schedule_color_preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid #ccc;
}

.portal_color_dropdown_item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 24px;
}

.portal_color_swatch {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #ccc;
    border-radius: 2px;
    box-sizing: border-box;
}

.portal_color_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal_color_dropdown.e-input-group .e-input {
    padding-left: 4px;
}

.portal_color_picker {
    max-width: 100%;
}

.portal_color_picker .e-colorpicker-wrapper {
    width: 100%;
}
