/* .ff-list {
    border-radius: 3px;
    border-color: var(--ag-input-border-color,var(--ag-border-color,#babfc7));
    padding: 1px;
} */

.tag-label {
    /* margin-right: 1px; */
}

.extra-item-label {
    display: inline;
    line-height: 1;
    font-size: 75%;
    padding: .2em .6em .3em;
    text-align: center;
    white-space: nowrap;
    border-radius: .25em;
}

.ag-root-wrapper {
    border-radius: 4px;
}

.ag-theme-alpine {
    /* use theme parameters where possible */
    /* --ag-foreground-color: deeppink; */
    --ag-header-background-color: #556471;
    --ag-selected-row-background-color: rgba(33, 150, 243, .3);
    /* --ag-header-foreground-color: #fff; */
}

.ag-theme-alpine .ag-header-cell-label,
.ag-theme-alpine .ag-header-icon,
.ag-theme-alpine .ag-header-icon .ag-icon {
    color: #fff !important;
    /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif agGridAlpine; */
}

/*
    Angular grid component
*/
.grid-container {
    height: 100%;
}

/* update required if row height changes from 40px */

:root {
    --grid-row-height: 39px;
}

.grid-container .tag-renderer {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--grid-row-height);
}

.grid-container .tag-renderer .tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    flex: 1;
}

.grid-container .tag-renderer .tag-container button {
    position: relative;
    bottom: -1px;
}

.grid-container .button-renderer .button-container {
    display: flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: var(--grid-row-height);
}

.grid-container .button-renderer button i.fa {
    margin-right: 4px;
}

/* sector renderer */
.grid-container .sector-renderer {
    width: 100%;
    height: var(--grid-row-height);
    display: flex;
    align-items: center;
}

.grid-container .sector-renderer .grid-sector {
    flex-grow: 1;
    display: flex;
    flex-flow: row nowrap;
    height: 70%;
    overflow: hidden;
}

.grid-container .sector-renderer .grid-sector .grid-section-fn {
    padding: 4px;
    height: 100%;
    line-height: 20px; /* Assuming row height of 40 */;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    flex-basis: 40px;
    flex-grow: 0;
}

.grid-container .sector-renderer .grid-sector .grid-section-fn>div {
    width: 100%;
}

.grid-container .sector-renderer .grid-sector .grid-section-od {
    flex-grow: 1;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #d3d3d3 !important;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.grid-container .sector-renderer .loc {
    flex-basis: 30%;
}

.grid-container .sector-renderer .arrow {
    flex-basis: 40%;
}

.grid-container .sector-renderer .arrow div {
    font-size: 0.8rem;
}

/* user renderer */
.grid-container .user-renderer {
    width: 100%;
    height: var(--grid-row-height);
    display: flex;
    align-items: center;
    line-height: initial;
}

.grid-container .user-renderer .grid-user {
    flex-grow: 1;
    display: flex;
    flex-flow: column nowrap;
    height: 80%;
    overflow: hidden;
    border-radius: 4px;
    justify-content: center;
}

.grid-container .user-renderer .grid-user .user-name {
    width: 100%;
    flex-grow: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    padding: 0 8px;
}

.grid-container .user-renderer .grid-user .employee-code {
    width: 100%;
    font-size: 0.9rem;
}

/*
    select 2 overrides
*/
.ag-floating-filter-input .select2-container .select2-selection--single,
.ag-floating-filter-input .select2-container .select2-selection--multiple {
    height: 24px;
}

.ag-floating-filter-input .select2-container--default .select2-selection--single .select2-selection__rendered,
.ag-floating-filter-input .select2-container--classic .select2-selection--single .select2-selection__rendered {
    line-height: 24px;
}

.ag-floating-filter-input .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 22px;
}

.ag-floating-filter-input .select2-container .select2-selection--single .select2-selection__clear,
.ag-floating-filter-input .select2-container .select2-selection--multiple .select2-selection__clear {
    line-height: 22px;
    color: #999;
}

.select2-container .select2-results__option.select2-results__option--highlighted {
    background-color: #bcdffb;
    color: inherit;
}

.select2-container .select2-results__option.select2-results__option[aria-selected=true] {
    background-color: #94cfff;
}