.calio-table-widget {
  --calio-table-border: #e5e7eb;
  --calio-table-header-bg: #f8fafc;
  --calio-table-header-color: #111827;
  --calio-table-row-bg: #ffffff;
  --calio-table-row-alt-bg: #f8fafc;
  --calio-table-hover-bg: #eef6ff;
  --calio-table-hover-color: inherit;
  --calio-table-filter-bg: #ffffff;
  --calio-table-filter-border: #e2e8f0;
  --calio-table-filter-text: #334155;
  --calio-table-filter-input-bg: #ffffff;
  --calio-table-filter-input-color: #0f172a;
  --calio-table-filter-input-border: #cbd5e1;
  --calio-table-pagination-active-bg: #2563eb;
  --calio-table-pagination-active-color: #ffffff;

  position: relative;
  border: 1px solid var(--calio-table-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.calio-table-caption {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
  padding: 14px 18px;
  border-bottom: 1px solid var(--calio-table-border);
  background: var(--calio-table-header-bg);
}

.calio-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calio-table-widget table,
.calio-table-widget .calio-table-custom-source table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.calio-table-widget.is-responsive table,
.calio-table-widget.is-responsive .calio-table-custom-source table {
  min-width: 520px;
}

.calio-table-widget table th,
.calio-table-widget table td,
.calio-table-widget .calio-table-custom-source table th,
.calio-table-widget .calio-table-custom-source table td {
  border: 1px solid var(--calio-table-border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

.calio-table-widget thead th,
.calio-table-widget .calio-table-custom-source thead th {
  background: var(--calio-table-header-bg);
  color: var(--calio-table-header-color);
  font-weight: 600;
}

.calio-table-widget tbody td,
.calio-table-widget .calio-table-custom-source tbody td {
  background: var(--calio-table-row-bg);
  color: #374151;
}

.calio-table-widget.has-stripe tbody tr:nth-child(even) td,
.calio-table-widget.has-stripe .calio-table-custom-source tbody tr:nth-child(even) td {
  background: var(--calio-table-row-alt-bg);
}

.calio-table-widget.has-row-hover tbody tr:hover td,
.calio-table-widget.has-row-hover .calio-table-custom-source tbody tr:hover td {
  background: var(--calio-table-hover-bg);
  color: var(--calio-table-hover-color);
}

.calio-table-widget tbody tr.is-highlight td {
  background: #eef2ff;
}

.calio-table-widget.support-minimal table th,
.calio-table-widget.support-minimal table td {
  border-inline-width: 0;
}

.calio-table-widget.support-smooth {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.calio-table-widget.static-pricing tbody td:first-child,
.calio-table-widget.static-feature tbody td:first-child,
.calio-table-widget.has-leading-column tbody td:first-child {
  font-weight: 600;
  color: #111827;
}

.calio-table-widget.static-pricing thead th {
  text-align: center;
}

.calio-table-widget.static-pricing tbody td:not(:first-child) {
  text-align: center;
}

.calio-table-widget.no-vertical-border table th,
.calio-table-widget.no-vertical-border table td {
  border-left-width: 0;
  border-right-width: 0;
}

.calio-table-widget.is-hide-header thead {
  display: none;
}

.calio-table-empty {
  padding: 16px 18px;
  color: #6b7280;
}

.calio-table-widget.has-datatable .calio-table-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--calio-table-filter-bg);
  border-color: var(--calio-table-filter-border);
  flex-wrap: wrap;
}

.calio-table-controls-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.calio-table-controls-right {
  display: inline-flex;
  align-items: center;
  margin-inline-start: auto;
}

.calio-table-widget.has-datatable .calio-table-filter-header {
  border-bottom: 1px solid var(--calio-table-filter-border);
}

.calio-table-widget.has-datatable .calio-table-filter-footer {
  border-top: 1px solid var(--calio-table-filter-border);
  padding-block: 10px;
}

.calio-table-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.calio-table-search-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--calio-table-filter-text);
  white-space: nowrap;
}

.calio-table-search {
  width: 220px;
  max-width: 100%;
  height: 34px;
  border: 1px solid var(--calio-table-filter-input-border);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--calio-table-filter-input-bg);
  color: var(--calio-table-filter-input-color);
  outline: none;
}

.calio-table-length-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  background: #fff;
}

.calio-table-length-custom-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 10px;
  background: #fff;
}

.calio-table-length-label {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.calio-table-length {
  min-width: 68px;
  height: 30px;
  border: 1px solid var(--calio-table-filter-input-border);
  border-radius: 8px;
  background: var(--calio-table-filter-input-bg);
  color: var(--calio-table-filter-input-color);
  font-size: 12px;
  padding: 0 10px;
  outline: none;
}

.calio-table-length:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.calio-table-length-custom {
  width: 70px;
  height: 30px;
  border: 1px solid var(--calio-table-filter-input-border);
  border-radius: 8px;
  background: var(--calio-table-filter-input-bg);
  color: var(--calio-table-filter-input-color);
  font-size: 12px;
  padding: 0 8px;
  text-align: center;
  outline: none;
}

.calio-table-length-custom:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}

.calio-table-length-custom::-webkit-outer-spin-button,
.calio-table-length-custom::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.calio-table-search:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.calio-table-info {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.35;
}

.calio-table-pagination {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.calio-table-page {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.calio-table-page:hover {
  color: #1e3a8a;
  border-color: #93c5fd;
  background: #eff6ff;
}

.calio-table-page.is-active {
  background: var(--calio-table-pagination-active-bg);
  border-color: var(--calio-table-pagination-active-bg);
  color: var(--calio-table-pagination-active-color);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.35);
}

.calio-table-page.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
  background: #f8fafc;
}

.calio-table-page.is-nav {
  min-width: 28px;
  padding: 0;
  font-size: 15px;
  line-height: 24px;
}

.calio-table-page.is-ellipsis {
  min-width: 22px;
  background: transparent;
  border-color: transparent;
  color: #94a3b8;
  font-weight: 500;
}

.calio-table-page:focus-visible {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.calio-table-widget thead th.is-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 24px;
}

.calio-table-widget thead th.is-sortable::after {
  content: '';
  position: absolute;
  inset-inline-end: 10px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  transform: translateY(-30%);
  opacity: 0.45;
}

.calio-table-widget thead th.is-sortable.is-sorted-asc::after {
  border-top: 0;
  border-bottom: 6px solid currentColor;
  transform: translateY(-70%);
  opacity: 0.8;
}

.calio-table-widget thead th.is-sortable.is-sorted-desc::after {
  border-top: 6px solid currentColor;
  border-bottom: 0;
  transform: translateY(-30%);
  opacity: 0.8;
}

.calio-table-widget .calio-table-no-result {
  text-align: center;
  color: #64748b;
  padding: 18px 12px;
}

@media (max-width: 767px) {
  .calio-table-caption {
    padding: 12px 14px;
  }

  .calio-table-widget.has-datatable .calio-table-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .calio-table-controls-right {
    margin-inline-start: 0;
  }

  .calio-table-controls-left,
  .calio-table-controls-right {
    width: 100%;
    justify-content: flex-start;
  }

  .calio-table-pagination {
    justify-content: flex-start;
  }

  .calio-table-search {
    width: 100%;
  }
}
