/* 优链通 · Tabulator 主题（贴近 .hyt-table） */
.hyt-tabulator-wrap {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card);
  overflow: hidden;
}
.hyt-tabulator-wrap .tabulator {
  font-size: 13px;
  border: none;
  background: var(--card);
}
.hyt-tabulator-wrap .tabulator-header {
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.hyt-tabulator-wrap .tabulator-col {
  border-right: 1px solid var(--border);
}
.hyt-tabulator-wrap .tabulator-row {
  border-bottom: 1px solid var(--border);
}
.hyt-tabulator-wrap .tabulator-row.tabulator-row-even {
  background: #fff;
}
.hyt-tabulator-wrap .tabulator-row.tabulator-selected {
  background: #e6f7ff;
}
.hyt-tabulator-wrap .tabulator-cell {
  border-right: 1px solid var(--border);
  padding: 6px 8px;
}
.hyt-tabulator-wrap .tabulator-footer {
  border-top: 1px solid var(--border);
  background: #fafafa;
}
.hyt-tabulator-wrap .tabulator-page {
  margin: 4px 2px;
}
.hyt-tabulator-wrap .tabulator-alert {
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
}
.hyt-tabulator-wrap .tabulator-col-resize-handle {
  width: 6px;
}

.hyt-ofn-waybill-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 100%;
}
.hyt-ofn-waybill-cell .hyt-status-pill {
  flex-shrink: 0;
  font-size: 11px;
  padding: 1px 6px;
  line-height: 1.35;
}
  border: none;
  background: none;
  padding: 0 4px;
  cursor: pointer;
  color: #fa8c16;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.hyt-ofn-edit-link:hover {
  text-decoration: underline;
}
.hyt-ofn-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  padding: 2px;
  margin: 0 2px;
  cursor: pointer;
  line-height: 0;
  vertical-align: middle;
}
.hyt-ofn-icon-btn:hover .hyt-ofn-icon-svg rect:first-child,
.hyt-ofn-icon-btn:hover .hyt-ofn-icon-svg circle {
  fill: #ffe7ba;
}
.hyt-ofn-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.hyt-tabulator-wrap .tabulator-cell.hyt-ofn-op-cell {
  text-align: center;
  padding: 4px 2px;
}

.hyt-modal-ofn-audit-edit {
  max-width: 760px;
  width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.hyt-ofn-edit-form {
  margin-top: 8px;
}
.hyt-ofn-edit-section + .hyt-ofn-edit-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.hyt-ofn-edit-section-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.hyt-ofn-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}
.hyt-ofn-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.hyt-ofn-edit-label {
  font-size: 12px;
  color: var(--muted);
}
.hyt-ofn-edit-readonly {
  min-height: 32px;
  display: flex;
  align-items: center;
  font-size: 13px;
  word-break: break-all;
}
@media (max-width: 640px) {
  .hyt-ofn-edit-grid {
    grid-template-columns: 1fr;
  }
}
#page-outlet-finance .hyt-ofn-table-layout-bar {
  margin-top: 10px;
}
.hyt-ofn-grid-meta {
  margin-top: 8px;
}
.hyt-tab-export-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 6px 10px;
  max-height: min(50vh, 360px);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--hyt-border, #e8e8e8);
  border-radius: 8px;
  background: #fafafa;
}
.hyt-tab-export-col-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.hyt-tab-export-modal {
  max-width: 720px;
  width: min(96vw, 720px);
}
.hyt-tab-export-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 10px;
}
.hyt-tab-export-tpl-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.hyt-tab-export-tpl-label select {
  min-width: 160px;
}
#hyt-tab-export-tpl-name {
  width: 120px;
}
.hyt-tab-export-format-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
  font-size: 13px;
}
.hyt-tab-export-format-row label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.hyt-tab-export-dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.hyt-tab-export-pane-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}
.hyt-tab-export-list {
  width: 100%;
  min-height: 220px;
  font-size: 13px;
  border: 1px solid var(--hyt-border, #e8e8e8);
  border-radius: 8px;
  padding: 4px;
  background: #fff;
}
.hyt-tab-export-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding-top: 28px;
}
.hyt-tab-export-mid .hyt-btn {
  min-width: 36px;
  padding: 4px 8px;
}
.hyt-tab-export-hint {
  margin: 10px 0 0;
}
.hyt-tab-export-actions {
  margin-top: 12px;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .hyt-tab-export-dual {
    grid-template-columns: 1fr;
  }
  .hyt-tab-export-mid {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
    justify-content: center;
  }
}
