:root{
  --hsz-table-toolbar-bg:#ffffff;
  --hsz-table-active:#1769e8;
  --hsz-table-active-soft:#eaf2ff;
  --hsz-table-border:#d9e3f2;
  --hsz-table-muted:#64748b;
}

.hsz-managed-table-card{
  overflow:hidden;
}

.hsz-table-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  background:var(--hsz-table-toolbar-bg);
  border-bottom:1px solid var(--hsz-table-border);
}

.hsz-table-search-wrap{
  position:relative;
  display:flex;
  align-items:center;
  flex:1 1 360px;
  max-width:520px;
}

.hsz-table-search{
  width:100%;
  min-height:36px;
  padding:7px 38px 7px 34px;
  border:1px solid var(--hsz-table-border);
  border-radius:10px;
  background:#f8fbff;
  color:#10233f;
  font:600 13px Cairo,Arial,sans-serif;
  outline:none;
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}

.hsz-table-search:focus{
  border-color:var(--hsz-table-active);
  background:#fff;
  box-shadow:0 0 0 3px rgba(23,105,232,.12);
}

.hsz-table-search-icon{
  position:absolute;
  inset-inline-start:13px;
  color:#64748b;
  font-size:18px;
  pointer-events:none;
}

.hsz-table-search-clear{
  position:absolute;
  inset-inline-end:5px;
  width:28px!important;
  min-width:28px!important;
  height:28px!important;
  padding:0!important;
  opacity:0;
  visibility:hidden;
}

.hsz-table-search-clear.is-visible{
  opacity:1;
  visibility:visible;
}

.hsz-table-toolbar-meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  color:var(--hsz-table-muted);
  font-size:12px;
  font-weight:700;
}

.hsz-table-size-label{
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
}

.hsz-table-page-size{
  min-width:68px;
  height:34px;
  border:1px solid var(--hsz-table-border);
  border-radius:9px;
  background:#fff;
  padding:4px 8px;
  font:700 12px Cairo,Arial,sans-serif;
  color:#10233f;
}

.hsz-table-result-count{
  min-width:72px;
  text-align:center;
  white-space:nowrap;
}

.hsz-table-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:52px;
  padding:9px 12px;
  border-top:1px solid var(--hsz-table-border);
  background:#fbfdff;
}

.hsz-table-pagination.is-single-page .hsz-table-page-actions{
  display:none;
}

.hsz-table-page-info{
  color:var(--hsz-table-muted);
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
}

.hsz-table-page-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:6px;
}

.hsz-table-page-btn{
  min-width:31px!important;
  width:auto!important;
  height:31px!important;
  min-height:31px!important;
  padding:4px 9px!important;
  border-radius:8px!important;
  font-size:12px!important;
}

.hsz-table-page-btn.is-active,
.hsz-table-page-btn[aria-current="page"]{
  color:#fff!important;
  border-color:var(--hsz-table-active)!important;
  background:var(--hsz-table-active)!important;
  box-shadow:0 4px 10px rgba(23,105,232,.2)!important;
}

.hsz-table-page-btn:disabled{
  opacity:.42!important;
  cursor:not-allowed!important;
}

[role="tablist"] button.is-active,
[role="tablist"] [role="tab"][aria-selected="true"],
.accounting-tabs button.is-active,
.module-tabs button.is-active,
.view-tabs button.is-active,
.sub-tabs button.is-active,
.filter-tabs button.is-active,
.segmented-control button.is-active,
.tab-buttons button.is-active{
  color:#fff!important;
  background:var(--hsz-table-active)!important;
  border-color:var(--hsz-table-active)!important;
  box-shadow:0 4px 12px rgba(23,105,232,.18)!important;
}

[role="tablist"] button:not(.is-active),
.accounting-tabs button:not(.is-active),
.module-tabs button:not(.is-active),
.view-tabs button:not(.is-active),
.sub-tabs button:not(.is-active),
.filter-tabs button:not(.is-active),
.segmented-control button:not(.is-active),
.tab-buttons button:not(.is-active){
  background:#fff;
}

button:active:not(:disabled){
  transform:translateY(1px);
}

@media (max-width:820px){
  .hsz-table-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .hsz-table-search-wrap{
    flex-basis:auto;
    max-width:none;
  }
  .hsz-table-toolbar-meta,
  .hsz-table-pagination{
    width:100%;
    justify-content:space-between;
  }
  .hsz-table-pagination{
    align-items:flex-start;
    flex-direction:column;
  }
  .hsz-table-page-actions{
    width:100%;
    justify-content:flex-start;
  }
}
