.tableDistributionBox {
  /* background-image: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); */
  /* height: 100%;
  display: flex;
  flex-direction: column; */
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-image: linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%);
  display: flex;
  flex-direction: column;
}
.table-grid-container {
  border-top-right-radius: 0.6rem;
  background: #fff;
  margin-top: 0.7rem;
  padding: 0.5rem 0.5rem;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.table-grid-header {
  display: flex;
  /* justify-content: space-between; */
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: #273e5f;
}
.table-grid-header.is-esl-refresh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "left close"
    "search .";
  align-items: center;
  column-gap: 0.22rem;
  row-gap: 0.18rem;
}
.table-grid-header-title {
  font-size: 0.7rem;
  color: #273e5f;
}
.table-grid-header-left {
  display: flex;
  align-items: center;
  gap: 0.22rem;
}
.table-grid-header.is-esl-refresh-layout .table-grid-header-left {
  grid-area: left;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.18rem;
  flex-wrap: nowrap;
  max-width: 100%;
}
.table-grid-header.is-esl-refresh-layout .table-grid-header-title {
  flex: 0 1 auto;
  min-width: 0;
  line-height: 1.02;
  font-size: 0.62rem;
  white-space: nowrap;
}
.table-grid-header-right {
  display: flex;
  align-items: center;
}
.table-grid-header-right.is-esl-refresh-layout {
  grid-area: search;
  width: auto;
  justify-content: flex-start;
}
.esl-refresh-header-close {
  grid-area: close;
  justify-self: end;
  align-self: center;
}
.esl-refresh-reload-btn {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 0.16rem;
  flex: 0 0 auto;
  min-width: 2.9rem;
  min-height: 1.22rem;
  padding: 0.06rem 0.28rem 0.06rem 0.06rem;
  border: 1px solid rgba(85, 147, 251, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.94));
  box-shadow: 0 0.07rem 0.22rem rgba(85, 147, 251, 0.12);
  color: #2d5698;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    filter 0.2s ease;
}

.esl-refresh-reload-btn:disabled {
  cursor: default;
  opacity: 0.96;
}
.esl-refresh-reload-disc {
  --esl-refresh-progress: 100%;
  --esl-refresh-accent: #5593fb;
  --esl-refresh-track: rgba(85, 147, 251, 0.16);
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  border-radius: 999px;
  background: conic-gradient(
    var(--esl-refresh-accent) var(--esl-refresh-progress),
    var(--esl-refresh-track) 0
  );
  box-shadow: 0 0.05rem 0.18rem rgba(85, 147, 251, 0.14);
}
.esl-refresh-reload-disc::before {
  content: "";
  position: absolute;
  inset: 0.065rem;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.96));
  box-shadow: inset 0 0 0 1px rgba(85, 147, 251, 0.08);
}
.esl-refresh-reload-disc > * {
  position: relative;
  z-index: 1;
}
.esl-refresh-reload-core {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.055rem;
  line-height: 1;
  transform: translateY(0.015rem);
}
.esl-refresh-reload-value {
  font-size: 0.39rem;
  font-weight: 800;
  letter-spacing: -0.03rem;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0.01rem 0 rgba(255, 255, 255, 0.35);
}
.esl-refresh-reload-unit {
  margin-top: 0;
  font-size: 0.22rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01rem;
  opacity: 0.76;
}
.esl-refresh-reload-copy {
  display: flex;
  min-width: 1.28rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.07rem;
  line-height: 1.1;
  text-align: left;
  font-size: 0.3rem;
}
.esl-refresh-reload-label {
  display: block;
  font-size: inherit;
  font-weight: 800;
  letter-spacing: 0.012rem;
  line-height: 1.04;
  white-space: nowrap;
}
.esl-refresh-reload-hint {
  display: block;
  font-size: inherit;
  font-weight: 700;
  color: rgba(45, 86, 152, 0.66);
  letter-spacing: 0.006rem;
  line-height: 1.04;
  white-space: nowrap;
}
.esl-refresh-reload-btn.is-low-time {
  border-color: rgba(255, 155, 61, 0.18);
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 247, 238, 0.96));
  color: #9a5100;
}
.esl-refresh-reload-btn.is-low-time .esl-refresh-reload-disc {
  --esl-refresh-accent: #ff9b3d;
  --esl-refresh-track: rgba(255, 155, 61, 0.18);
}
.esl-refresh-reload-btn.is-low-time .esl-refresh-reload-disc::before {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 242, 228, 0.96));
}
.esl-refresh-reload-btn.is-low-time .esl-refresh-reload-hint {
  color: rgba(154, 81, 0, 0.68);
}
.esl-refresh-reload-btn.is-reloading {
  border-color: rgba(63, 132, 255, 0.18);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 244, 255, 0.96));
  animation: esl-refresh-reload-pulse 1.2s ease-in-out infinite;
}
.esl-refresh-reload-btn.is-reloading .esl-refresh-reload-disc {
  --esl-refresh-progress: 100%;
  --esl-refresh-accent: #3f84ff;
  --esl-refresh-track: rgba(63, 132, 255, 0.16);
}
.esl-refresh-reload-btn.is-reloading .esl-refresh-reload-disc::before {
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(229, 240, 255, 0.96));
}
.esl-refresh-reload-btn.is-reloading .esl-refresh-reload-value,
.esl-refresh-reload-btn.is-reloading .esl-refresh-reload-unit,
.esl-refresh-reload-btn.is-reloading .esl-refresh-reload-label,
.esl-refresh-reload-btn.is-reloading .esl-refresh-reload-hint {
  opacity: 0.8;
}
@keyframes esl-refresh-reload-pulse {
  0%,
  100% {
    box-shadow: 0 0.05rem 0.18rem rgba(63, 132, 255, 0.16);
  }
  50% {
    box-shadow: 0 0.08rem 0.24rem rgba(63, 132, 255, 0.24);
  }
}
.table-grid-header-right .tableNum-jump {
  display: flex;
  margin-right: 0.9rem;
  align-items: center;
  gap: 0.14rem;
}
.table-grid-search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.16rem;
  min-height: 0.62rem;
  padding-bottom: 0.06rem;
}
.table-grid-search-field::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(39, 62, 95, 0.48);
  transition: background-color 0.2s ease;
}
.table-grid-search-field:focus-within::after {
  background: #273e5f;
}
.table-grid-search-icon {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  object-fit: contain;
  opacity: 0.78;
  transform: translateY(-0.01rem);
}
.table-grid-header-right.is-esl-refresh-layout .tableNum-jump {
  width: auto;
  margin-right: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.table-grid-header-right.is-esl-refresh-layout .table-grid-search-field {
  width: 4.46rem;
  max-width: 100%;
}
.table-grid-header-right .tableNum-jump .layui-input {
  width: 3rem;
  border: 0;
  border-radius: unset;
  padding: 0;
  color: rgba(0, 0, 0, 0.87);
  font-size: 0.37rem;
  line-height: 1.12;
  background: transparent;
}
.table-grid-header-right.is-esl-refresh-layout .tableNum-jump .layui-input {
  width: 4rem;
  font-size: 0.37rem;
  line-height: 1.08;
}
.table-grid-header-right .tableNum-jump .layui-input:focus {
  font-size: 0.37rem !important;
}
.table-grid-header-right.is-esl-refresh-layout .tableNum-jump .layui-input:focus {
  font-size: 0.37rem !important;
}
.table-grid-header-right .tableNum-jump .layui-input::-webkit-input-placeholder {
  font-size: 0.37rem;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -ms-transition: all 0.3s;
}
.table-grid-header-right.is-esl-refresh-layout
  .tableNum-jump
  .layui-input::-webkit-input-placeholder {
  font-size: 0.37rem;
}
.table-grid-header-right .tableNum-jump .layui-input:focus::-webkit-input-placeholder {
  font-size: 0.3rem;
}
.table-grid-header-right.is-esl-refresh-layout
  .tableNum-jump
  .layui-input:focus::-webkit-input-placeholder {
  font-size: 0.3rem;
}
.table-grid-search-submit-icon {
  font-size: 0.5rem;
  margin-left: 0.04rem;
  margin-bottom: 0.02rem;
}

.table-grid-header-icon {
  font-size: 0.55rem !important;
  color: #5593fb;
}

.table-grid-cell {
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.3rem;
  overflow-x: hidden;
  flex: 1;
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
}
.table-card {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.2rem 0.2rem;
  min-height: 2.5rem;
  border-radius: 0.2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-number {
  font-weight: bold;
  font-size: 0.8rem;
}

.table-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  /* width: 100%; */
}

.table-time {
  color: #777;
}

.table-guests {
  color: #777;
}

.open {
  background-color: #3dc13d;
}

/* .occupied {
  background-color: #9ccc65;
} */
/* .occupied {
  background-color: #ffd54f;
} */

.unopened {
  background-color: #3e42ba;
}

.closed {
  background-color: #bdbdbd;
}
/* .closed {
  background-color: #757575;
} */

.open .table-number,
.occupied .table-number,
.unopened .table-number,
.closed .table-number {
  color: #fff;
}

.open .table-info,
.occupied .table-info,
.unopened .table-info,
.closed .table-info {
  color: #fff;
}

@keyframes circle-in-center {
  from {
    clip-path: circle(0%);
  }
  to {
    clip-path: circle(125%);
  }
}

[transition-style="in:circle:center"] {
  animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) circle-in-center both;
}
@keyframes circle-out-hesitate {
  0% {
    clip-path: circle(125%);
  }
  40% {
    clip-path: circle(40%);
  }
  100% {
    clip-path: circle(0%);
  }
}

[transition-style="out:circle:hesitate"] {
  animation: 2.5s cubic-bezier(0.25, 1, 0.3, 1) circle-out-hesitate both;
}

/* ESLRefresh 第二页卡片与确认弹窗 */
.table-grid-cell.esl-refresh-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.34rem;
  align-items: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.table-card.esl-refresh-card {
  align-self: start;
  position: relative;
  min-height: 2.9rem;
  padding: 0.28rem 0.24rem 0.24rem;
  border: 1px solid rgba(27, 50, 84, 0.12);
  border-radius: 0.26rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.96) 100%);
  box-shadow: 0 0.2rem 0.42rem rgba(18, 41, 74, 0.12);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.table-card.esl-refresh-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0.12rem;
  background: linear-gradient(180deg, #7a8ca5 0%, #d1d9e4 100%);
}

.table-card.esl-refresh-card.has-opened::before {
  background: linear-gradient(180deg, #3dc13d 0%, #3dc13d 100%);
}

.table-card.esl-refresh-card.has-opened:not(.all-opened)::before {
  background: linear-gradient(180deg, #3dc13d 0%, #3dc13d 50%, #3e42ba 100%);
}

.table-card.esl-refresh-card.all-pending::before {
  background: linear-gradient(180deg, #3e42ba 0%, #3e42ba 100%);
}

.table-card.esl-refresh-card:active {
  transform: translateY(-0.04rem);
  box-shadow: 0 0.28rem 0.56rem rgba(18, 41, 74, 0.18);
}

.table-card.esl-refresh-card.is-loading {
  pointer-events: none;
  opacity: 0.74;
}

.esl-refresh-card-head {
  display: flex;
  align-items: center;
  margin-bottom: 0.18rem;
}

.esl-refresh-card-key,
.esl-refresh-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.esl-refresh-card-key {
  min-width: 0;
  padding: 0;
  color: #1b3254;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1;
}

.esl-refresh-chip-list {
  margin-top: 0;
}

.esl-refresh-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.12rem;
}

.esl-refresh-chip {
  justify-content: center;
  gap: 0;
  min-width: 0.5rem;
  padding: 0.18rem 0.18rem;
  border-radius: 0.2rem;
  font-size: 0.31rem;
  font-weight: 600;
  line-height: 1.3;
  color: #4a5f7c;
  background: #eef3f9;
  text-align: center;
}

.esl-refresh-chip::before {
  display: none;
}

.esl-refresh-chip-table {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  min-width: 0;
  font-size: 0.3rem;
  font-weight: 700;
}

.esl-refresh-chip.is-open {
  color: #fff;
  background: #3dc13d;
}

.esl-refresh-chip.is-pending {
  color: #fff;
  background: #3e42ba;
}

.table-grid-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.16rem;
  padding: 1rem 0.56rem;
  border: 1px dashed rgba(27, 50, 84, 0.16);
  border-radius: 0.28rem;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(27, 50, 84, 0.72);
  text-align: center;
  font-size: 0.45rem;
  line-height: 1.6;
}

.eslRefreshConfirmLayer,
.eslRefreshResultLayer {
  width: 85% !important;
  max-width: 7rem;
  border: none !important;
  border-radius: 0.26rem !important;
  overflow: hidden;
  box-shadow: 0 0.32rem 0.9rem rgba(12, 25, 48, 0.24) !important;
}

.eslRefreshConfirmLayer .layui-layer-content,
.eslRefreshResultLayer .layui-layer-content {
  padding: 0 !important;
  background: #f4f8fe;
}

.esl-refresh-confirm-dialog,
.esl-refresh-result-dialog {
  padding: 0.68rem 0.54rem 0.42rem;
  text-align: center;
  background: transparent;
}

.esl-refresh-confirm-emoji,
.esl-refresh-result-emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.08rem;
  height: 1.08rem;
  margin: 0 auto 0.28rem;
  border-radius: 0.26rem;
  font-size: 0.56rem;
  border: 1px solid rgba(47, 125, 222, 0.14);
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 48%),
    linear-gradient(180deg, #f4f9ff 0%, #d8eaff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0.18rem 0.4rem rgba(47, 125, 222, 0.16);
}

.esl-refresh-confirm-emoji .layui-icon,
.esl-refresh-result-emoji .layui-icon {
  font-size: 0.54rem;
  color: #2f7dde;
}

.esl-refresh-result-emoji.success,
.esl-refresh-result-emoji.warning,
.esl-refresh-result-emoji.error {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: bold;
  color: #fff;
  border: none;
  background: #28a745;
  box-shadow: none;
}

.esl-refresh-result-emoji.warning {
  background: #ffc107;
  color: #856404;
}

.esl-refresh-confirm-emoji.warning {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  font-size: 0.5rem;
  font-weight: bold;
  color: #856404;
  border: none;
  background: #ffc107;
  box-shadow: none;
}

.esl-refresh-result-emoji.error {
  background: #dc3545;
}

.esl-refresh-confirm-title,
.esl-refresh-result-title {
  color: #1b3254;
  font-size: 0.4rem;
  font-weight: 700;
  line-height: 1.5;
  min-height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eslRefreshConfirmLayer .layui-layer-btn,
.eslRefreshResultLayer .layui-layer-btn {
  display: flex;
  gap: 0.22rem;
  padding: 0 0.5rem 0.5rem;
  border-top: none !important;
  background: #f4f8fe;
}

.eslRefreshConfirmLayer .layui-layer-btn a,
.eslRefreshResultLayer .layui-layer-btn a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0.84rem;
  line-height: 0.84rem;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 999px;
  font-size: 0.3rem;
  font-weight: 700;
  text-align: center;
}

.eslRefreshResultLayer .layui-layer-btn {
  justify-content: center;
}

.eslRefreshResultLayer .layui-layer-btn a {
  flex: 0 0 4.2rem;
}

.eslRefreshConfirmLayer .layui-layer-btn .layui-layer-btn0 {
  color: #5c6f88;
  background: rgba(27, 50, 84, 0.08);
}

.eslRefreshConfirmLayer .layui-layer-btn .layui-layer-btn1,
.eslRefreshResultLayer .layui-layer-btn .layui-layer-btn0 {
  color: #fff;
  background: linear-gradient(90deg, #2f7dde 0%, #4ea3ef 100%);
  box-shadow: 0 0.14rem 0.32rem rgba(47, 125, 222, 0.22);
}

@media screen and (max-width: 768px) {
  .table-grid-cell.esl-refresh-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .esl-refresh-card-key {
    font-size: 0.92rem;
  }

  .eslRefreshConfirmLayer,
  .eslRefreshResultLayer {
    width: 88% !important;
  }
}
