  .listview-container{
    padding-top:0.25rem;
    padding-left:0;
    padding-right:0;
  }
  .container-fluid.listview-container{
    padding-left:0 !important;
    padding-right:0 !important;
  }
  .lv-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:0.85rem;
    flex-wrap:wrap;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    width:100%;
  }
  .lv-toolbar-title-wrap{
    display:flex;
    align-items:center;
    gap:0.55rem;
    flex-wrap:wrap;
    min-width:220px;
    flex:1 1 auto;
  }
  .lv-toolbar-title{
    font-size:1.3rem;
    line-height:1.1;
    color:var(--portal-bg);
  }
  .lv-current-view-pill{
    display:inline-flex;
    align-items:center;
    padding:0.2rem 0.55rem;
    border-radius:999px;
    font-size:0.73rem;
    font-weight:700;
    letter-spacing:0.02em;
    color:var(--portal-bg);
    background:rgba(8, 9, 28, 0.06);
    border:1px solid rgba(8, 9, 28, 0.12);
    white-space:nowrap;
  }
  .lv-controls-panel{
    display:flex;
    align-items:center;
    gap:0.35rem;
    flex-wrap:wrap;
    margin-left:0;
    margin-right:0;
  }
  .lv-right-controls{
    margin-left:0.15rem;
    gap:0.5rem;
    flex-wrap:wrap;
  }
  .lv-icon-btn{
    width:32px;
    height:32px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    font-weight:700;
    line-height:1;
  }
  .lv-presets-btn,
  #filter-default-btn{
    width:32px;
    min-width:32px;
    padding:0;
    justify-content:center;
  }
  .lv-icon-btn span[aria-hidden="true"]{
    font-size:1.2rem;
  }
  #clear-filter span[aria-hidden="true"]{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    line-height:1;
    transform:translateY(-1px);
  }
  .lv-presets-btn{
    display:inline-flex;
    align-items:center;
  }
  .lv-presets-btn svg{
    width:14px;
    height:14px;
    stroke:currentColor;
    fill:none;
    stroke-width:2;
  }
  #advanced-filter-btn svg{
    width:14px;
    height:14px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .lv-view-select-wrap{
    display:inline-flex;
    align-items:center;
    gap:0.4rem;
    border:1px solid rgba(8, 9, 28, 0.18);
    border-radius:10px;
    background:#fff;
    padding:0.2rem 0.5rem;
  }
  .lv-view-select-label{
    font-size:0.75rem;
    text-transform:uppercase;
    letter-spacing:0.04em;
    color:rgba(8, 9, 28, 0.6);
    font-weight:700;
    white-space:nowrap;
  }
  .lv-view-select{
    min-width:170px;
    border:0;
    box-shadow:none !important;
    font-size:0.88rem;
    padding:0.15rem 1.25rem 0.15rem 0.3rem;
    height:auto;
    color:var(--portal-bg);
    font-weight:600;
    background-color:transparent;
  }
  .lv-top-metric-wrap{
    flex:0 0 auto;
    min-width:0;
  }
  .lv-top-metric-value{
    width:auto !important;
    min-width:0;
    max-width:100%;
    flex:0 0 auto;
    padding:0.15rem 0.45rem;
    justify-content:flex-end;
    white-space:nowrap;
  }
  .lv-view-select:focus{
    outline:none;
  }
  #bulk-actions-menu .btn{
    height:32px;
    font-size:0.8rem;
    font-weight:600;
  }
  #bulk-actions-list{
    left:auto;
    right:0;
    min-width:220px;
    max-width:min(360px, calc(100vw - 24px));
  }
  #bulk-actions-list .dropdown-item{
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.25;
  }
  .lv-toolbar .btn{
    height:32px;
    display:inline-flex;
    align-items:center;
    line-height:1;
    border-radius:10px;
  }
  .lv-controls-panel .btn-group,
  .lv-right-controls .btn-group{
    border-radius:10px;
  }
  .lv-controls-panel .btn-group > .btn,
  .lv-right-controls .btn-group > .btn{
    border-radius:0;
  }
  .lv-controls-panel .btn-group > .btn + .btn,
  .lv-right-controls .btn-group > .btn + .btn{
    margin-left:-1px;
  }
  .lv-controls-panel .btn-group > .btn:first-child,
  .lv-right-controls .btn-group > .btn:first-child{
    border-top-left-radius:10px;
    border-bottom-left-radius:10px;
  }
  .lv-controls-panel .btn-group > .btn:last-child,
  .lv-right-controls .btn-group > .btn:last-child{
    border-top-right-radius:10px;
    border-bottom-right-radius:10px;
  }
  .lv-controls-panel .btn-group > .dropdown-toggle-split,
  .lv-right-controls .btn-group > .dropdown-toggle-split{
    border-top-right-radius:10px !important;
    border-bottom-right-radius:10px !important;
  }
  .lv-controls-panel .btn-group.lv-single-dropdown-group > .btn.dropdown-toggle,
  .lv-right-controls .btn-group.lv-single-dropdown-group > .btn.dropdown-toggle{
    border-top-right-radius:10px !important;
    border-bottom-right-radius:10px !important;
  }
  .lv-controls-panel .btn-group > .btn.btn-outline-secondary,
  .lv-controls-panel .btn-group > .btn.btn-outline-primary,
  .lv-right-controls .btn-group > .btn.btn-outline-secondary,
  .lv-right-controls .btn-group > .btn.btn-outline-primary{
    border-color:rgba(8, 9, 28, 0.35) !important;
  }
  .lv-right-controls .btn-group > .btn.btn-success{
    border-color:var(--portal-bg) !important;
  }
  .lv-controls-panel .btn-group > .btn.btn-outline-secondary + .btn.btn-outline-secondary,
  .lv-controls-panel .btn-group > .btn.btn-outline-primary + .btn.btn-outline-primary,
  .lv-right-controls .btn-group > .btn.btn-outline-secondary + .btn.btn-outline-secondary,
  .lv-right-controls .btn-group > .btn.btn-outline-primary + .btn.btn-outline-primary{
    border-left-color:rgba(8, 9, 28, 0.3) !important;
  }
  .lv-right-controls .btn-group > .btn.btn-success + .btn.btn-success{
    border-left-color:rgba(255, 255, 255, 0.35) !important;
  }
  .lv-right-controls .btn{
    font-size:0.8rem;
    font-weight:600;
    padding:0.25rem 0.6rem;
  }
  .lv-controls-panel .btn{
    height:32px;
  }
  .lv-inline-edit-actions{
    order:-1;
    margin-right:0.2rem;
    box-shadow:0 0 0 1px var(--portal-accent-soft);
  }
  .lv-inline-edit-actions .btn{
    font-weight:700;
  }
  .lv-inline-edit-actions .lv-inline-save-btn{
    color:#0e122f !important;
    background:var(--portal-accent);
    border-color:var(--portal-accent) !important;
  }
  .lv-inline-edit-actions .lv-inline-save-btn:hover{
    color:#0e122f !important;
    background:var(--portal-accent-hover);
    border-color:var(--portal-accent-hover) !important;
  }
  .lv-inline-edit-actions .lv-inline-save-btn:focus,
  .lv-inline-edit-actions .lv-inline-save-btn:active{
    background:var(--portal-accent-active);
    border-color:var(--portal-accent-active) !important;
    box-shadow:0 0 0 0.12rem var(--portal-accent-soft);
  }
  .lv-inline-edit-actions .lv-inline-save-btn.is-loading{
    pointer-events:none;
  }
  .lv-inline-loading-btn.is-loading{
    position:relative;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:0.45rem;
    overflow:hidden;
  }
  .lv-inline-loading-btn.is-loading::before{
    content:"";
    width:0.82rem;
    height:0.82rem;
    flex:0 0 auto;
    border:2px solid currentColor;
    border-right-color:transparent;
    border-radius:999px;
    animation:lv-inline-save-spin 0.65s linear infinite;
  }
  .lv-inline-loading-btn.is-loading::after{
    content:"";
    position:absolute;
    inset:-35% auto -35% -45%;
    width:38%;
    transform:skewX(-18deg);
    background:rgba(255,255,255,0.32);
    animation:lv-inline-save-sheen 1.15s ease-in-out infinite;
    pointer-events:none;
  }
  @keyframes lv-inline-save-spin{
    to{ transform:rotate(360deg); }
  }
  @keyframes lv-inline-save-sheen{
    0%{ left:-45%; }
    55%,100%{ left:115%; }
  }
  .lv-counter-filter-icon{
    padding-right:4px;
    padding-bottom:2px;
    vertical-align:top;
  }
  .lv-counter-filter-icon__poly{
    fill:rgba(83, 83, 83, 1);
  }
  .lv-af-input-lastn{
    width:80px;
  }
  .lv-af-input-time{
    width:120px;
  }
  .lv-af-op-select{
    width:150px;
  }
  .lv-af-flex-1{
    flex:1;
  }
  #inline-edits-review.btn{
    color:var(--portal-bg);
    border-color:var(--portal-accent) !important;
    background:var(--portal-accent-muted);
  }
  #inline-edits-review.btn:hover{
    color:var(--portal-bg);
    border-color:var(--portal-accent-hover) !important;
    background:var(--portal-accent-soft);
  }
  .lv-toolbar .btn-outline-secondary,
  .lv-toolbar .btn-outline-primary{
    color:var(--portal-bg);
    border-color:rgba(8, 9, 28, 0.35);
  }
  .lv-toolbar .btn-outline-secondary:hover,
  .lv-toolbar .btn-outline-primary:hover{
    color:var(--portal-bg);
    background:rgba(8, 9, 28, 0.08);
    border-color:rgba(8, 9, 28, 0.55);
  }
  .lv-toolbar .btn-success{
    background-color:var(--portal-bg);
    border-color:var(--portal-bg);
    color:#fff;
  }
  .lv-toolbar .btn-success:hover{
    background-color:rgba(8, 9, 28, 0.9);
    border-color:rgba(8, 9, 28, 0.9);
    color:#fff;
  }
  #bulk-actions-list .dropdown-item{
    font-size:0.86rem;
  }
  @media (max-width: 992px){
    .lv-toolbar{
      align-items:flex-start;
    }
    .lv-controls-panel{
      margin-left:0;
    }
    .lv-right-controls{
      width:100%;
      margin-left:0;
    }
  }

  .gf-menu{
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    width:min(370px, calc(100vw - 20px));
    min-width:min(320px, calc(100vw - 20px));
    overflow:visible;
    background:#fff;
    border:1px solid rgba(8, 9, 28, 0.14);
    border-radius:10px;
    z-index:2000;
    box-shadow:0 20px 45px rgba(8, 9, 28, 0.18), 0 2px 10px rgba(8, 9, 28, 0.08);
    animation:gf-menu-in 120ms ease-out;
  }
  .gf-menu::before{
    content:"";
    position:absolute;
    top:-6px;
    right:18px;
    width:12px;
    height:12px;
    background:var(--portal-bg);
    border-left:1px solid rgba(8, 9, 28, 0.14);
    border-top:1px solid rgba(8, 9, 28, 0.14);
    transform:rotate(45deg);
  }
  @keyframes gf-menu-in{
    from{ opacity:0; transform:translateY(-4px); }
    to{ opacity:1; transform:translateY(0); }
  }

  .gf-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:0.75rem;
    padding:0.65rem 0.75rem;
    background:var(--portal-bg);
    border-bottom:3px solid var(--portal-accent);
    border-radius:9px 9px 0 0;
    color:#fff;
  }
  .gf-header strong{
    display:inline-flex;
    align-items:center;
    gap:0.45rem;
    min-width:0;
    font-size:0.88rem;
    font-weight:700;
    line-height:1.1;
  }
  .gf-header strong::before{
    content:"";
    width:0.5rem;
    height:0.5rem;
    border-radius:2px;
    background:var(--portal-accent);
    box-shadow:0 0 0 3px rgba(174, 217, 31, 0.18);
  }
  .gf-close{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    padding:0;
    border:1px solid rgba(255, 255, 255, 0.25);
    border-radius:7px;
    background:rgba(255, 255, 255, 0.08);
    color:#fff;
    font-size:20px;
    line-height:1;
  }
  .gf-close:hover,
  .gf-close:focus{
    background:rgba(255, 255, 255, 0.16);
    border-color:rgba(255, 255, 255, 0.45);
    outline:none;
  }
  .gf-save-row{
    display:flex;
    align-items:center;
    gap:0.55rem;
    padding:0.75rem;
    background:linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
    border-bottom:1px solid rgba(8, 9, 28, 0.1);
  }
  .gf-save-row .form-control{
    min-width:0;
    height:34px;
    border-color:rgba(8, 9, 28, 0.18);
    border-radius:8px;
    color:var(--portal-bg);
    font-size:0.84rem;
    box-shadow:none;
  }
  .gf-save-row .form-control:focus{
    border-color:var(--portal-accent-hover);
    box-shadow:0 0 0 0.16rem var(--portal-accent-soft);
  }
  .gf-save-row .btn{
    height:34px;
    border-radius:8px;
    font-size:0.8rem;
    font-weight:700;
    padding:0 0.85rem;
  }
  .gf-save-row .btn:disabled{
    background:var(--portal-accent-muted);
    border-color:var(--portal-accent-muted);
    color:var(--portal-bg) !important;
    opacity:0.72;
  }
  .gf-name-warning{
    margin:0;
    padding:0 0.75rem 0.55rem !important;
    background:#f7f9fc;
    font-size:0.76rem;
  }
  .gf-list{
    max-height:min(380px, calc(100vh - 210px));
    overflow:auto;
    padding:0.5rem;
    scrollbar-gutter:stable;
  }
  .gf-empty-state{
    margin:0.25rem;
    padding:0.85rem !important;
    border:1px dashed rgba(8, 9, 28, 0.18);
    border-radius:8px;
    background:rgba(8, 9, 28, 0.03);
    color:rgba(8, 9, 28, 0.62) !important;
    font-size:0.82rem;
    text-align:center;
  }
  .gf-item{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:0.75rem;
    min-height:46px;
    padding:0.55rem;
    border:1px solid transparent;
    border-radius:8px;
    transition:background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
  }
  .gf-item + .gf-item{
    margin-top:0.25rem;
  }
  .gf-left{
    display:flex;
    flex-direction:column;
    gap:0.18rem;
    flex:1 1 auto;
    min-width:0;
  }
  .gf-title-line{
    display:flex;
    align-items:center;
    gap:0.4rem;
    min-width:0;
  }
  .gf-item .name{
    display:block;
    min-width:0;
    padding:0;
    border:0;
    background:transparent;
    color:var(--portal-bg);
    font:inherit;
    font-size:0.88rem;
    font-weight:700;
    line-height:1.25;
    text-align:left;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
    cursor:pointer;
  }
  .gf-item .name:hover,
  .gf-item .name:focus{
    color:#1b2454;
    outline:none;
  }
  .gf-meta{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
    color:rgba(8, 9, 28, 0.58);
    font-size:0.74rem;
    line-height:1.3;
  }
  .gf-badge{
    display:inline-flex;
    align-items:center;
    height:18px;
    padding:0 0.42rem;
    border:1px solid rgba(174, 217, 31, 0.55);
    border-radius:999px;
    background:var(--portal-accent-soft);
    color:var(--portal-bg);
    font-size:0.66rem;
    font-weight:800;
    line-height:1;
    text-transform:uppercase;
  }
  .gf-item:hover,
  .gf-item:focus-within{
    background:#f7f9fc;
    border-color:rgba(8, 9, 28, 0.1);
    box-shadow:0 4px 12px rgba(8, 9, 28, 0.06);
  }
  .gf-actions{
    display:flex;
    flex:0 0 auto;
    gap:0.3rem;
    padding-top:0.05rem;
  }

  .gf-icon-btn,
  .gf-actions .gf-icon-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    padding:0;
    border-radius:7px;
    background:#fff;
    box-shadow:none;
  }
  .gf-icon-btn:hover,
  .gf-icon-btn:focus{
    box-shadow:none;
  }
  .gf-btn-icon,
  .gf-actions .gf-btn-icon{
    width:15px;
    height:15px;
    fill:none;
    stroke:currentColor;
    flex:0 0 auto;
  }
  .gf-action--apply{
    color:#2d6f4f !important;
    border-color:rgba(47, 143, 99, 0.32) !important;
  }
  .gf-action--apply:hover,
  .gf-action--apply:focus{
    color:#fff !important;
    background:#2f8f63 !important;
    border-color:#2f8f63 !important;
  }
  .gf-action--update{
    color:#53621f !important;
    border-color:rgba(147, 169, 59, 0.42) !important;
  }
  .gf-action--update:hover,
  .gf-action--update:focus{
    color:var(--portal-bg) !important;
    background:var(--portal-accent) !important;
    border-color:var(--portal-accent) !important;
  }
  .gf-action--share{
    color:var(--portal-bg) !important;
    border-color:rgba(8, 9, 28, 0.22) !important;
  }
  .gf-action--share:hover,
  .gf-action--share:focus{
    color:#fff !important;
    background:var(--portal-bg) !important;
    border-color:var(--portal-bg) !important;
  }
  .gf-action--delete{
    color:#b4323b !important;
    border-color:rgba(180, 50, 59, 0.28) !important;
  }
  .gf-action--delete:hover,
  .gf-action--delete:focus{
    color:#fff !important;
    background:#b4323b !important;
    border-color:#b4323b !important;
  }
  .gf-pill{ font-size:10px; padding:2px 6px; border:1px solid #e0e0e0; border-radius:999px; color:#666; background:#fafafa; }
  .gf-detail-tooltip{
    position:absolute;
    z-index:5000;
    background:#fff;
    border:1px solid rgba(8, 9, 28, 0.16);
    border-radius:8px;
    padding:0.5rem 0.6rem;
    font-size:0.75rem;
    color:rgba(8, 9, 28, 0.82);
    box-shadow:0 14px 28px rgba(8, 9, 28, 0.16), 0 2px 8px rgba(8, 9, 28, 0.08);
    max-width:300px;
    line-height:1.35;
    display:none;
    pointer-events:none;
    white-space:normal;
  }
  .gf-detail-tooltip.is-visible{ display:block; }
  @media (max-width: 575.98px){
    .gf-menu{
      position:fixed;
      left:0.75rem;
      right:0.75rem;
      top:76px;
      width:auto;
      min-width:0;
      max-height:calc(100vh - 92px);
    }
    .gf-menu::before{
      display:none;
    }
    .gf-list{
      max-height:calc(100vh - 230px);
    }
    .gf-item{
      gap:0.55rem;
    }
    .gf-actions{
      flex-wrap:wrap;
      justify-content:flex-end;
      max-width:62px;
    }
  }
  #filter-default-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .preset-default-icon{
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
  }
  /* Shared list table palette (neutral, portal-aligned) */
.tabulator {
  --lv-table-border: rgba(8, 9, 28, 0.16);
  --lv-table-header-bg: #ffffff;
  --lv-table-header-text: rgba(8, 9, 28, 0.72);
  --lv-table-header-hover-bg: #f0f1f4;
  --lv-header-icon-neutral: #555c68;
  --lv-header-icon-active: var(--portal-bg);
  --lv-table-header-control-bg: rgba(8, 9, 28, 0.05);
  --lv-table-header-separator: rgba(8, 9, 28, 0.26);
  --lv-table-header-row-divider: rgba(8, 9, 28, 0.1);
  --lv-table-header-control-height: 24px;
  --lv-table-header-label-height: 30px;
  --lv-table-even-row-bg: #f6f8fb;
  --lv-table-even-row-border: #e7e9ee;
  --lv-table-row-hover-bg: #d7e0ea;
  --lv-table-footer-bg: #f5f6f8;
  --lv-table-footer-text: rgba(8, 9, 28, 0.82);
  border: 1px solid var(--lv-table-border);
    background-color: #ffffff;
  }
  .listview.tabulator{
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(8, 9, 28, 0.08);
  }
  .listview.tabulator .tabulator-header{
    border-bottom:3px solid var(--lv-table-header-separator);
    background:linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  }
  .listview.tabulator .tabulator-header .tabulator-col{
    border-right:1px solid rgba(8, 9, 28, 0.08);
    min-height:calc(var(--lv-table-header-control-height) + var(--lv-table-header-label-height));
  }
  .listview.tabulator .tabulator-header .tabulator-col .tabulator-col-content{
    min-height:calc(var(--lv-table-header-control-height) + var(--lv-table-header-label-height));
    display:flex;
    align-items:stretch;
    padding:0;
  }
  .listview.tabulator .tabulator-header .tabulator-col .tabulator-col-title-holder{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    grid-template-rows:var(--lv-table-header-control-height) var(--lv-table-header-label-height);
    align-items:stretch;
    min-height:calc(var(--lv-table-header-control-height) + var(--lv-table-header-label-height));
    width:100%;
  }
  .listview.tabulator .tabulator-header .tabulator-col .tabulator-col-title{
    grid-column:1 / 3;
    grid-row:1 / 3;
    min-width:0;
    height:100%;
    padding:0;
    color:var(--lv-table-header-text) !important;
  }
  /* Ensure column-resize handles stay reachable above custom header content. */
  .listview.tabulator .tabulator-header .tabulator-col .tabulator-col-resize-handle{
    position:absolute;
    top:0;
    bottom:0;
    right:-10px;
    width:1px;
    height: var(--lv-table-header-label-height) !important;
    z-index:260;
    pointer-events:auto;
    background:transparent;
    touch-action:none;
  }
  .listview.tabulator .tabulator-header .tabulator-col.tabulator-frozen .tabulator-col-resize-handle,
  .listview.tabulator .tabulator-header .tabulator-col.tabulator-frozen-left .tabulator-col-resize-handle,
  .listview.tabulator .tabulator-header .tabulator-col.tabulator-frozen-right .tabulator-col-resize-handle{
    z-index:320;
  }
  .listview.tabulator .tabulator-header .tabulator-col .tabulator-col-sorter{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    grid-column:2;
    grid-row:1;
    width:18px;
    height:18px;
    margin:-30px 0px 0 0;
    min-height:0;
    align-self:center;
    justify-self:center;
  }
  .listview.tabulator .tabulator-header .tabulator-col:last-child{
    border-right:0;
  }
  .listview.tabulator .tabulator-header .tabulator-col.lv-col-group-sep{
    border-left:3px solid #000 !important;
  }
  .listview.tabulator .tabulator-col-title{
    font-size:0.84rem;
    letter-spacing:0.01em;
    font-weight:700;
    color:rgba(8, 9, 28, 0.84) !important;
  }
  .listview.tabulator .lv-col-header{
    display:grid;
    grid-template-rows:var(--lv-table-header-control-height) var(--lv-table-header-label-height);
    height:100%;
  }
  .listview.tabulator .lv-col-header-controls{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:4px;
    padding:0 6px;
    min-width:0;
    background:var(--lv-table-header-control-bg);
    border-bottom:1px solid var(--lv-table-header-row-divider);
  }
  .listview.tabulator .lv-col-header-edit-slot{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:16px;
    height:16px;
    min-width:16px;
    line-height:0;
  }
  .listview.tabulator .lv-col-header-filter-slot{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:18px;
    height:18px;
    min-width:18px;
    line-height:0;
  }
  .listview.tabulator .lv-col-header-control-spacer{
    width:14px;
    height:14px;
    opacity:0;
    pointer-events:none;
  }
  .listview.tabulator .lv-col-header-controls .lv-editable-indicator{
    width:14px;
    height:14px;
  }
  .listview.tabulator .lv-col-header-controls .lv-editable-indicator svg{
    width:14px;
    height:14px;
  }
  .listview.tabulator .lv-col-header-label{
    display:flex;
    align-items:center;
    min-width:0;
    padding:0 8px;
    line-height:1.12;
  }
  .listview.tabulator .lv-col-header-label-text{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  /* Let the browser handle scrollbars natively for smoother wheel/trackpad input. */
  .listview.tabulator .tabulator-tableholder{
    scrollbar-gutter:auto;
    overscroll-behavior:contain;
    scroll-behavior:auto;
    overflow-anchor:none;
  }
  .listview.tabulator .tabulator-row .tabulator-cell{
    border-right:1px solid rgba(8, 9, 28, 0.06);
    border-bottom:0;
    padding:0.44rem 0.5rem;
    font-size:0.845rem;
    color:rgba(8, 9, 28, 0.88);
  }
  .listview.tabulator .tabulator-row .tabulator-cell:last-child{
    border-right:0;
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-col-group-sep{
    border-left:3px solid #000 !important;
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-cell-mono,
  .listview.tabulator .tabulator-row .tabulator-cell.lv-cell-date,
  .listview.tabulator .tabulator-row .tabulator-cell.lv-cell-datetime{
    font-family:"Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-variant-numeric:tabular-nums;
    letter-spacing:0.01em;
    font-size:0.8rem;
  }
  /* Inline-editable cells should hint editing instead of navigation */
  .listview.tabulator .tabulator-row .tabulator-cell.lv-inline-editable{
    cursor:text;
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-inline-clipboard-cell{
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.45);
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-inline-copied-cell{
    position:relative;
    outline:2px dashed #2563eb;
    outline-offset:-2px;
    box-shadow:none !important;
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-inline-copied-cell::after{
    content:"";
    position:absolute;
    right:0;
    bottom:0;
    width:7px;
    height:7px;
    background:#2563eb;
    border:1px solid #fff;
    box-sizing:border-box;
    pointer-events:none;
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-cell-longtext{
    cursor:zoom-in;
  }
  .listview.tabulator .tabulator-row .tabulator-cell.lv-cell-longtext-active{
    box-shadow: inset 0 0 0 1px rgba(8, 9, 28, 0.24);
  }
  .lv-longtext-tooltip{
    position:fixed;
    z-index:7000;
    max-width:min(560px, calc(100vw - 24px));
    padding:8px 10px;
    border-radius:8px;
    border:1px solid rgba(8, 9, 28, 0.12);
    background:#fff;
    color:#0f172a;
    box-shadow:0 12px 24px rgba(15, 23, 42, 0.16);
    font-size:0.82rem;
    line-height:1.35;
    pointer-events:none;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .lv-longtext-modal{
    position:fixed;
    inset:0;
    z-index:7200;
    display:none;
  }
  .lv-longtext-modal.is-open{
    display:block;
  }
  .lv-longtext-modal__backdrop{
    position:absolute;
    inset:0;
    background:rgba(15, 23, 42, 0.4);
  }
  .lv-longtext-modal__dialog{
    position:absolute;
    top:16px;
    right:16px;
    bottom:16px;
    width:min(760px, calc(100vw - 32px));
    background:#fff;
    border-radius:12px;
    border:1px solid #e5e7eb;
    box-shadow:0 28px 60px rgba(15, 23, 42, 0.24);
    display:flex;
    flex-direction:column;
    outline:none;
  }
  .lv-longtext-modal__header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    padding:10px 12px;
    border-bottom:1px solid #e5e7eb;
  }
  .lv-longtext-modal__title{
    margin:0;
    font-size:0.95rem;
    font-weight:700;
    color:#0f172a;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .lv-longtext-modal__actions{
    display:inline-flex;
    gap:6px;
    flex-shrink:0;
  }
  .lv-longtext-modal__content{
    flex:1 1 auto;
    overflow:auto;
    padding:12px;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font-size:0.86rem;
    line-height:1.45;
    color:#0f172a;
  }
  @media (max-width: 992px){
    .lv-longtext-modal__dialog{
      top:8px;
      right:8px;
      bottom:8px;
      left:8px;
      width:auto;
    }
    .lv-longtext-modal__header{
      flex-wrap:wrap;
      align-items:flex-start;
    }
  }
  .tabulator .tabulator-header{
    z-index:0;
  }
  /* Header row background & text */
  .tabulator .tabulator-header .tabulator-col {
    position: relative;
  z-index: 1;                 /* non-frozen baseline */
  transform: none !important; /* avoid new stacking contexts */
  filter: none !important;
  will-change: auto !important;
    background-color: var(--lv-table-header-bg);
    color: var(--lv-table-header-text);
  }
  .font-icon :hover{
    background-color: #333333;
  }
  .tabulator .tabulator-header .tabulator-col:hover {
    z-index: 0;
    background-color: var(--lv-table-header-hover-bg);
    color: var(--portal-bg);
  }

  .tabulator .tabulator-header .tabulator-col .tabulator-col-title {
    color: var(--lv-table-header-text) !important;
  }
  .lv-editable-indicator{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:0;
    background:transparent;
    width:16px;
    height:16px;
    line-height:0;
    color:#6b7280;
  }
  .lv-editable-indicator svg{
    width:16px;
    height:16px;
    display:block;
  }
  /* Dual sort icon (up/down): active direction dark, opposite direction light */
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter {
    --lv-sort-up: rgba(85, 92, 104, 0.45);
    --lv-sort-down: rgba(85, 92, 104, 0.45);
    position: relative;
    opacity: 1;
  }
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter .tabulator-arrow {
    display: none !important;
  }
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter::before,
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    transition: border-color 120ms ease;
  }
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter::before {
    top: 1px;
    border-bottom: 6px solid var(--lv-sort-up);
  }
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter::after {
    bottom: 1px;
    border-top: 6px solid var(--lv-sort-down);
  }
  .tabulator .tabulator-header .tabulator-col[aria-sort="ascending"] .tabulator-col-sorter,
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter.is-asc,
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter[data-sortdir="asc"] {
    --lv-sort-up: var(--lv-header-icon-active);
    --lv-sort-down: rgba(85, 92, 104, 0.4);
  }
  .tabulator .tabulator-header .tabulator-col[aria-sort="descending"] .tabulator-col-sorter,
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter.is-desc,
  .tabulator .tabulator-header .tabulator-col .tabulator-col-sorter[data-sortdir="desc"] {
    --lv-sort-up: rgba(85, 92, 104, 0.4);
    --lv-sort-down: var(--lv-header-icon-active);
  }
  /* 2) Keep frozen header cells and wrappers ALWAYS above */
.tabulator .tabulator-header .tabulator-col.tabulator-frozen{
  z-index: 200;
}
.tabulator .tabulator-header .tabulator-col.tabulator-frozen:hover{
  z-index: 200 !important;
}
.tabulator .tabulator-header .tabulator-col:not(.tabulator-frozen):hover{
  z-index: 1 !important;
}
.tabulator .tabulator-header .tabulator-frozen-left,
.tabulator .tabulator-header .tabulator-frozen-right{
  position: relative;
  z-index: 201;
}
.tabulator .tabulator-header .tabulator-col:hover{
  z-index: 1 !important; /* do NOT elevate on hover */
}
.listview.tabulator{
  transform: none !important;   /* your log shows matrix(1,0,0,1,0,0) on it */
}
  /* Row striping model: one source of truth for both frozen and non-frozen panes */
  .tabulator .tabulator-row {
    --lv-row-bg: #ffffff;
    background-color: var(--lv-row-bg);
    border-bottom: 1px solid rgba(8, 9, 28, 0.08);
  }
  .tabulator .tabulator-row.tabulator-row-even {
    --lv-row-bg: var(--lv-table-even-row-bg);
    border-bottom: 1px solid var(--lv-table-even-row-border);
  }
  .tabulator .tabulator-row:hover {
    --lv-row-bg: var(--lv-table-row-hover-bg);
    background-color: var(--lv-row-bg);
  }
  .listview.tabulator .tabulator-row.lv-row-ctrl-selected,
  .listview.tabulator .tabulator-row.lv-row-ctrl-selected.tabulator-row-even,
  .listview.tabulator .tabulator-row.lv-row-ctrl-selected:hover {
    --lv-row-bg: #d8e8ff !important;
    background-color: var(--lv-row-bg) !important;
    background-image: none !important;
  }
  .listview.tabulator .tabulator-row.lv-row-ctrl-selected .tabulator-cell {
    background-color: var(--lv-row-bg) !important;
    background-image: none !important;
  }
  .tabulator .tabulator-row .tabulator-cell.tabulator-frozen,
  .tabulator .tabulator-row .tabulator-cell.tabulator-frozen-left,
  .tabulator .tabulator-row .tabulator-cell.tabulator-frozen-right {
    background-color: var(--lv-row-bg) !important;
    background-image: none !important;
  }
  .lv-row-selection-apply {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 3200;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(8, 9, 28, 0.2);
    padding: 0.4rem 0.9rem;
    font-weight: 700;
  }
  .listview.tabulator .tabulator-header .tabulator-col.tabulator-frozen,
  .listview.tabulator .tabulator-row .tabulator-cell.tabulator-frozen-left{
    border-right: 1px solid rgba(8, 9, 28, 0.18);
  }
  .listview.tabulator .tabulator-header .tabulator-col.tabulator-frozen-right,
  .listview.tabulator .tabulator-row .tabulator-cell.tabulator-frozen-right{
    border-left: 1px solid rgba(8, 9, 28, 0.18);
  }
  .listview.tabulator .tabulator-header .tabulator-col.lv-frozen-left-sep,
  .listview.tabulator .tabulator-row .tabulator-cell.lv-frozen-left-sep{
    border-right:3px solid #000 !important;
  }
  .listview.tabulator .tabulator-header .tabulator-col.lv-frozen-right-sep,
  .listview.tabulator .tabulator-row .tabulator-cell.lv-frozen-right-sep{
    border-left:3px solid #000 !important;
  }
  .listview.tabulator .tabulator-header .tabulator-col.tabulator-frozen{
    background-color: var(--lv-table-header-bg);
  }

  /* Footer / pagination bar (if used) */
  .tabulator .tabulator-footer {
    background-color: var(--lv-table-footer-bg);
    color: var(--lv-table-footer-text);
  }
  .listview-email-placeholder{
    display:inline-flex;
    align-items:center;
    gap:0.25rem;
    padding:0.05rem 0.4rem;
    border-radius:999px;
    background:#fff4d6;
    border:1px solid #f4c38d;
    color:#b45309;
    font-weight:600;
    line-height:1.2;
  }
  .custom-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;
  visibility: hidden; opacity: 0;
  transition: visibility 0s linear .2s, opacity .2s;
  z-index: 2000;
  }
  .custom-modal.show {
    visibility: visible; opacity: 1;
    transition-delay: 0s;
  }
  .custom-modal .modal-content {
    background: #fff; padding: 1rem; border-radius: 4px;
    max-width: fit-content; width: 100%;
  }

  .lv-inline-edit-modal{
    width: clamp(360px, 80vw, 820px);
    max-height: 85vh;
    overflow: hidden;
  }
  .lv-inline-edit-list{
    margin-top: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 52vh;
    overflow: auto;
    padding-right: 0.25rem;
  }
  .lv-inline-edit-item{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
  }
  .lv-inline-edit-meta{
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }
  .lv-inline-edit-row{
    font-size: 0.78rem;
    color: #6b7280;
  }
  .lv-inline-edit-field{
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
  }
  .lv-inline-edit-change{
    font-size: 0.82rem;
    color: #374151;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .lv-inline-edit-token{
    display: inline-flex;
    align-items: center;
    padding: 0.08rem 0.42rem;
    border-radius: 999px;
    font-weight: 600;
    line-height: 1.3;
  }
  .lv-inline-edit-token-old{
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
  }
  .lv-inline-edit-token-new{
    color: #0f172a;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
  }
  .lv-inline-edit-arrow{
    color: #6b7280;
    font-weight: 600;
  }
  .lv-inline-edit-remove{
    flex: 0 0 auto;
  }
  .lv-cell-edited{
    background-color: #fff6d6 !important;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.25);
  }
  .lv-row-edited{
    outline: 1px solid rgba(217, 119, 6, 0.18);
    outline-offset: -1px;
  }

/* Dropdown rows (checkbox + label gap) */
.dd-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.lv-filter-popover{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:0;
  border:1px solid rgba(8, 9, 28, 0.14);
  border-radius:10px;
  background:#fff;
  box-shadow:0 20px 45px rgba(8, 9, 28, 0.18), 0 2px 10px rgba(8, 9, 28, 0.08);
  animation:lv-filter-popover-in 120ms ease-out;
}
@keyframes lv-filter-popover-in{
  from{ opacity:0; transform:translateY(-4px); }
  to{ opacity:1; transform:translateY(0); }
}
.lv-filter-popover-head{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  gap:8px;
  align-items:center;
  padding:12px 12px 10px;
  border-bottom:1px solid rgba(8, 9, 28, 0.1);
  background:linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.lv-filter-popover-title{
  grid-column:1 / 3;
  min-width:0;
  color:var(--portal-bg);
  font-size:0.86rem;
  font-weight:800;
  line-height:1.2;
  overflow-wrap:anywhere;
  white-space:normal;
}
.lv-filter-column-actions{
  grid-column:1 / 3;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-width:0;
  width:100%;
}
.lv-filter-freeze-btn{
  height:32px;
  min-height:32px;
  font-size:0.76rem;
  font-weight:700;
  line-height:1;
  padding:0 0.68rem;
  flex:0 0 auto;
  border-radius:8px;
}
.lv-filter-popover .btn-outline-secondary,
.lv-filter-popover .lv-filter-freeze-btn{
  color:var(--portal-bg);
  border-color:rgba(8, 9, 28, 0.28);
  background:#fff;
}
.lv-filter-popover .btn-outline-secondary:hover,
.lv-filter-popover .btn-outline-secondary:focus,
.lv-filter-popover .lv-filter-freeze-btn:hover,
.lv-filter-popover .lv-filter-freeze-btn:focus{
  color:var(--portal-bg);
  border-color:rgba(8, 9, 28, 0.48);
  background:rgba(8, 9, 28, 0.06);
  box-shadow:none;
}
.lv-filter-popover .btn-primary{
  background:var(--portal-accent);
  border-color:var(--portal-accent);
  color:var(--portal-bg) !important;
  font-weight:800;
}
.lv-filter-popover .btn-primary:hover,
.lv-filter-popover .btn-primary:focus{
  background:var(--portal-bg);
  border-color:var(--portal-bg);
  color:#fff !important;
}
.lv-filter-popover .btn-primary:disabled{
  background:var(--portal-accent-muted);
  border-color:var(--portal-accent-muted);
  color:var(--portal-bg) !important;
  opacity:.72;
}
.lv-filter-control{
  margin:0 12px;
  width:calc(100% - 24px);
  border-color:rgba(8, 9, 28, 0.2);
  border-radius:8px;
}
.lv-filter-control:focus{
  border-color:var(--portal-accent-hover);
  box-shadow:0 0 0 0.14rem var(--portal-accent-soft);
}
.lv-filter-number-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  padding:0 12px;
}
.lv-filter-number-row .lv-filter-control{
  width:100%;
  margin:0;
}
.lv-filter-search{
  width:calc(100% - 24px);
  margin:0 12px;
  border:1px solid rgba(8, 9, 28, 0.2);
  border-radius:8px;
  color:var(--portal-bg);
  font-size:0.84rem;
  line-height:1.2;
  padding:0.48rem 0.58rem;
}
.lv-filter-search:focus{
  outline:none;
  border-color:var(--portal-accent-hover);
  box-shadow:0 0 0 0.14rem var(--portal-accent-soft);
}
.lv-filter-context-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  margin:0;
  padding:6px 8px;
  border:1px solid rgba(8, 9, 28, 0.12);
  border-radius:8px;
  background:#f8fafc;
  color:var(--portal-bg);
  cursor:pointer;
  font-size:0.78rem;
  font-weight:700;
  line-height:1.15;
  text-align:center;
}
.lv-filter-popover-head .lv-filter-context-toggle--header{
  flex:1 1 auto;
  min-width:0;
  width:auto;
  height:32px;
  min-height:32px;
  padding:0 0.7rem;
  border-color:rgba(8, 9, 28, 0.2);
  border-radius:8px;
  background:#fff;
  font-size:0.76rem;
  line-height:1;
  white-space:nowrap;
}
.lv-filter-context-toggle-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.lv-filter-context-toggle::before{
  content:"";
  flex:0 0 auto;
  width:8px;
  height:8px;
  margin-right:6px;
  border-radius:999px;
  background:rgba(8, 9, 28, 0.28);
}
.lv-filter-context-toggle:hover,
.lv-filter-context-toggle:focus{
  border-color:rgba(8, 9, 28, 0.28);
  background:#eef2f7;
  outline:none;
}
.lv-filter-context-toggle.is-on{
  border-color:rgba(174, 217, 31, 0.72);
  background:var(--portal-accent-soft);
  color:var(--portal-bg);
}
.lv-filter-context-toggle.is-on::before{
  background:var(--portal-accent);
  box-shadow:0 0 0 3px rgba(174, 217, 31, 0.16);
}
.lv-filter-context-toggle.is-on:hover,
.lv-filter-context-toggle.is-on:focus{
  border-color:var(--portal-accent-hover);
  background:rgba(174, 217, 31, 0.24);
}
.lv-filter-color-row{
  display:flex;
  align-items:center;
  gap:8px;
  padding:0 12px;
}
.lv-filter-color-label{
  font-size:0.73rem;
  color:#6b7280;
}
.lv-filter-list{
  overflow:auto;
  max-height:242px;
  min-height:96px;
  margin:0 12px;
  border:1px solid rgba(8, 9, 28, 0.12);
  border-radius:8px;
  padding:5px;
  flex:1 1 auto;
  overscroll-behavior:contain;
  display:flex;
  flex-direction:column;
  background:#fff;
  scrollbar-gutter:stable;
}
.lv-filter-option{
  min-height:34px;
  margin:0;
  padding:0.35rem 0.42rem;
  border:1px solid transparent;
  border-radius:7px;
  color:rgba(8, 9, 28, 0.82);
  cursor:pointer;
  transition:background-color 120ms ease, border-color 120ms ease;
}
.lv-filter-option:hover,
.lv-filter-option:focus-within{
  border-color:rgba(8, 9, 28, 0.1);
  background:#f7f9fc;
}
.lv-filter-option.is-selected{
  border-color:rgba(174, 217, 31, 0.5);
  background:rgba(174, 217, 31, 0.12);
}
.lv-filter-checkbox{
  width:14px;
  height:14px;
  flex:0 0 auto;
  accent-color:var(--portal-bg);
}
.lv-filter-option-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:0.84rem;
  line-height:1.25;
}
.lv-filter-loading{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  margin:0 12px;
  padding:4px 6px;
  color:#64748b;
  font-size:0.78rem;
}
.lv-filter-loading[hidden]{
  display:none;
}
.lv-filter-empty{
  min-height:32px;
  margin:0 12px;
  padding:7px 8px;
  border:1px dashed #cbd5e1;
  border-radius:8px;
  color:#64748b;
  background:#f8fafc;
  font-size:0.78rem;
  text-align:center;
}
.lv-filter-empty[hidden]{
  display:none;
}
.lv-filter-spinner{
  width:14px;
  height:14px;
  border:2px solid #cbd5e1;
  border-top-color:var(--portal-bg);
  border-radius:50%;
  animation:lv-filter-spin .75s linear infinite;
  flex:0 0 auto;
}
@keyframes lv-filter-spin{
  to{ transform:rotate(360deg); }
}
.lv-filter-popover-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:0;
  position:sticky;
  bottom:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.94), #fff 32%);
  border-top:1px solid rgba(8, 9, 28, 0.1);
  padding:10px 12px 12px;
}
.lv-filter-popover-actions__group{
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
}
.lv-filter-popover-actions__group--selection{
  justify-content:flex-start;
}
.lv-filter-popover-actions__group--confirm{
  justify-content:flex-end;
}
.lv-filter-popover-actions__group .btn,
.lv-filter-popover-actions > .btn{
  min-height:32px;
  border-radius:8px;
  white-space:nowrap;
}
.lv-filter-dt-tabs{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:0;
  margin-top:4px;
  padding:2px;
  border:1px solid rgba(8, 9, 28, 0.18);
  border-radius:8px;
  background:#f8fafc;
}
.lv-filter-dt-tabs .dt-tab{
  min-height:32px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--portal-ink-soft);
  font-size:0.84rem;
  font-weight:700;
  line-height:1.1;
  transition:background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.lv-filter-dt-tabs .dt-tab:hover,
.lv-filter-dt-tabs .dt-tab:focus{
  color:var(--portal-bg);
  outline:none;
}
.lv-filter-dt-tabs .dt-tab.active{
  background:var(--portal-bg);
  color:#fff;
  box-shadow:0 1px 2px rgba(8, 9, 28, 0.16);
}
.lv-filter-dt-body{
  margin:0 -4px;
  padding:2px 4px 4px;
  flex:1 1 auto;
  overflow:auto;
  overscroll-behavior:contain;
}
.lv-filter-preview{
  margin-top:0;
  padding:8px 10px;
  border:1px solid rgba(8, 9, 28, 0.12);
  border-radius:8px;
  background:#f8fafc;
  font-size:0.76rem;
  color:var(--portal-ink-soft);
  line-height:1.35;
  word-break:break-word;
}
.lv-filter-popover--datetime .dt-tab.active{
  background:var(--portal-bg);
  color:#fff;
}
.lv-filter-popover--datetime{
  gap:10px;
}
.lv-filter-popover--datetime .lv-filter-popover-head{
  gap:6px;
}
.lv-filter-popover--datetime .lv-filter-popover-title{
  font-size:0.8rem;
  line-height:1.2;
}
.lv-filter-popover--datetime .lv-filter-dt-tabs,
.lv-filter-popover--datetime .lv-filter-preview{
  margin-left:12px;
  margin-right:12px;
}
.lv-filter-popover--datetime .lv-filter-dt-body{
  margin-left:8px;
  margin-right:8px;
}
.lv-filter-popover--datetime .lv-filter-control{
  width:100%;
  margin:0;
}
.lv-dt-panel{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.lv-dt-panel > .small.text-muted{
  margin:0 !important;
  color:var(--portal-ink-soft) !important;
  font-size:0.72rem;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.lv-dt-panel > .d-flex.flex-wrap{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:6px !important;
  margin:0 !important;
}
.lv-dt-panel .rel-pick,
.lv-dt-panel .rel-time{
  min-height:30px;
  border:1px solid rgba(8, 9, 28, 0.16) !important;
  border-radius:6px !important;
  background:#fff !important;
  color:var(--portal-bg) !important;
  font-size:0.78rem !important;
  font-weight:600;
  line-height:1.1;
  padding:5px 8px !important;
  white-space:nowrap;
  transition:background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.lv-dt-panel .rel-pick:hover,
.lv-dt-panel .rel-pick:focus,
.lv-dt-panel .rel-time:hover,
.lv-dt-panel .rel-time:focus{
  border-color:var(--portal-accent-hover) !important;
  background:var(--portal-accent-soft) !important;
  color:var(--portal-bg) !important;
  outline:none;
}
.lv-dt-panel .rel-pick.active{
  border-color:var(--portal-bg) !important;
  background:var(--portal-bg) !important;
  color:#fff !important;
  box-shadow:0 1px 2px rgba(8, 9, 28, 0.16);
}
.lv-dt-panel > .d-flex.align-items-center{
  display:grid !important;
  grid-template-columns:auto minmax(72px, 1fr) auto auto;
  gap:6px !important;
  align-items:center !important;
  margin:0 !important;
  padding:8px;
  border:1px solid rgba(8, 9, 28, 0.12);
  border-radius:8px;
  background:#fbfdff;
}
.lv-dt-panel > .d-flex.align-items-center:nth-of-type(4){
  grid-template-columns:auto minmax(0, 1fr) auto minmax(0, 1fr);
}
.lv-dt-panel > .d-flex.align-items-center .small{
  color:var(--portal-ink-soft);
  font-size:0.78rem;
  font-weight:600;
  white-space:nowrap;
}
.lv-dt-panel .lv-af-input-lastn{
  width:100% !important;
  min-width:68px;
}
.lv-dt-panel .lv-af-input-time{
  width:100% !important;
  min-width:0;
}
.lv-dt-panel > .small.text-muted:last-child{
  padding:6px 8px;
  border-radius:6px;
  background:#f8fafc;
  color:var(--portal-ink-soft) !important;
  font-size:0.72rem;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
}
.lv-dt-absolute-panel > .d-flex{
  display:grid !important;
  grid-template-columns:112px minmax(0, 1fr) minmax(0, 1fr);
  gap:8px !important;
  align-items:end !important;
  padding:8px;
  border:1px solid rgba(8, 9, 28, 0.12);
  border-radius:8px;
  background:#fbfdff;
}
.lv-dt-absolute-panel .lv-af-op-select,
.lv-dt-absolute-panel .lv-af-flex-1{
  min-height:34px;
  border-color:rgba(8, 9, 28, 0.22);
  border-radius:6px;
  font-size:0.82rem;
}
.lv-filter-popover--datetime .lv-filter-dt-body > hr{
  margin:8px 0 0;
  border:0;
  border-top:1px solid #eef2f7;
}
.lv-filter-popover--time{
  width:360px !important;
  max-height:none !important;
  gap:10px;
}
.lv-filter-popover--time .lv-filter-popover-head{
  padding-bottom:2px;
}
.lv-filter-popover--time .lv-filter-dt-body{
  margin-top:0;
  overflow:visible;
}
.lv-time-filter{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.lv-time-filter-heading{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--portal-ink-soft);
  font-size:0.9rem;
  font-weight:700;
}
.lv-time-filter-icon{
  width:20px;
  height:20px;
  border-radius:50%;
  background:var(--portal-bg);
  position:relative;
  flex:0 0 auto;
}
.lv-time-filter-icon::before,
.lv-time-filter-icon::after{
  content:"";
  position:absolute;
  left:9px;
  top:4px;
  width:2px;
  height:7px;
  background:#fff;
  border-radius:2px;
  transform-origin:bottom center;
}
.lv-time-filter-icon::after{
  top:9px;
  height:5px;
  transform:rotate(110deg);
}
.lv-time-filter-presets{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}
.lv-time-preset{
  height:34px;
  border:1px solid rgba(8, 9, 28, 0.16);
  border-radius:6px;
  background:#fff;
  color:var(--portal-bg);
  font-weight:700;
  font-size:0.9rem;
  line-height:1;
  transition:background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.lv-time-preset:hover,
.lv-time-preset:focus{
  border-color:var(--portal-accent-hover);
  background:var(--portal-accent-soft);
  color:var(--portal-bg);
  outline:none;
}
.lv-time-preset.active{
  background:var(--portal-bg);
  border-color:var(--portal-bg);
  color:#fff;
  box-shadow:0 1px 2px rgba(8, 9, 28, 0.16);
}
.lv-time-filter-inputs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.lv-time-input-wrap{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin:0;
  color:var(--portal-ink-soft);
  font-size:0.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.02em;
}
.lv-time-input{
  height:40px;
  width:100%;
  border:1px solid rgba(8, 9, 28, 0.22);
  border-radius:6px;
  background:#fff;
  color:var(--portal-bg);
  font-size:0.92rem;
  font-weight:600;
  padding:0 10px;
}
.lv-time-input:focus{
  border-color:var(--portal-bg);
  box-shadow:0 0 0 0.12rem rgba(8, 9, 28, 0.14);
  outline:none;
}
.lv-filter-popover--time .lv-filter-preview{
  color:var(--portal-ink-soft);
  font-size:0.78rem;
}
.lv-filter-popover--time .lv-filter-popover-actions .btn-primary{
  background:var(--portal-accent);
  border-color:var(--portal-accent);
  color:var(--portal-bg) !important;
}
.lv-filter-popover--time .lv-filter-popover-actions .btn-primary:hover,
.lv-filter-popover--time .lv-filter-popover-actions .btn-primary:focus{
  background:var(--portal-bg);
  border-color:var(--portal-bg);
  color:#fff !important;
}
.lv-filter-popover--time .lv-filter-popover-actions .btn-primary:disabled{
  background:var(--portal-accent-muted);
  border-color:var(--portal-accent-muted);
  color:var(--portal-bg) !important;
  opacity:.7;
}

.filter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  line-height: 0;
  cursor: pointer;
  position: relative;
  border-radius: 4px;
  color:var(--lv-header-icon-neutral);
}
.filter-icon:focus-visible {
  outline: 2px solid rgba(8, 9, 28, 0.35);
  outline-offset: 1px;
}

/* both svgs are absolutely stacked; no layout shift */
.filter-icon .fi {
  position: absolute;
  inset: 0;
  width: 14px;
  height: 14px;
  margin: auto;          /* center inside 18x18 box */
  pointer-events: none;
}

/* default: show base, hide active */
.filter-icon .fi-base { opacity: 1; }
.filter-icon .fi-on   { opacity: 0; }

/* active state: flip opacities and add halo without changing box size */

.filter-icon.is-on .fi-base { opacity: 0; }
.filter-icon.is-on .fi-on   { opacity: 1; }
.filter-icon.is-on{ color:var(--portal-bg); }
.filter-icon.is-on::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 3px;
  background: rgba(8, 9, 28, 0.12);
}

/* Avoid forcing extra compositing layers; it can hurt scroll smoothness. */
.tabulator .tabulator-frozen,
.tabulator .tabulator-frozen-rows,
.tabulator .tabulator-frozen-columns {
  will-change: auto;
  transform: none;
}

/* Make sure frozen header stays above non-frozen headers consistently */
.tabulator .tabulator-frozen .tabulator-header {
  position: relative;
  z-index: 3;
}

/* Re-applied: force resize handles to span full header height even when Tabulator injects sticky inline styles. */
.tabulator .tabulator-col-resize-handle,
.listview.tabulator .tabulator-col-resize-handle{
  position:sticky !important;
  top:0 !important;
  bottom:0 !important;
  width:2.5px !important;
  height: var(--lv-table-header-label-height) !important;
  margin:0 !important;
  right:-10px !important;
  left:auto !important;
  z-index:320 !important;
  pointer-events:auto !important;
  touch-action:none !important;
}


/* Date Picker Overrides per column filter */
.af-dt-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:6px; }
.af-chip { font-size:11px; padding:2px 10px; border-radius:999px;
  border:1px solid #e5e7eb; background:#f9fafb; cursor:pointer; }
.af-chip:hover { background:#eef2ff; border-color:#c7d2fe; }
.af-tz { margin-top:4px; font-size:11px; color:#6b7280; }
.af-rel-chip .badge { padding: .25rem .5rem; border-radius: .5rem; }
/* spacing helpers since BS4 lacks gap utilities */
.qp-gap > * { margin-right:.5rem; margin-bottom:.5rem; }
.qp-gap > *:last-child { margin-right:0; }

/* compact widths for selects/inputs */
.qp-w-90 { width:90px; }
.qp-w-120 { width:120px; }
.qp-w-140 { width:140px; }

/* preview box */
.qp-preview-box {
  border:1px solid #e5e7eb; border-radius:.5rem;
  padding:.5rem .6rem; background:#f9fafb; min-height:40px; font-size:.9rem;
}
.qp-time .btn{ white-space:nowrap; }
    .bt-chip{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.85rem;line-height:1;border:1px solid #e5e7eb;background:#f3f4f6}
    .bt-chip--score5{background:#d1fae5;border-color:#34d399;color:#065f46}
    .bt-chip--score4{background:#ffedd5;border-color:#fb923c;color:#7c2d12}
    .bt-chip--score3{background:#fef9c3;border-color:#f59e0b;color:#78350f}
    .bt-chip--score2{background:#ede9fe;border-color:#8b5cf6;color:#4c1d95}
    .bt-chip--score1{background:#dbeafe;border-color:#60a5fa;color:#1e3a8a}
    .bt-chip--score0{background:#fee2e2;border-color:#ef4444;color:#7f1d1d}
    .color-dot { display:inline-block; width:14px; height:14px; border-radius:999px;
                 border:1px solid rgba(0,0,0,.15); cursor:pointer; }
    .color-dot.is-on { outline: 2px solid #4b5563; outline-offset: 2px; }
    .color-dot.forecast-color-dot--very-low{background:#dc2626}
    .color-dot.forecast-color-dot--low{background:#fca5a5}
    .color-dot.forecast-color-dot--medium{background:#fde047}
    .color-dot.forecast-color-dot--medium-high{background:#86efac}
    .color-dot.forecast-color-dot--high{background:#15803d}
    .color-dot.forecast-color-dot--very-high{background:#14532d}
    .color-dot.forecast-color-dot--unknown{background:#e5e7eb}
    .color-dot.forecast-color-dot--yellow{background:#fff4b8}
    .lv-counter {
      position: fixed; right: 10px; bottom: 10px;
      display: grid; grid-template-columns: 1fr; gap: 6px;
      z-index: 999; background: rgba(226, 226, 226, 0.8);
      color: #000000; padding: 3px 5px; border-radius: 3px;
      font-size: 11px; line-height: 1.1;
      box-shadow: 0 6px 14px rgba(0,0,0,.05);
      backdrop-filter: blur(4px);
      pointer-events: none;  /* <- critical */
    }
    .lv-counter-row {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      pointer-events: auto;
      flex-wrap: wrap;
    }
    .lv-counter .lv-counter-toggle,
    .lv-counter .lv-counter-pill {
      pointer-events: auto;
      border: 0px;
      background: #ffffff00;
      color: #111827;
      border-radius: 999px;
      padding: 3px 7px;
      font-size: 11px;
      line-height: 1.1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .lv-counter .lv-counter-toggle:hover,
    .lv-counter .lv-counter-pill:hover {
      background: #f8fafc;
    }
    .lv-counter .lv-counter-toggle.is-loading {
      opacity: .8;
      cursor: progress;
    }
    .lv-counter .muted { opacity: .85; }
    .lv-counter .lv-counter-range {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      pointer-events: auto;
      white-space: nowrap;
      padding: 2px 4px;
      border-radius: 999px;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.2);
    }
    .lv-counter .lv-counter-range.is-active {
      border-color: #171f4a;
      background: #171f4a;
      box-shadow: 0 0 0 2px rgba(23, 31, 74, 0.22);
    }
    .lv-counter .lv-counter-range.is-active .lv-counter-range__label {
      color: #ffffff;
    }
    .lv-counter .lv-counter-range__label {
      font-size: 11px;
      font-weight: 600;
      color: #111827;
      padding-left: 2px;
    }
    .lv-counter .lv-counter-range__input {
      pointer-events: auto;
      width: 72px;
      height: 22px;
      padding: 2px 6px;
      border: 1px solid rgba(17, 24, 39, 0.12);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.9);
      font-size: 11px;
      line-height: 1.1;
    }
    .lv-counter .lv-counter-range.is-active .lv-counter-range__input {
      border-color: #171f4a;
      background: rgba(255, 255, 255, 0.14);
      color: #ffffff;
      caret-color: #ffffff;
    }
    .lv-counter .lv-counter-range.is-active .lv-counter-range__clear {
      color: #ffffff;
      opacity: 0.92;
    }
    .lv-counter .lv-counter-range.is-active .lv-counter-range__clear:hover {
      background: rgba(255, 255, 255, 0.18);
      opacity: 1;
    }
    .lv-counter .lv-counter-range__input:focus {
      outline: none;
      border-color: rgba(13, 110, 253, 0.65);
      box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.12);
    }
    .lv-counter .lv-counter-range__clear {
      pointer-events: auto;
      border: 0;
      background: transparent;
      color: #6b7280;
      width: 18px;
      height: 18px;
      line-height: 1;
      padding: 0;
      border-radius: 999px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      opacity: .75;
    }
    .lv-counter .lv-counter-range__clear:hover {
      opacity: 1;
      background: rgba(17, 24, 39, 0.08);
    }
    .confirm-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  display:flex; align-items:center; justify-content:center; z-index:4000;
}
.confirm-modal{
  background:#fff; border-radius:10px; padding:16px 18px; width:360px;
  box-shadow:0 20px 60px rgba(0,0,0,.18); border:1px solid #e5e7eb;
}
.confirm-title{ font-weight:600; font-size:1.05rem; margin:0 0 6px; }
.confirm-msg{ color:#374151; font-size:.95rem; margin-bottom:12px; }
.confirm-actions{ display:flex; justify-content:flex-end; gap:.5rem; margin-top:8px; }
.confirm-btn{ border:1px solid #d1d5db; background:#fff; padding:.4rem .7rem; border-radius:8px; }
.confirm-btn-danger{ background:#ef4444; color:#fff; border-color:#ef4444; }
.confirm-btn:hover{ filter:brightness(0.98); }
.lv-cols-overlay .confirm-modal.lv-cols-modal{
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
}
.lv-cols-list{
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  padding: 6px;
  overflow: auto;
  min-height: 220px;
  max-height: 52vh;
}
.lv-cols-item{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}
.lv-cols-item:hover{
  background: #eef2f7;
}
.lv-cols-item-frozen{
  cursor: default;
}
.lv-cols-item input[type="checkbox"]{
  margin: 0;
}
.lv-cols-title{
  flex: 1 1 auto;
  min-width: 0;
}
.lv-cols-drag-handle{
  align-items: center;
  display: inline-flex;
  flex: 0 0 16px;
  height: 16px;
  justify-content: center;
  margin-left: auto;
  margin-right: 2px;
  color: #9ca3af;
  cursor: grab;
  opacity: .72;
  width: 16px;
}
.lv-cols-item:hover .lv-cols-drag-handle{
  opacity: .9;
}
.lv-cols-drag-icon{
  display: block;
  fill: currentColor;
  height: 16px;
  stroke: none;
  width: 16px;
}
.lv-cols-freeze-btn{
  flex: 0 0 auto;
  line-height: 1.15;
  margin-left: 8px;
  padding: 2px 7px;
}
.lv-cols-item[draggable="true"]{
  cursor: grab;
}
.lv-cols-item-frozen .lv-cols-drag-handle{
  cursor: default;
  opacity: 0;
}
.lv-cols-item[draggable="true"]:active,
.lv-cols-item[draggable="true"]:active .lv-cols-drag-handle{
  cursor: grabbing;
}
.lv-cols-item-dragging{
  cursor: grabbing;
  opacity: .55;
}
.lv-cols-drag-image{
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .16);
  left: -10000px;
  opacity: .92;
  pointer-events: none;
  position: fixed;
  top: -10000px;
  z-index: 5000;
}
.lv-cols-item-drop-before{
  box-shadow: inset 0 2px 0 #2563eb;
}
.lv-cols-item-drop-after{
  box-shadow: inset 0 -2px 0 #2563eb;
}
.lv-count-report-modal{
  width:min(960px, 96vw);
  max-width:960px;
  max-height:calc(100vh - 24px);
  display:flex;
  flex-direction:column;
}
.lv-count-report-list{
  min-height:180px;
}
.lv-count-report-results{
  display:grid;
  gap:12px;
  overflow:auto;
  max-height:60vh;
}
.lv-sum-report-results{
  overflow:auto;
  max-height:60vh;
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
}
.lv-sum-report-results table{
  margin-bottom:0;
}
.lv-sum-report-results thead th{
  position:sticky;
  top:0;
  background:#f8fafc;
  z-index:1;
}
.lv-sum-report-results tbody th,
.lv-sum-report-results tbody td{
  vertical-align:middle;
}
.lv-count-report-card{
  border:1px solid #e5e7eb;
  border-radius:10px;
  background:#fff;
  overflow:hidden;
}
.lv-count-report-card__title{
  padding:10px 12px;
  font-weight:600;
  border-bottom:1px solid #e5e7eb;
  background:#f8fafc;
}
.lv-count-report-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(130px, 1fr));
  gap:8px;
  padding:10px 12px;
  border-bottom:1px solid #e5e7eb;
  background:#fff;
}
.lv-count-report-stat{
  min-width:0;
}
.lv-count-report-stat__label{
  display:block;
  color:#64748b;
  font-size:0.72rem;
  font-weight:700;
  text-transform:uppercase;
}
.lv-count-report-stat__value{
  display:block;
  overflow-wrap:anywhere;
  color:#0f172a;
  font-size:0.92rem;
}
.confirm-btn--primary{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}
#bulk-modal.is-hidden {
  display: none;
}

  #clear-filter span[aria-hidden="true"]{
    color:#c43b3b;
  }
  #clear-filter:hover span[aria-hidden="true"]{
    color:#a52e2e;
  }

