html {
  background: rgb(241, 241, 241);
  font-family: monospace;
  color: #222;
  --body: #f9f9f9
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.spa-app {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px;
  margin: 0 auto;
  height: 100%;
}

.spa-nav {
  background: #FFF;
  border-radius: var(--radius);
  padding: 12px 10px;
  display: flex;
  justify-content: space-around;
  box-shadow: 0px 5px 20px rgb(0 0 0 / 5%);
  overflow: auto;
}

.spa-nav .current {
  color: var(--primary)
}

.spa-nav-item {
  font-size: 8px;
  text-align: center;
}

.spa-nav-item i {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

@media(min-width:800px) {
  .spa-nav-item {
    font-size: 14px
  }

  .spa-nav-item i {
    display: inline-block;
    font-size: 14px;
    margin-bottom: 0;
  }
}

.spa-content {
  flex: 1;
}











.spa-crud-container {
  width: 100%;
  height: 100%;
  display: flex;
  max-width: 100%;
}

.spa-crud {
  display: flex;
  flex: 1;
  max-width: 100%;
  flex-wrap: nowrap;
  flex-direction: row;
  position: relative;
  height: 100%;
}

.spa-crud .cell {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 20%;
  white-space: nowrap;
}

.spa-table-area,
.spa-editor-area {
  max-width: 100%;
  min-width: 50px;
  margin: 10px 0 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.spa-table-title .rows-count {
  font-size: 50%;
  opacity: 0.8;
  vertical-align: super;
}

.spa-editor-area {
  margin-left: 0;
  margin-right: 0;
  max-width: 760px;
  width: 100%;
  background: #ffffff;
  padding: 20px;
  display: block;
  position: absolute;
  right: 0;
  box-shadow: 0 50px 100px #00000038;
  z-index: 999;
  height: calc(100% - 10px);
  overflow: auto;
  overflow-x: hidden;
  border-radius: 10px;
}

.spa-editor-area .fid {
  opacity: 0.5;
  font-weight: 400;
  float: right;
}

.col-sort:after {
  content: ''
}

.col-sort.asc:after {
  content: '▼'
}

.col-sort.desc:after {
  content: '▲'
}

.spa-editor-area form {
  width: auto
}

.spa-editor-area .blockEditing {
  opacity: 0.4;
  pointer-events: none;
  transition: 0.1s;
}

.spa-editor-area .submit {
  position: sticky;
  bottom: 0;
  z-index: 8888
}

.spa-table {
  overflow: auto;
  flex: 1;
  position: relative;
  margin: 10px 0;
  border-radius: 10px;
}

.spa-table table {
  position: absolute;
  overflow: auto;
  width: 100%;
}

.spa-table th {
  text-align: inherit;
  background: #dedede;
  cursor: pointer;
}

.spa-table tr:nth-child(2n) {
  background: rgba(0, 0, 0, 0.03)
}

.spa-rows {
  flex: 1
}

.spa-pagination {
  display: flex;
  width: 100%;
  justify-content: space-between;
  text-align: center;
}

.spa-pagination .nav-item {
  padding: 5px 10px;
  display: block;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  background: var(--shadow);
  flex: 1;
  opacity: 0.5
}

.spa-pagination .nav-item:hover {
  opacity: 1
}

.spa-pagination .nav-item.current {
  font-weight: 800;
  background-color: var(--primary);
  color: var(--primary-text);
  opacity: 1
}

.spa-pagination .nav-item.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.spa-crud .field-data {
  line-break: anywhere;
  text-overflow: ellipsis;
  overflow: hidden;
}

.spa-table table thead {
  background: transparent;
  position: sticky;
  z-index: 200;
  top: 0;
}

.spa-table table thead th {
  color: #000;
  font-weight: 800;
  font-size: 14px;
  border-color: #cdcdcd;
  line-height: 1;
}

.crud-field-help textarea {
  min-height: 300px
}


.spa-crud .isColumn {
  white-space: nowrap;
}

.spa-crud tr.empty td {
  text-align: center;
  font-size: 30px;
  padding: 10%;
  border-bottom: none;
}

.spa-editor-area.spa-editor-large {
  max-width: 100%;
}

.spa-table .filter-search {
  padding: 2px 5px;
  border: none;
  background: #0000000d;
  border-radius: 6px;
  margin: 5px 0 0 0;
  font-size: 14px;
  min-width: 40px;
}

.spa-table .editing-row,
.spa-table .editing-row:nth-child(2n) {
  background: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.debug-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  overflow: hidden;
  border-radius: 20px;
  background: red;
  color: transparent;
  display: inline-block;
  z-index: 90;
  opacity: 0.2;
}

.debug-dot:hover {
  position: fixed;
  opacity: 1;
  top: 5%;
  left: 2%;
  right: 2%;
  bottom: 5%;
  width: 96%;
  height: 90%;
  z-index: 9999;
  padding: 20px;
  background: #ffffff;
  color: #000;
  box-shadow: 0 0 100px #000000;
  overflow: auto;
}