:root{
    --table-row-height: 20px;
    --table-head-height: 20px;
    --table-head-icon-dim: 20px;

    --table-head-icon-dim-small: 16px;

    --table-bg: #DDD;
    --table-cell-bg: #EEE;
    --table-cell-shaded-bg: #e8e8e8;
    --table-head-bg: #FFF;

    --table-head-padding: 5px;
    --table-head-padding-small: 3px;
    --table-cell-padding: 5px;
    --table-cell-padding-small: 5px 3px;

    --table-sel-row-bg: #AAA;
    --table-action-hover-bg: #ccc;

    --pagination-text-col: #333;
    --pagination-icon-size: 20px;
    --paginatiopn-line-height: 20px;
    --pagination-sel-bg: var(--primary-lighter);
    --pagination-sel-text-col: #000;

    --filter-icon-size: 14px;

    --action-active-bg: var(--secondary-lighter);

    --table-shadow: drop-shadow(0px 0px 4px rgba(0,0,0,0.2));

    --table-sel-count-bg: #CCC;
    --stronger-bg: #FFF;
}

[data-theme="dark"] {
    --table-bg: #333;
    --table-cell-bg: #222;
    --table-cell-shaded-bg: #181818;
    --table-head-bg: #111;

    --table-sel-row-bg: #555;
    --table-action-hover-bg: #444;

    --pagination-text-col: #CCC;
    --pagination-sel-bg: var(--secondary-darker);
    --pagination-sel-text-col: #FFF;

    --action-active-bg: var(--secondary-darker);

    --table-shadow: drop-shadow(0 0 6px rgba(0,0,0,0.4));

    --table-sel-count-bg: #333;
    --stronger-bg: #000;
}



.roux-table
{
   background-color: var(--table-bg);
   /* margin-left: 10px; */
   /* margin-top: 10px; */
   /* padding: 5px; */
   /* border-radius: 15px;; */

   /* filter: var(--table-shadow); */
   /* transition: filter 0.4s; */
   /* box-shadow: 0 0 6px rgba(0,0,0,0.4); */
}

.roux-table th.sortable 
{
    cursor: pointer;
}

.roux-table td, .roux-table th 
{
    padding: 0px;
    /* vertical-align: top; */
    vertical-align: middle;
}

.roux-table .column-label
{
    display: flex;
    flex-direction: row;
    /* width: fit-content; */
    align-items: center;
    position: relative;
    padding: var(--table-head-padding);
    transition: color 0.4s, background-color 0.4s, border 0.4s;
    background-color: var(--table-head-bg);
    user-select: none; 

    height: var(--table-head-height);

    min-width: var(--table-head-icon-dim);
}

.roux-table.small .column-label
{
    padding: var(--table-head-padding-small);
}

.roux-table .column-label .column-label-icon
{
    width: var(--table-head-icon-dim);
    height: var(--table-head-icon-dim);

    padding-right: 6px;
    border-right: 2px solid var(--pane-label-image-div-line);
    margin-right: 5px;

    color: var(--pane-label-icon-color);
    transition: border-right 0.4s, color 0.4s, background-color 0.4s;  
}

.roux-table.small .column-label .column-label-icon
{
    width: var(--table-head-icon-dim-small);
    height: var(--table-head-icon-dim-small);

    padding-right: 3px;
    margin-right: 3px;
}


.column-label-icon > svg
{
    width: var(--table-head-icon-dim);
    height: var(--table-head-icon-dim);
}

.roux-table.small .column-label-icon > svg
{
    width: var(--table-head-icon-dim-small);
    height: var(--table-head-icon-dim-small);
}

.roux-table .column-label .column-label-text
{
    color: var(--input-label-text);

    transition: color 0.4s, background-color 0.4s;
    /* line-height: var(--input-line-height); */

    
    padding-right: 20px;
}

.roux-table .cell-value
{
    display: flex;
    flex-direction: row;
    /* width: fit-content; */
    align-items: center;
    position: relative;
    padding: var(--table-cell-padding);
    transition: color 0.4s, background-color 0.4s, border 0.4s;
    background-color: var(--table-cell-bg);
    /* user-select: none;  */

    height: var(--table-row-height);
    white-space: nowrap;
}

.roux-table .cell-value.no-select
{
    user-select: none; 
}

.roux-table .cell-value.wrappable
{
    white-space: wrap;
    height: unset;
}

.roux-table td.top-align
{
    vertical-align: top;
}

.roux-table .cell-value.v-small-pad
{
    padding: 2px 3px !important;
}

.roux-table .cell-value.color-text
{
    color: var(--primary);
}
/*
.roux-table .cell-value:has(input[type=checkbox]),
.roux-table-check-col
{
    display: flex;
    justify-content: center;
}
*/

.roux-table .cell-value.col-cell
{
    flex-direction: column;
    align-items: flex-start;
}

.roux-table .cell-value.stronger-bg
{
    background-color: var(--stronger-bg) !important;
}

.roux-table.wrap-text .cell-value, .roux-table.wrap-text .cell-value .cell-value-text
{
    white-space: normal;
    height: unset;
}

.roux-table .expand-zone .cell-value
{
    white-space: normal;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}

.roux-table.small .cell-value
{
    padding: var(--table-cell-padding-small);
}

.roux-table.small .cell-value:has(.roux-input)
{
    padding: 0px 3px;
}

.roux-table .cell-value .select2:has(.select2-selection--multiple),
.roux-table .cell-value .select2-selection.select2-selection--multiple
{
    background-color: transparent;
    padding: 0px;
}

.roux-table .cell-value .select2-container--default .select2-selection--multiple .select2-selection__rendered
{
    padding: 0px;
}

.roux-table tr.shaded .cell-value
{
    background-color: var(--table-cell-shaded-bg);
}

.roux-table tr.selected .cell-value
{
    background-color: var(--table-sel-row-bg);
}

.roux-table tr
{
    transition: background-color 0.4s;
}

.roux-table thead tr
{
    background-color: var(--table-head-bg);
}

.roux-table tbody tr
{
    background-color: var(--table-cell-bg);
}

.roux-table tbody tr.shaded
{
    background-color: var(--table-cell-shaded-bg);
}

.roux-table tbody tr.selected
{
    background-color: var(--table-sel-row-bg);
}

.roux-table .cell-value .cell-value-icon
{
    width: var(--pane-label-img);
    height: var(--pane-label-img);
    /* line-height: var(--pane-label-height); */

    /* padding-left: 10px; */
    padding-right: 6px;
    border-right: 2px solid var(--pane-label-image-div-line);
    margin-right: 5px;

    color: var(--pane-label-icon-color);
    transition: border-right 0.4s, color 0.4s, background-color 0.4s;  
}

.roux-table .cell-value .cell-value-icon.row-expander, 
.roux-table .cell-value .cell-value-icon.row-action
{
    padding-right: 0px;
    border-right: none;
    margin-right: 0px;
    cursor: pointer;
}

.roux-table .cell-value:has(.cell-value-icon:hover.row-expander), 
.roux-table .cell-value:has(.cell-value-icon:hover.row-action)
{
    background-color: var(--table-action-hover-bg);
}

.cell-value-icon > svg
{
    width: var(--pane-label-img);
    height: var(--pane-label-img);
}

.roux-table .cell-value .cell-value-text
{
    display: flex;
    flex-direction: row;
    /* width: fit-content; */
    align-items: center;
    
    color: var(--input-label-text);

    transition: color 0.4s, background-color 0.4s;
    /* line-height: var(--input-line-height); */

    padding-right: 20px;
    white-space: nowrap;
}

.column-label-text
{
    white-space: nowrap;
}

.table-toolbar-container
{
    background-color: inherit;
    padding-bottom: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.table-toolbar-container > *:not(:last-child) {
    margin-right: 5px;
  }

.table-toolbar-container.fixed-header
{
    position: sticky;
    top: 0;
    z-index: 1;
    overflow-x: auto;
}

.roux-table .fixed-header
{
    position: sticky;
    top: 40px;
    z-index: 1;
}

.roux-table .fixed-header-no-tb
{
    position: sticky;
    top: 0;
    z-index: 1;
}

.roux-table .fixed-col
{
    position: sticky;
    z-index: 2;
    left: 0;
    
}

.roux-table .fixed-left-top
{
    z-index: 3;
}

.roux-table .roux-input
{
    margin: 0px;
    padding-right: 0px;
}

.roux-table .expand-zone
{
    display: none;
    /* height: 400px; */
    /* background-color: #DDD; */
}

.roux-table .expand-zone.expanded
{
    display: table-row;
}

.roux-table .pagination-row
{
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.roux-table .pagination-row .pagination-rows
{
    color: var(--pagination-text-col);
    
    transition: color 0.4s, background-color 0.4s;

    line-height: var(--paginatiopn-line-height);
    margin-left: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--pagination-text-col);
    
    transition: color 0.4s, background-color 0.4s;

    /* line-height: var(--paginatiopn-line-height); */
    height: fit-content;
    padding-left: 5px;
}

.roux-table .pagination-row .page-selector-slot
{
    /* margin-right: 3px;     */
    width: fit-content;
    color: var(--pagination-text-col);
    
    transition: color 0.4s, background-color 0.4s;
    height: fit-content;

    line-height: var(--paginatiopn-line-height);

    display: flex;
    align-items: center;
}

.roux-table .pagination-row .page-selector-slot.first-slot
{
    margin-left: auto;
}

.roux-table .pagination-row .page-selector-slot.page-selector
{
    cursor: pointer;
    /* padding-left: 3px; */
    /* padding-right: 3px; */
    padding: 3px 5px;
    border-radius: 3px;
}

.roux-table .pagination-row .page-selector-slot.page-selector.active
{
    background-color: var(--pagination-sel-bg);
    color: var(--pagination-sel-text-col);
}

.roux-table .pagination-row .page-selector-slot.page-selector:hover
{
    background-color: var(--table-action-hover-bg);
}

.roux-table .pagination-row .page-selector-slot .page-chage-icon
{
    width: var(--pagination-icon-size);
    height: var(--pagination-icon-size);

    padding: 0px 2px;
    cursor: pointer;
    border-radius: 3px;
 
    color: var(--pagination-text-col);
    transition: border-right 0.4s, color 0.4s, background-color 0.4s;  
}

.page-chage-icon > svg
{
    width: var(--pagination-icon-size);
    height: var(--pagination-icon-size);

    line-height: var(--paginatiopn-line-height);
}

.roux-table .pagination-row .page-selector-slot .page-chage-icon:hover
{
    background-color: var(--table-action-hover-bg);
}

.roux-table-container {
    max-height: 650px;
    overflow: auto;
    width: fit-content;
    background-color: inherit;
}

.roux-table-fixed-width .roux-table-container
{
    width: 100%;
}

.roux-table-fixed-width .roux-table
{
    width: 100%;
}

.roux-table-container.fullscreen-table {
    position: fixed;
    top: 0;
    left: 0;
    /* z-index: 1050; */
    width: calc(100vw - 20px);
    background: var(--background-color);
    height: calc(100vh - 20px);
    overflow-y: scroll;
    /* padding: 10px; */
    border: 10px solid var(--background-color);
    max-height: calc(100vh - 20px);
}

.roux-table-holder
{
    background-color: inherit;
    overflow-x: auto;
    padding-bottom: 10px;
}

.roux-table-holder.med-height
{
    max-height: 500px;
    overflow-y: auto;
}

.roux-input:has(.roux-table-column-select-check){
    margin: 0px;
}

/*
.roux-table-container .roux-toolbar
{
    width: auto;
}

.roux-table-container.fullscreen-table .roux-toolbar
{
    width: fit-content;
}
*/

.roux-table-check-col
{
    width: 30px;
}

.roux-table.small .roux-table-check-col
{
    width: 26px;
}

.roux-table-expand-col
{
    width: 30px;
}

.roux-table-action-col
{
    width: 30px;
}

#testTable1
{
    width: 1500px;
}

.column-sort-icon
{
    margin-left: auto;

    width: var(--table-head-icon-dim);
    height: var(--table-head-icon-dim);

    /*
    padding-right: 6px;
    border-right: 2px solid var(--pane-label-image-div-line);
    margin-right: 5px;
    */
    color: var(--pane-label-icon-color);
    transition: border-right 0.4s, color 0.4s, background-color 0.4s;  
}

.column-sort-icon > svg
{
    width: var(--table-head-icon-dim);
    height: var(--table-head-icon-dim);
}

.column-sort-zone
{
    margin-left: auto;

    display: flex;
    flex-direction: row;
    align-items: center;
}

.column-filter-zone
{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.column-filter-icon
{
    width: var(--filter-icon-size);
    height: var(--filter-icon-size);

    /*
    padding-right: 6px;
    border-right: 2px solid var(--pane-label-image-div-line);
    margin-right: 5px;
    */
    color: var(--pane-label-icon-color);
    transition: border-right 0.4s, color 0.4s, background-color 0.4s;  
}

.column-filter-icon > svg
{
    width: var(--filter-icon-size);
    height: var(--filter-icon-size);
}

.column-action-button.action-active
{
    background-color: var(--action-active-bg);
    box-shadow: var(--button-bs-active);
}

.roux-toolbar-status-text
{
    margin-left: 5px;
    margin-right: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;

    text-wrap: nowrap;
}

.roux-toolbar-status-text .sel-count
{
    padding: 3px;
    background-color: var(--table-sel-count-bg);
    border-radius: 15px;
    min-width: 20px;
    text-align: center;
    margin-right: 5px;
}

.roux-input .editable-table-value
{
    width: 100%;
}

.roux-input:has(.editable-table-value)
{
    width: 100%;
    background: transparent;
}

.roux-input.editable-table-select-wrapper .select2-selection.select2-selection--single
{
    background: transparent;
}

.cell-value .status-indicator
{
    pointer-events: none; 
    display: inline-block;
    vertical-align: middle;
    width: var(--status-dot-dim); 
    height: var(--status-dot-dim); 
    border-radius:50%; 
    border: 1px solid var(--status-indicator-stroke);
    /*margin-left: 5px;*/

    transition: color 0.4s, background-color 0.4s, border-radius 0.4s;
}

.expand-zone .cell-value
{
    height: fit-content;
}

.column-select > .roux-input
{
    width: fit-content;
    margin-right: 5px;
}