/* Nguồn CSS giao diện mới. KHÔNG sửa static/css/ui.css (file build). Build: scripts/build-css.ps1
   Phong cách: sáng, tối giản, nhỏ gọn, nhấn xanh dương #1677ff (Ant Design 5). Ưu tiên điện thoại (từ 360 px). */

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/* ---------- Khung ---------- */

.page-pad {
  padding-bottom: calc(var(--tab-h) + 20px + var(--safe-b));
}

@media (min-width: 1024px) {
  .page-pad {
    padding-bottom: 32px;
  }
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #1677ff;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  color: #434a54;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: #f2f4f7;
}

.nav-item-on {
  background: #e6f4ff;
  color: #0958d9;
  font-weight: 600;
}

.nav-step {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  border: 1.5px solid currentColor;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  flex: none;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #e6f4ff;
  color: #0958d9;
  font-size: 12px;
  font-weight: 600;
}

.nav-item-on .nav-badge {
  background: #1677ff;
  color: #fff;
}

.nav-badge-red {
  background: #cf1322;
  color: #fff;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  width: 100%;
}

.menu-row:hover {
  background: #f2f4f7;
}

.acct:not([open]) .acct-panel {
  display: none;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: transparent;
  border: 0;
  color: #1f2329;
  flex: none;
}

.icon-btn:hover {
  background: #f2f4f7;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  height: calc(var(--tab-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: #fff;
  border-top: 1px solid #e5e6eb;
}

.tab {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 0;
  background: transparent;
  color: #646a73;
  font-size: 11px;
}

.tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 2px;
}

.tab-on {
  color: #1677ff;
  font-weight: 600;
}

.tab-on::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28%;
  right: 28%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #1677ff;
}

.tab-badge {
  position: absolute;
  top: 5px;
  left: calc(50% + 6px);
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #1677ff;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.sheet {
  margin: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 85vh;
  padding: 0 0 var(--safe-b);
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.sheet::backdrop {
  background: rgba(0,0,0,.45);
}

.sheet-grip {
  width: 40px;
  height: 4px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: #d0d3d9;
}

@media (min-width: 768px) {
  .sheet {
    margin: auto;
    width: 420px;
    border-radius: 12px;
  }

  .sheet-grip {
    display: none;
  }
}

/* ---------- Thông báo / mất mạng / debug ---------- */

.toasts {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h) + 12px + var(--safe-b));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  pointer-events: none;
}

@media (min-width: 1024px) {
  .toasts {
    bottom: 24px;
    left: 232px;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1f2329;
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(31,35,41,.25);
  animation: toast-in .18s ease-out;
}

.toast-ok {
  border-left: 4px solid #52c41a;
}

.toast-error {
  border-left: 4px solid #ff4d4f;
}

.toast-warn {
  border-left: 4px solid #faad14;
}

.toast-info {
  border-left: 4px solid #4096ff;
}

.toast button {
  border: 0;
  background: transparent;
  color: #91caff;
  font-weight: 600;
  padding: 4px;
}

@keyframes toast-in {
  from {
    transform: translateY(8px);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

.offline {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1f2329;
  color: #fff;
  font-size: 13px;
}

.offline[hidden] {
  display: none;
}

.debug-panel {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(var(--tab-h) + 8px + var(--safe-b));
  z-index: 85;
  display: flex;
  flex-direction: column;
  max-height: 55vh;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(31,35,41,.25);
}

.debug-panel[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  .debug-panel {
    left: auto;
    right: 16px;
    bottom: 16px;
    width: 560px;
  }
}

.debug-list {
  overflow: auto;
  padding: 4px 0;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.debug-list li {
  padding: 2px 10px;
  border-bottom: 1px solid #f0f1f3;
  word-break: break-word;
}

.debug-list .lv-error {
  background: #fff1f0;
  color: #a8071a;
}

.debug-list .lv-warn {
  background: #fffbe6;
  color: #876800;
}

.debug-list b {
  color: #0958d9;
  font-weight: 600;
}

/* ---------- Nút, ô nhập, thẻ ---------- */

.u-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  background: #fff;
  color: #1f2329;
  font-weight: 500;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

.u-btn:hover {
  border-color: #4096ff;
  color: #1677ff;
}

.u-btn:active {
  transform: translateY(1px);
}

.u-btn-primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.u-btn-primary:hover {
  background: #4096ff;
  border-color: #4096ff;
  color: #fff;
}

.u-btn-ok {
  background: #f6ffed;
  border-color: #52c41a;
  color: #237804;
  font-weight: 600;
}

.u-btn-no {
  background: #fff7e6;
  border-color: #ffa940;
  color: #ad4e00;
  font-weight: 600;
}

.sticky-act {
  position: sticky;
  bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
  z-index: 20;
}

@media (min-width: 1024px) {
  .sticky-act {
    bottom: 8px;
  }
}

.u-btn-sm {
  min-height: 44px;
  padding: 0 12px;
  font-size: 13px;
}

@media (min-width: 1024px) {
  .u-btn-sm {
    min-height: 32px;
  }
}

.u-btn[disabled], .u-btn.htmx-request {
  opacity: .55;
  pointer-events: none;
}

.u-in {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  background: #fff;
  font-size: 16px;
  color: #1f2329;
}

.u-in:focus {
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22,119,255,.18);
  outline: 0;
}

.u-card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(31,35,41,.04);
}

@media (min-width: 1024px) {
  .u-card {
    padding: 16px;
  }
}

.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-h h2 {
  font-size: 16px;
  font-weight: 600;
}

.u-alert {
  display: block;
  padding: 10px 14px;
  border: 1px solid;
  border-radius: 6px;
  margin-bottom: 12px;
}

.u-alert-ok {
  background: #f6ffed;
  border-color: #b7eb8f;
  color: #237804;
}

.u-alert-warn {
  background: #fffbe6;
  border-color: #ffe58f;
  color: #876800;
}

.u-alert-error {
  background: #fff1f0;
  border-color: #ffa39e;
  color: #a8071a;
}

.u-alert-info {
  background: #e6f4ff;
  border-color: #91caff;
  color: #0958d9;
}

.empty {
  text-align: center;
  padding: 28px 16px;
  color: #646a73;
}

/* ---------- Thẻ số liệu ---------- */

.grid-stat {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
  .grid-stat {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.stat {
  display: block;
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(31,35,41,.04);
  min-width: 0;
}

a.stat:hover {
  border-color: #4096ff;
}

.stat small {
  display: block;
  color: #646a73;
  font-size: 12px;
  line-height: 1.3;
}

.stat b {
  display: block;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat em {
  display: block;
  font-style: normal;
  color: #646a73;
  font-size: 11px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .stat {
    padding: 14px 16px;
  }

  .stat small {
    font-size: 13px;
  }

  .stat b {
    font-size: 20px;
  }

  .stat em {
    font-size: 12px;
  }
}

@media (min-width: 1280px) {
  .stat b {
    font-size: 24px;
  }
}

.stat-primary {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.stat-primary small, .stat-primary em {
  color: #e6f4ff;
}

a.stat-primary:hover {
  background: #4096ff;
  border-color: #4096ff;
}

.stat-red {
  background: #fff1f0;
  border-color: #ffa39e;
}

.stat-red b {
  color: #cf1322;
}

/* ---------- Thẻ tuyến ---------- */

.rgrid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .rgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (min-width: 1280px) {
  .rgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rcard {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 1px 2px rgba(31,35,41,.04);
}

.rcard:hover {
  border-color: #91caff;
}

.rcard-risk {
  border-left: 4px solid #cf1322;
}

.rcard-late {
  border: 1px solid #cf1322;
  border-left: 4px solid #cf1322;
  background: #fff1f0;
}

.prog {
  display: flex;
  gap: 3px;
}

.prog i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e5e6eb;
}

.prog i.f {
  background: #1677ff;
}

.prog i.\!f {
  background: #1677ff !important;
}

/* ---------- Thẻ trạng thái (PRD 6.3: màu + chữ, không chỉ màu) ---------- */

.u-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.u-tag-new, .u-tag-gray {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #595959;
}

.u-tag-picking {
  background: #e6f4ff;
  border-color: #91caff;
  color: #0958d9;
}

.u-tag-picked {
  background: #e6fffb;
  border-color: #87e8de;
  color: #006d75;
}

.u-tag-checked {
  background: #f9f0ff;
  border-color: #d3adf7;
  color: #531dab;
}

.u-tag-delivering {
  background: #fff7e6;
  border-color: #ffd591;
  color: #ad4e00;
}

.u-tag-waiting {
  background: #fffbe6;
  border-color: #ffe58f;
  color: #876800;
}

.u-tag-done {
  background: #f6ffed;
  border-color: #b7eb8f;
  color: #237804;
}

.u-tag-canceled {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #8c8c8c;
  text-decoration: line-through;
}

.u-tag-risk {
  background: #fff1f0;
  border-color: #ffa39e;
  color: #cf1322;
  font-weight: 600;
}

.u-tag-late {
  background: #cf1322;
  border-color: #cf1322;
  color: #fff;
  font-weight: 600;
}

/* ---------- Bộ lọc ---------- */

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.chips::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  .chips {
    margin: 0;
    padding: 2px 0;
    flex-wrap: wrap;
    overflow: visible;
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #d0d3d9;
  border-radius: 18px;
  background: #fff;
  white-space: nowrap;
  font-weight: 500;
  flex: none;
}

.chip:hover {
  border-color: #4096ff;
  color: #1677ff;
}

@media (min-width: 1024px) {
  .chip {
    min-height: 36px;
  }
}

.chip-on {
  background: #1677ff;
  border-color: #1677ff;
  color: #fff;
}

.chip-on:hover {
  color: #fff;
  background: #4096ff;
}

[data-popover]:not([open]) .pop {
  display: none;
}

#dash.is-loading .dash-body {
  opacity: .55;
  transition: opacity .15s;
}

/* ---------- Danh sách, thanh tiến độ, bảng ---------- */

.\!list > li {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid #eef0f3 !important;
}

.list > li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}

.\!list > li:last-child {
  border-bottom: 0 !important;
}

.list > li:last-child {
  border-bottom: 0;
}

.bar-row {
  display: grid;
  grid-template-columns: 104px 1fr 32px;
  gap: 10px;
  align-items: center;
  padding: 4px 0;
  font-size: 14px;
}

.bar-row b {
  text-align: right;
  font-weight: 600;
}

progress.bar {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 4px;
  background: #eef0f3;
  overflow: hidden;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
}

progress.bar::-webkit-progress-bar {
  background: #eef0f3;
  border-radius: 4px;
}

progress.bar::-webkit-progress-value {
  background: #1677ff;
  border-radius: 4px;
}

progress.bar::-moz-progress-bar {
  background: #1677ff;
  border-radius: 4px;
}

.tbl-scroll {
  overflow-x: auto;
}

.u-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.u-table th {
  background: #fafbfc;
  color: #646a73;
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid #e5e6eb;
  white-space: nowrap;
}

.u-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef0f3;
  vertical-align: middle;
}

.u-table .r {
  text-align: right;
}

.u-table .\!r {
  text-align: right !important;
}

.u-table tfoot td {
  background: #fafbfc;
  font-weight: 600;
  border-top: 1px solid #e5e6eb;
  border-bottom: 0;
}

.u-table tbody tr:hover td {
  background: #f7faff;
}

@media (max-width: 767px) {
  .hide-sm {
    display: none;
  }

  .u-table th, .u-table td {
    padding: 8px 10px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.visible {
  visibility: visible;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.inset-y-0 {
  top: 0px;
  bottom: 0px;
}

.bottom-\[68px\] {
  bottom: 68px;
}

.left-0 {
  left: 0px;
}

.left-3 {
  left: 0.75rem;
}

.right-0 {
  right: 0px;
}

.right-3 {
  right: 0.75rem;
}

.top-0 {
  top: 0px;
}

.top-11 {
  top: 2.75rem;
}

.top-12 {
  top: 3rem;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.col-span-2 {
  grid-column: span 2 / span 2;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.\!mb-0 {
  margin-bottom: 0px !important;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-5 {
  margin-bottom: 1.25rem;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mt-0\.5 {
  margin-top: 0.125rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-1\.5 {
  margin-top: 0.375rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-2\.5 {
  margin-top: 0.625rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-5 {
  margin-top: 1.25rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.hidden {
  display: none;
}

.h-11 {
  height: 2.75rem;
}

.h-12 {
  height: 3rem;
}

.h-14 {
  height: 3.5rem;
}

.h-4 {
  height: 1rem;
}

.h-6 {
  height: 1.5rem;
}

.h-7 {
  height: 1.75rem;
}

.min-h-11 {
  min-height: 2.75rem;
}

.min-h-screen {
  min-height: 100vh;
}

.w-11 {
  width: 2.75rem;
}

.w-56 {
  width: 14rem;
}

.w-6 {
  width: 1.5rem;
}

.w-7 {
  width: 1.75rem;
}

.w-\[232px\] {
  width: 232px;
}

.w-full {
  width: 100%;
}

.min-w-0 {
  min-width: 0px;
}

.max-w-\[1200px\] {
  max-width: 1200px;
}

.flex-1 {
  flex: 1 1 0%;
}

.shrink-0 {
  flex-shrink: 0;
}

.cursor-pointer {
  cursor: pointer;
}

.list-none {
  list-style-type: none;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.place-items-center {
  place-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-1\.5 {
  gap: 0.375rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-2\.5 {
  gap: 0.625rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}

.gap-y-0\.5 {
  row-gap: 0.125rem;
}

.gap-y-2 {
  row-gap: 0.5rem;
}

.overflow-y-auto {
  overflow-y: auto;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rounded-full {
  border-radius: 9999px;
}

.rounded-lg {
  border-radius: 8px;
}

.rounded-md {
  border-radius: 6px;
}

.border {
  border-width: 1px;
}

.border-b {
  border-bottom-width: 1px;
}

.border-r {
  border-right-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.\!border-late-line {
  --tw-border-opacity: 1 !important;
  border-color: rgb(255 163 158 / var(--tw-border-opacity, 1)) !important;
}

.border-line {
  --tw-border-opacity: 1;
  border-color: rgb(229 230 235 / var(--tw-border-opacity, 1));
}

.border-ok-line {
  --tw-border-opacity: 1;
  border-color: rgb(183 235 143 / var(--tw-border-opacity, 1));
}

.border-primary {
  --tw-border-opacity: 1;
  border-color: rgb(22 119 255 / var(--tw-border-opacity, 1));
}

.bg-ok-bg {
  --tw-bg-opacity: 1;
  background-color: rgb(246 255 237 / var(--tw-bg-opacity, 1));
}

.bg-page {
  --tw-bg-opacity: 1;
  background-color: rgb(245 246 248 / var(--tw-bg-opacity, 1));
}

.bg-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(22 119 255 / var(--tw-bg-opacity, 1));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.\!p-0 {
  padding: 0px !important;
}

.p-1\.5 {
  padding: 0.375rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-5 {
  padding-bottom: 1.25rem;
}

.pt-4 {
  padding-top: 1rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-\[12px\] {
  font-size: 12px;
}

.text-\[13px\] {
  font-size: 13px;
}

.text-\[17px\] {
  font-size: 17px;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-medium {
  font-weight: 500;
}

.font-normal {
  font-weight: 400;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.leading-tight {
  line-height: 1.25;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.text-ink {
  --tw-text-opacity: 1;
  color: rgb(31 35 41 / var(--tw-text-opacity, 1));
}

.text-late {
  --tw-text-opacity: 1;
  color: rgb(207 19 34 / var(--tw-text-opacity, 1));
}

.text-mute {
  --tw-text-opacity: 1;
  color: rgb(138 144 153 / var(--tw-text-opacity, 1));
}

.text-ok-text {
  --tw-text-opacity: 1;
  color: rgb(35 120 4 / var(--tw-text-opacity, 1));
}

.text-primary {
  --tw-text-opacity: 1;
  color: rgb(22 119 255 / var(--tw-text-opacity, 1));
}

.text-sub {
  --tw-text-opacity: 1;
  color: rgb(100 106 115 / var(--tw-text-opacity, 1));
}

.text-warn-text {
  --tw-text-opacity: 1;
  color: rgb(135 104 0 / var(--tw-text-opacity, 1));
}

.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shadow-pop {
  --tw-shadow: 0 6px 24px rgba(31,35,41,.14);
  --tw-shadow-colored: 0 6px 24px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

:root {
  --tab-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 64px;
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

@media (min-width: 1024px) {
  body {
    font-size: 14px;
  }
}

h1, h2, h3, p, ul, ol, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #1677ff;
  outline-offset: 2px;
}

.ic {
  flex: none;
  vertical-align: middle;
}

.num {
  font-variant-numeric: tabular-nums;
}

.nowrap {
  white-space: nowrap;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

.hover\:border-primary:hover {
  --tw-border-opacity: 1;
  border-color: rgb(22 119 255 / var(--tw-border-opacity, 1));
}

.hover\:bg-page:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(245 246 248 / var(--tw-bg-opacity, 1));
}

.focus\:not-sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.focus\:fixed:focus {
  position: fixed;
}

.focus\:left-2:focus {
  left: 0.5rem;
}

.focus\:top-2:focus {
  top: 0.5rem;
}

.focus\:z-50:focus {
  z-index: 50;
}

.focus\:rounded:focus {
  border-radius: 0.25rem;
}

.focus\:bg-white:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.focus\:px-3:focus {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.focus\:py-2:focus {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .md\:right-auto {
    right: auto;
  }

  .md\:w-\[320px\] {
    width: 320px;
  }

  .md\:w-\[420px\] {
    width: 420px;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:block {
    display: block;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .lg\:pl-\[232px\] {
    padding-left: 232px;
  }

  .lg\:pt-6 {
    padding-top: 1.5rem;
  }
}
