.smart-grid-table th{padding:0;vertical-align:top}
.smart-grid-sort{min-width:100%;min-height:38px;border:0;background:transparent;padding:9px 10px;display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:9px;font-weight:700;text-transform:uppercase;text-align:left;cursor:pointer;white-space:nowrap}
.smart-grid-sort:hover{background:#EEF1F8;color:var(--navy)}
.sort-indicator{display:inline-flex;align-items:center;gap:3px;color:var(--blue);font-size:11px}
.sort-indicator b{width:15px;height:15px;background:var(--navy);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:8px}
.smart-grid-filter-row th{top:38px;background:#fff;padding:5px 6px;border-bottom:1px solid var(--line-strong)}
.smart-grid-filter{width:100%;height:29px;border:1px solid var(--line);background:#FAFBFD;padding:0 7px;display:flex;align-items:center;justify-content:space-between;gap:6px;color:var(--muted);font-size:9px;min-width:86px;cursor:pointer}
.smart-grid-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.smart-grid-filter svg{width:12px;height:12px;flex:0 0 auto}
.smart-grid-filter:hover,.smart-grid-filter:focus-visible{border-color:var(--blue);background:#fff;color:var(--navy)}
.smart-grid-filter.is-active{border-color:var(--blue);background:#EEF3FF;color:var(--navy);font-weight:700}
.smart-grid-table tbody tr[data-grid-row]{cursor:pointer}
.grid-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.grid-help{font-size:9px;color:var(--muted);white-space:nowrap}
.column-layout-dialog,.grid-filter-dialog{width:min(480px,calc(100vw - 28px));max-height:calc(100vh - 40px);border:0;border-radius:6px;padding:0;box-shadow:0 24px 70px rgba(15,22,71,.28)}
.column-layout-dialog::backdrop,.grid-filter-dialog::backdrop{background:rgba(15,22,71,.62)}
.column-layout-list{padding:10px 18px;max-height:440px;overflow:auto}
.column-layout-row{min-height:45px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;cursor:grab}
.column-layout-row label{display:flex;align-items:center;gap:10px;color:var(--navy);font-size:11px;font-weight:600}
.column-layout-row label input{accent-color:var(--navy)}
.column-layout-row>div{display:flex;gap:5px}
.compact-icon{width:30px;height:30px}
.compact-icon svg{width:14px;height:14px}
.column-layout-footer{min-height:62px;border-top:1px solid var(--line);padding:10px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.column-layout-footer span{font-size:9px;color:var(--muted);line-height:1.4}
.grid-filter-body{padding:14px 18px 8px}
.grid-filter-search{position:relative;display:block}
.grid-filter-search svg{position:absolute;left:10px;top:50%;width:15px;height:15px;transform:translateY(-50%);color:var(--muted);pointer-events:none}
.grid-filter-search input{width:100%;height:38px;border:1px solid var(--line-strong);padding:0 10px 0 34px;color:var(--ink);font-size:11px}
.grid-filter-search input:focus{outline:0;border-color:var(--blue)}
.grid-filter-toolbar{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.grid-filter-toolbar span{font-size:9px;color:var(--muted)}
.grid-filter-toolbar button{border:0;background:transparent;color:var(--blue);font-size:9px;font-weight:700;cursor:pointer;padding:5px 0}
.grid-filter-options{max-height:330px;overflow:auto;border:1px solid var(--line);background:#fff}
.grid-filter-option{min-height:36px;padding:7px 10px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px;color:var(--ink);font-size:10px;cursor:pointer}
.grid-filter-option:last-child{border-bottom:0}
.grid-filter-option:hover{background:#F5F7FB}
.grid-filter-option input{accent-color:var(--navy)}
.grid-filter-footer{justify-content:space-between}
.grid-filter-actions{display:flex;gap:8px}
@media(max-width:820px){.grid-help{display:none}.smart-grid-filter-row th{top:38px}.grid-filter-dialog{width:calc(100vw - 18px)}}
