.custom-table-shell{--kgrid-header-bg: var(--bs-secondary-bg, #f8f9fa);--kgrid-header-fg: var(--bs-body-color, #212529);--kgrid-header-link: var(--kgrid-header-fg);--kgrid-header-link-hover: var(--bs-primary, #0d6efd);--kgrid-filter-bg: transparent;--kgrid-row-border: var(--bs-border-color, #e9ecef);--kgrid-row-hover: rgba(13, 110, 253, .06);--kgrid-row-alt: transparent;--kgrid-surface: var(--bs-body-bg, #fff);--kgrid-muted: var(--bs-secondary-color, #6c757d);--kgrid-cell-pad-y: .65rem;--kgrid-cell-pad-x: .85rem;--kgrid-font-size: .875rem;--kgrid-edit-bg: rgba(13, 110, 253, .08);--kgrid-edit-accent: var(--bs-primary, #0d6efd);--kgrid-new-bg: rgba(25, 135, 84, .1);--kgrid-delete-bg: rgba(220, 53, 69, .1);--kgrid-radius: var(--bs-border-radius, .375rem);border-bottom-left-radius:var(--bs-border-radius-lg, .5rem);border-bottom-right-radius:var(--bs-border-radius-lg, .5rem);container:kgrid / inline-size}@media(max-width:768px){.card-body{padding:10px}}@container kgrid (max-width: 640px){.custom-table-shell table,.custom-table-shell thead,.custom-table-shell tbody,.custom-table-shell tr,.custom-table-shell th,.custom-table-shell td{display:block}.custom-table-shell tr{margin-top:.5rem;border:1px solid var(--kgrid-row-border);border-radius:var(--kgrid-radius);background:var(--kgrid-surface)}.custom-table-shell td{padding:.5rem 0;border:0!important}.custom-table-shell td:before{content:attr(data-label);display:block;font-weight:600;font-size:.78rem;color:var(--kgrid-muted);margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid var(--kgrid-row-border)}.custom-table-shell[data-interaction=view] td{display:flow-root}.custom-table-shell[data-interaction=view] td:not(.kgrid-row-actions):before{float:left;width:38%;margin:0 .75rem 0 0;padding:0;border-bottom:0}.custom-table-shell td input,.custom-table-shell td select,.custom-table-shell td textarea,.custom-table-shell td .input,.custom-table-shell td .form-control,.custom-table-shell td .your-custom-input-wrapper,.custom-table-shell td button{width:100%;max-width:100%;box-sizing:border-box}.custom-table-shell td.kgrid-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem}.custom-table-shell td.kgrid-row-actions>*{margin-inline-start:0}.custom-table-shell td.kgrid-row-actions button,.custom-table-shell td.kgrid-row-actions .btn{width:auto;max-width:none}.custom-table-shell td .kgrid-flag-switch .form-check-input{width:2em;max-width:2em}.custom-table-shell th.kgrid-user-hidden,.custom-table-shell td.kgrid-user-hidden{display:none}.custom-table-shell .thead-labels tr,.custom-table-shell .thead-filters tr{display:flex;flex-direction:column;padding:.35rem .85rem .55rem}.custom-table-shell .thead-labels th,.custom-table-shell .thead-filters th{padding:.4rem 0;border:0;background:transparent;white-space:normal;overflow:visible}.custom-table-shell .thead-labels th:not(:has(a.sort)):not(.kgrid-row-actions){display:none}.custom-table-shell .thead-labels:not(:has(th:not(.kgrid-user-hidden) a.sort)):not(:has(.kgrid-column-chooser)){display:none}.custom-table-shell .thead-labels th a.sort{display:flex;align-items:center;justify-content:space-between;gap:.5rem;min-height:2rem}.custom-table-shell .thead-labels th a.sort .column-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-table-shell .thead-labels th a.sort i{flex:0 0 auto}.custom-table-shell .thead-labels th.kgrid-row-actions{display:flex;justify-content:flex-end;order:-1;padding-bottom:.15rem}.custom-table-shell .thead-labels th.kgrid-row-actions:not(:has(.kgrid-column-chooser)){display:none}.custom-table-shell .thead-filters th:not(:has(input,select,textarea,button)){display:none}.custom-table-shell .thead-filters:not(:has(th:not(.kgrid-user-hidden) :is(input,select,textarea,button))){display:none}.custom-table-shell .thead-filters th:before{content:attr(data-label);display:block;font-weight:600;font-size:.78rem;color:var(--kgrid-muted);margin-bottom:.35rem}.custom-table-shell .thead-filters th input:not([type=checkbox]):not([type=radio]):not([type=hidden]),.custom-table-shell .thead-filters th select,.custom-table-shell .thead-filters th textarea,.custom-table-shell .thead-filters th .form-control,.custom-table-shell .thead-filters th .form-select,.custom-table-shell .thead-filters th .kgrid-multi-select,.custom-table-shell .thead-filters th .kgrid-date-range,.custom-table-shell .thead-filters th .select2-container{width:100%;max-width:100%;box-sizing:border-box}}tr.new-record-row{background-color:var(--kgrid-new-bg)!important}tr.new-record-row td{background-color:transparent!important}tr.new-record-row td:first-child{box-shadow:inset 3px 0 0 var(--bs-success, #198754)}tr.confirm-delete{background-color:var(--kgrid-delete-bg)!important}tr.confirm-delete td{background-color:transparent!important}tr.confirm-delete td:first-child{box-shadow:inset 3px 0 0 var(--bs-danger, #dc3545)}tr.editing{background-color:var(--kgrid-edit-bg)!important;font-weight:inherit;color:inherit;font-size:inherit;border:none;border-radius:0;padding:0;margin:0}tr.editing td{background-color:transparent!important}tr.editing td:first-child{box-shadow:inset 3px 0 0 var(--kgrid-edit-accent)}div.save-item{display:none}.editing div.save-item{display:inline-flex}.editing .default-action-buttons,.cell-input{display:none}.kgrid-flag-switch{display:flex;align-items:center;min-height:1.5rem}.custom-table-shell td .kgrid-flag-switch .form-check-input{width:2em;max-width:2em;float:none}.custom-table-shell[data-interaction=view] .cell-input,.custom-table-shell[data-interaction=view] .delete-item,.custom-table-shell[data-interaction=view] .clone-item{display:none}.custom-table-shell[data-interaction=view] .kgrid-action-conditional:not(.kgrid-action-off)>.delete-item,.custom-table-shell[data-interaction=view] .kgrid-action-conditional:not(.kgrid-action-off)>.clone-item{display:inline-block}.custom-table-shell[data-interaction=view] .dropdown-menu .kgrid-action-conditional:not(.kgrid-action-off)>.delete-item,.custom-table-shell[data-interaction=view] .dropdown-menu .kgrid-action-conditional:not(.kgrid-action-off)>.clone-item{display:block}.kgrid-action-off{display:none!important}.custom-table-shell[data-interaction=edit] .cell-input,.custom-table-shell[data-interaction=edit] .delete-item,.custom-table-shell[data-interaction=edit] .clone-item{display:block}.new-record-row{display:none}.custom-table-shell[data-interaction=edit] .new-record-row{display:table-row}.custom-table-shell[data-allow-insert=false] .new-record-row,.custom-table-shell[data-allow-delete=false] button.delete-item,.custom-table-shell[data-allow-clone=false] button.clone-item{display:none!important}.custom-table-shell[data-allow-update=false][data-interaction=edit] .cell-input{display:none}.custom-table-shell[data-allow-update=false][data-interaction=edit] .cell-content,.custom-table-shell[data-interaction=view] .cell-content{display:block}.custom-table-shell[data-interaction=edit] .cell-content,.edit-item-grp{display:none}.editing .edit-item-grp{display:inline-flex}.custom-table-shell[data-interaction=view]:not([data-has-row-menu=true]):not([data-has-column-chooser=true]) col.kgrid-row-actions-col{visibility:collapse;width:0!important}.custom-table-shell[data-interaction=view]:not([data-has-row-menu=true]):not([data-has-column-chooser=true]) th.kgrid-row-actions,.custom-table-shell[data-interaction=view]:not([data-has-row-menu=true]):not([data-has-column-chooser=true]) td.kgrid-row-actions{visibility:collapse;width:0!important;max-width:0;padding:0;border-width:0!important;overflow:hidden}.custom-table-shell[data-interaction=edit] col.kgrid-row-actions-col{width:5.75rem}.custom-table-shell[data-interaction=edit] th.kgrid-row-actions,.custom-table-shell[data-interaction=edit] td.kgrid-row-actions,.custom-table-shell[data-has-row-menu=true] th.kgrid-row-actions,.custom-table-shell[data-has-row-menu=true] td.kgrid-row-actions,.custom-table-shell[data-has-column-chooser=true] th.kgrid-row-actions,.custom-table-shell[data-has-column-chooser=true] td.kgrid-row-actions{white-space:nowrap;overflow:visible}.custom-table-shell td.kgrid-row-actions>.delete-item-grp,.custom-table-shell td.kgrid-row-actions>.clone-item-grp,.custom-table-shell td.kgrid-row-actions>.kgrid-custom-action-grp,.custom-table-shell td.kgrid-row-actions>.edit-item-grp,.custom-table-shell td.kgrid-row-actions>.btn-group{display:inline-flex;vertical-align:middle;align-items:center}.custom-table-shell td.kgrid-row-actions>.delete-item-grp+*,.custom-table-shell td.kgrid-row-actions>.clone-item-grp+*,.custom-table-shell td.kgrid-row-actions>.kgrid-custom-action-grp+*,.custom-table-shell td.kgrid-row-actions>.edit-item-grp+*,.custom-table-shell td.kgrid-row-actions>.btn-group+*{margin-inline-start:.25rem}.kgrid-row-actions-menu .dropdown-menu{z-index:1055}.kgrid-row-actions-menu .dropdown-menu.show{display:block}.custom-table-shell tr:has(.kgrid-row-actions-menu .kgrid-actions-dropdown-toggle.show){position:relative;z-index:6}.editing .delete-item-grp,.editing .clone-item-grp,.editing .kgrid-row-actions-menu,.editing .kgrid-custom-action-grp:not(.kgrid-action-always){display:none!important}th.kgrid-user-hidden,td.kgrid-user-hidden{display:none!important}th.kgrid-row-actions{text-align:center;vertical-align:middle}.kgrid-column-chooser{position:relative;display:inline-flex;justify-content:center;align-items:center}.kgrid-column-chooser-toggle{padding:.15rem .4rem;line-height:1}.kgrid-column-chooser-panel{position:absolute;right:0;top:100%;z-index:1055;min-width:16rem;max-height:20rem;overflow:auto;text-align:start;background:var(--bs-body-bg, #fff);color:var(--bs-body-color, #212529);border:1px solid var(--bs-border-color, #dee2e6);border-radius:.375rem;box-shadow:0 .5rem 1rem #00000026;padding:.5rem}.kgrid-column-chooser-list{list-style:none;margin:0 0 .5rem;padding:0}.kgrid-column-chooser-list li{display:flex;align-items:center;gap:.35rem;padding:.2rem .25rem;cursor:grab}.kgrid-column-chooser-list li.kgrid-column-chooser-dragging{opacity:.5}.kgrid-column-chooser-handle{color:#6c757d;user-select:none;letter-spacing:-.15em}.kgrid-column-chooser-list label{margin:0;cursor:pointer;flex:1}.kgrid-column-chooser-reset{width:100%}.kgrid-multi-select{position:relative;min-width:0}.kgrid-multi-select-toggle{width:100%;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.kgrid-multi-select-panel{max-height:14rem;overflow-x:hidden;overflow-y:auto;padding:.4rem .55rem;background:var(--bs-body-bg, #fff);color:var(--bs-body-color, #212529);border:1px solid var(--bs-border-color, #dee2e6);border-radius:.375rem;box-sizing:border-box}.kgrid-multi-select-panel.kgrid-multi-select-panel-floating{box-shadow:0 .5rem 1rem #00000026}.kgrid-multi-select[data-mode=insert] .kgrid-multi-select-panel,.kgrid-multi-select[data-mode=update] .kgrid-multi-select-panel{max-height:10rem}.kgrid-multi-select-option{display:flex;align-items:flex-start;gap:.5rem;margin:0;padding:.3rem .15rem;cursor:pointer;min-height:1.5rem}.kgrid-multi-select-check{flex:0 0 auto;width:1.05em;height:1.05em;margin:.15rem 0 0;accent-color:var(--bs-primary, #0d6efd);cursor:pointer}.kgrid-multi-select-label{flex:1 1 auto;min-width:0;font-weight:400;line-height:1.35;user-select:none}.kgrid-date-range{display:flex;flex-direction:column;gap:.35rem;min-width:0;width:100%}.kgrid-date-range-bound{display:flex;flex-direction:column;gap:.15rem;margin:0;min-width:0}.kgrid-date-range-label{font-size:.75rem;font-weight:600;line-height:1.2;color:var(--kgrid-muted, var(--bs-secondary-color, #6c757d))}.kgrid-date-range input[type=date]{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.custom-table{font-size:var(--kgrid-font-size);box-sizing:content-box;margin-bottom:0;width:100%;table-layout:fixed;color:var(--kgrid-header-fg)}.custom-table .thead-labels th{background-color:var(--kgrid-header-bg);color:var(--kgrid-header-fg);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}@container kgrid (max-width: 640px){.custom-table-shell .custom-table .thead-labels th,.custom-table-shell .custom-table .thead-filters th{background-color:transparent;white-space:normal;overflow:visible;text-overflow:unset}}.custom-table .thead-labels th a{color:var(--kgrid-header-link);text-decoration:none}.custom-table .thead-labels th a:hover{color:var(--kgrid-header-link-hover)}.custom-table .thead-filters th{background-color:var(--kgrid-filter-bg);overflow:visible}.custom-table .main-tbody td{overflow:hidden;vertical-align:middle}.custom-table th,.custom-table td{padding:var(--kgrid-cell-pad-y) var(--kgrid-cell-pad-x)}@container kgrid (min-width: 641px){table.custom-table{border-collapse:separate!important;border-spacing:0!important;border:none!important}table.custom-table>*>tr>th,table.custom-table>*>tr>td{border-style:solid!important;border-width:0 0 1px 0!important;border-color:var(--kgrid-row-border)!important;box-shadow:none!important;background-clip:padding-box}table.custom-table .thead-labels th{border-bottom-color:var(--kgrid-row-border)!important}table.custom-table .main-tbody>tr:nth-child(2n)>td{background-color:var(--kgrid-row-alt)}table.custom-table .main-tbody>tr:hover>td{background-color:var(--kgrid-row-hover)}table.custom-table .main-tbody>tr.editing:hover>td,table.custom-table .main-tbody>tr.new-record-row:hover>td,table.custom-table .main-tbody>tr.confirm-delete:hover>td{background-color:transparent}}
