/* ============================================================
   9. TABLES & GRIDS
   ============================================================ */

/*------------------------------------------------------------*/
/*- 				@Grid									 -*/
/*------------------------------------------------------------*/
.ui-table-th-nowrap th {white-space:nowrap}
.caption .ui-toggle-layout {font-size: 13px;}
.caption .ui-toggle-layout .btn {padding-left: 8px;padding-right: 8px;padding-top: 1px;}
.caption .ui-pagination .btn-secondary {color: #797979;background-color: #fff;border-color: #ccc;}
.caption .btn-secondary {border-color: #ccc;color:var(--hyperlink-color)}
.caption .ui-pagination .btn-secondary:hover {color: #333;background-color: #e6e6e6;border-color: #adadad;}
.caption .ui-toggle-layout .btn.active {background-color: #e6e6e6}

.bs-panel.warning {border-color: #FFEFB0}
.bs-panel.warning .caption {background-color: #f1c500;color:white}
.bs-panel.success {border-color:var(--bs-success-border-subtle)}
.bs-panel.success .caption {background-color: var(--bs-success);color:white}

.grid-column-mng {max-height: 250px;overflow: auto;}
.grid-column-mng .fa-sort {display:none}
.grid-column-mng a:hover .fa-sort {display:inline-block}
.gd-container.ui-loading-lg {opacity:0.5}
.grid-tree  .ui-sortable-handle {cursor: move}
table {font-size: 13px}
table.scrollable {max-width: calc(100% - 10px)}
.grid-fixed-header td {padding:5px}
td.center {text-align:center !important}
td.center input {margin:auto}
td select,td textarea,td input {width:auto;max-width:250px;text-align:inherit}
tr.subtotal td {background-color:var(--cell-highlight)!important}
tr.ui-grid-total td {background-color:#FFEB3B!important}
td.liveUpdate {position:relative}
td.liveUpdate span {white-space: nowrap;}
td.liveUpdate.text-wrap span {white-space: normal}
td.liveUpdate span.liveWrapper {display:block;min-width:30px;margin:-5px;padding:5px;border:2px solid transparent;cursor:text}
td.liveUpdate:hover span.liveWrapper {border-color:var(--bs-border-color)}
td.liveUpdate > select {height:auto;background:inherit;color:inherit}
td span.ui-cell-editable.ui-dyn-droplist:has(select.ui-live-input) {display:block;width:100%}
td .ui-cell-editable select.ui-live-input {width:100%;max-width:100%}
td.text-success a {color: #A9D86E;}
td.ui-gd-textarea span {max-width:100px;white-space:normal}

.ui-gd-multiple .addrow {margin-left:10px}
.ui-gd-multiple-group {border: 1px dashed var(--bs-border-color);padding: 10px 5px;border-radius: 3px}
.ui-gd-multiple  select.input-sm {max-width:300px;min-width:60px}
.ui-gd-multiple .ui-sortable-handle {cursor:move}
.ui-gd-multiple .ui-sortable-handle:before {font-family:"Font Awesome 5 Pro";font-weight: 900;position:relative;content: "\f0c9";padding-top:5px}/*@fa-bars*/
.ui-gd-multiple .table-cell {padding: 0px 5px}

.ui-gd-multiple .table-cell.grid-table-label {
    font-weight: 600;
    font-size: 13px;
    text-align: left;
}
.table-cell input,td .form-control,td ul.token-input-list  {width: fit-content;font-size: .875rem;padding: .25rem 0.2rem 0.25rem 0.25rem}
td textarea.form-control {width:100%}

/*.gd-container.scrollable {overflow-y:hidden}*/
.widget-frame .fxgdp .gd-panel,.ox-sub-content .fxgdp .gd-panel {overflow-x: auto}
.fxgdp.noScroll .gd-panel {overflow-x: visible}

.grid-fixed-header {table-layout: fixed;margin: 0em;top: 0px;}
.grid-fixed-footer {table-layout: fixed;margin: 0em;bottom:0px;}
.grid-fixed-header,.grid-fixed-footer {empty-cells: show;border-collapse: collapse;border-spacing: 0;}
.bs-panel.w-border {border: 1px solid var(--bs-border-color);}
.tab-content .bs-panel.w-border {border:0}
tbody.scroll,thead.scroll,tfoot.scroll,tbody.scroll tr.nodata,tbody.scroll tr.nodata td  {display:block;}
.scrollVertical tbody {overflow-y: auto;overflow-x: hidden;}
.scrollVertical table.noscroll tbody {overflow: initial;height:auto}

table.resized tbody.scroll {min-height:200px}
table.table-bordered.scrollable  {border:0}
table.table-bordered.scrollable  thead tr {border-top:1px solid var(--bs-border-color)}
table.ui-grid-tiny-sb tbody::-webkit-scrollbar {width:5px;background-color:#cccccc;}
table.ui-grid-tiny-sb tbody::-webkit-scrollbar-thumb{background-color: rgb(232, 64, 63);border-radius:10px;}
table.ui-grid-tiny-sb tbody::-webkit-scrollbar-thumb:hover{background-color: rgb(232, 64, 63);border:1px solid #333333}
table.ui-grid-tiny-sb tbody::-webkit-scrollbar-thumb:active{background-color: rgb(232, 64, 63);border:1px solid #333333}

th.ui-gd-check {max-width:20px;}
th.th-header-truncate {width:200px;min-width:200px;max-width:200px;vertical-align:top;font-size:12px}
th.th-header-truncate .th-clamp {display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3;max-height:3.9em;white-space:normal;word-break:break-word}
td.nowrap a{
    white-space: normal;
    text-wrap: wrap;
    text-overflow: ellipsis;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.form-horizontal .ui-gd-multiple .form-group {margin:0}
.gd-no-scroll .gd-panel {overflow: initial !important;}
.ui-gd-modal-list {overflow-x:hidden}
.ui-gd-ck-sm,.ui-gd-col-xs {width:20px!important}
.ui-gd-col-sm {width:40px!important}

.ui-gd-col-auto {width:auto!important}
.ui-gd-modal-header {border-color: #eff2f7;font-size: 16px;font-weight:400;padding: 10px 15px;border-bottom: 1px solid #eff2f7;border-top-right-radius: 3px;border-top-left-radius: 3px;}

.ox-grid-colmng-filter input {height: 30px;padding: 3px 6px;text-indent: 20px}
.ox-grid-colmng-filter:before {color: #ddd;font-family: "Font Awesome 5 Pro";font-weight: 900;content: "\f002";position: absolute;font-size: 16px;padding: 5px}
.ox-grid-colmng ul {position: relative;overflow-x: hidden;overflow-y: auto;background: #fff;margin-top: 10px;border: 1px solid #ccc;height: calc(100vh - 150px);}
.ox-grid-colmng ul li {padding: 5px 6px;list-style: none;margin: 0;display: list-item;cursor: pointer;line-height: 15px;position: relative;background-color: #fff;border-bottom: 1px solid var(--bs-border-color);}
.ox-grid-colmng ul li .dragger {margin-right:10px}
.ox-grid-colmng ul li a {color: #555;}
.ox-grid-colmng ul li:hover {background:#d9edf7}

/* Column drag handle on th */
table[data-column-drag] thead th {position:relative}
table[data-column-drag] thead th .js-col-drag-handle {position:absolute;left:0;top:0;bottom:0;width:12px;cursor:grab}
table[data-column-drag] thead th.ui-sortable-helper {opacity:0.85;box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:100}
.ox-col-drag-placeholder {border:2px dashed var(--bs-border-color, #dee2e6)!important;background:transparent!important}

/* ============================================
   GRID SPACING
   ============================================ */

/* Modern gutter spacing */
.row.g-4 {
    --bs-gutter-x: 1.0rem;
    --bs-gutter-y: 1.0rem;
}

