/* ========================================
   开标大厅样式 - 公共资源交易平台风格
   ======================================== */

:root {
  --oh-primary: #0b68da;
  --oh-primary-dark: #0954b0;
  --oh-primary-light: #e8f4ff;
  --oh-success: #28a745;
  --oh-warning: #ffc107;
  --oh-danger: #dc3545;
  --oh-info: #17a2b8;
  --oh-text: #333;
  --oh-text-light: #666;
  --oh-text-muted: #999;
  --oh-border: #e0e0e0;
  --oh-bg: #f5f7fa;
  --oh-white: #fff;
}

.oh-body {
  background: var(--oh-bg);
  color: var(--oh-text);
  font-family: var(--dloa-font-sans);
  line-height: 1.6;
  min-height: 100vh;
}
.oh-body.hidden {
  display: none;
}
.oh-topbar {
  background: var(--oh-primary);
  color: var(--oh-white);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.oh-topbar-left,
.oh-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.oh-logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}
.oh-divider {
  opacity: 0.5;
  font-size: 20px;
}
.oh-page-title {
  font-size: 18px;
  font-weight: 500;
}
.oh-user-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}
.oh-back-btn {
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
}
.oh-project-banner {
  background: #fff;
  padding: 24px;
  margin: 20px 24px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.oh-project-info {
  flex: 1;
}
.oh-project-info h1 {
  font-size: 24px;
  font-weight: 600;
  color: var(--oh-primary);
  margin: 0 0 12px;
}
.oh-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 8px;
}
.oh-project-meta span {
  font-size: 14px;
  color: var(--oh-text-light);
}
.oh-project-meta b,
.oh-project-owner b {
  color: var(--oh-text);
}
.oh-project-meta em {
  color: var(--oh-primary);
  font-style: normal;
  font-weight: 500;
}
.oh-project-owner {
  font-size: 14px;
  color: var(--oh-text-light);
}
.oh-project-owner em {
  color: var(--oh-text);
  font-style: normal;
}
.oh-project-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.oh-decrypt-window {
  background: var(--oh-primary-light);
  padding: 12px 20px;
  border-radius: 6px;
  border-left: 4px solid var(--oh-primary);
}
.oh-decrypt-window .oh-label {
  display: block;
  font-size: 12px;
  color: var(--oh-text-light);
  margin-bottom: 4px;
}
.oh-decrypt-window .oh-value {
  display: block;
  font-size: 14px;
  color: var(--oh-primary);
  font-weight: 500;
}
.oh-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.oh-btn-primary {
  background: var(--oh-primary);
  color: #fff;
}
.oh-btn-primary:hover {
  background: var(--oh-primary-dark);
}
.oh-btn-outline {
  background: #fff;
  color: var(--oh-primary);
  border: 1px solid var(--oh-primary);
}
.oh-btn-sm {
  padding: 6px 16px;
  font-size: 13px;
}
.oh-btn-block {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
}
.oh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.oh-btn-success {
  background: var(--oh-success);
  color: #fff;
}
.oh-btn-success:hover {
  filter: brightness(0.94);
}
.oh-btn-danger {
  background: var(--oh-danger);
  color: #fff;
}
.oh-btn-danger:hover {
  filter: brightness(0.94);
}

/* 结构化弹窗（替代原生 prompt/confirm） */
.oh-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 48, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100000 !important;
}
.oh-modal {
  background: #fff;
  border-radius: 8px;
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}
.oh-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--oh-border);
}
.oh-modal-header h3 {
  margin: 0;
  font-size: 17px;
  color: var(--oh-primary);
}
.oh-modal-body {
  padding: 18px 20px;
}
.oh-modal-desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--oh-text-light);
  line-height: 1.6;
}
.oh-modal-field {
  margin-bottom: 14px;
}
.oh-modal-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--oh-text);
}
.oh-modal-req {
  color: var(--oh-danger);
}
.oh-modal-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--oh-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.oh-modal-input:focus-visible {
  outline: 2px solid rgba(11, 104, 218, 0.3);
  outline-offset: 1px;
  border-color: var(--oh-primary);
}
.oh-modal-invalid {
  border-color: var(--oh-danger) !important;
}
.oh-modal-hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--oh-text-muted);
}
.oh-modal-error {
  margin-top: 4px;
  font-size: 13px;
  color: var(--oh-danger);
}

/* 本地 CA 环境检测面板 */
.oh-detect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
@media (max-width: 640px) {
  .oh-detect-grid {
    grid-template-columns: 1fr;
  }
}
.oh-detect-group {
  border: 1px solid var(--oh-border);
  border-radius: 6px;
  padding: 12px;
  background: #fafcff;
}
.oh-detect-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--oh-primary);
  margin-bottom: 8px;
}
.oh-detect-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed #eef2f7;
  font-size: 12.5px;
}
.oh-detect-row:last-child {
  border-bottom: none;
}
.oh-detect-label {
  color: var(--oh-text-light);
  flex-shrink: 0;
}
.oh-detect-value {
  color: var(--oh-text);
  word-break: break-all;
  text-align: right;
}
.oh-detect-ok {
  color: #18a05a;
  font-weight: 600;
}
.oh-detect-fail {
  color: var(--oh-danger);
  font-weight: 600;
}
.oh-modal-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--oh-border);
  background: var(--oh-bg);
}
.oh-modal-footer .oh-btn {
  min-width: 88px;
}
@media (max-width: 420px) {
  .oh-modal-footer {
    flex-direction: column-reverse;
  }
  .oh-modal-footer .oh-btn {
    width: 100%;
  }
}
.oh-alert {
  padding: 12px 24px;
  margin: 0 24px 20px;
  border-radius: 4px;
  text-align: center;
}
.oh-alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
.oh-alert.hidden {
  display: none;
}
.oh-main {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 20px;
  padding: 0 24px 24px;
  min-height: calc(100vh - 300px);
}
.oh-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.oh-sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--oh-primary);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--oh-primary);
  margin-bottom: 12px;
}
.oh-sidebar-section {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
}
.oh-sidebar-supplier {
  position: sticky;
  top: 20px;
  align-self: start;
}
.oh-my-bid-card {
  background: var(--oh-primary-light);
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid var(--oh-primary);
}
.oh-empty-text {
  color: var(--oh-text-muted);
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}
.oh-checkin-done {
  background: rgba(82, 255, 196, 0.14);
  color: var(--oh3d-green, #52ffc4);
  border-left: 4px solid var(--oh3d-green, #52ffc4);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}
.oh-checkin-list {
  font-size: 14px;
}
.oh-checkin-roster {
  list-style: none;
  margin: 0;
  padding: 0;
}
.oh-checkin-roster li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(93, 190, 255, 0.2);
}
.oh-checkin-roster li:last-child {
  border-bottom: none;
}
.oh-checkin-name {
  color: var(--oh3d-text, #eef8ff);
  font-weight: 500;
  word-break: break-all;
}
.oh-checkin-time {
  color: var(--oh3d-text-muted, #b6d3ee);
  font-size: 12px;
  white-space: nowrap;
}
.oh-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.oh-progress-bar {
  background: #fff;
  padding: 18px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
}
.oh-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 0 0 58px;
  min-width: 0;
}
.oh-progress-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--oh-border);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--oh-border);
}
.oh-progress-done .oh-progress-dot {
  background: var(--oh-success);
  box-shadow: 0 0 0 2px var(--oh-success);
}
.oh-progress-active .oh-progress-dot {
  background: var(--oh-primary);
  box-shadow: 0 0 0 2px var(--oh-primary);
  animation: oh-pulse 2s infinite;
}
.oh-progress-label {
  font-size: 12px;
  color: var(--oh-text-light);
  text-align: center;
  white-space: nowrap;
}
.oh-progress-done .oh-progress-label {
  color: var(--oh-success);
  font-weight: 500;
}
.oh-progress-active .oh-progress-label {
  color: var(--oh-primary);
  font-weight: 600;
}
.oh-progress-line {
  min-width: 12px;
  flex: 1;
  height: 2px;
  background: var(--oh-border);
  margin-top: -19px;
}
@keyframes oh-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}
.oh-panel {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.oh-panel-header {
  background: var(--oh-primary-light);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--oh-primary);
}
.oh-panel-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--oh-primary);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.oh-panel-icon {
  font-size: 20px;
}
.oh-panel-badge {
  background: var(--oh-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
}
.oh-panel-badge em {
  font-style: normal;
  font-weight: 600;
}
.oh-panel-body {
  padding: 20px;
}
.oh-table {
  width: 100%;
  border-collapse: collapse;
}
.oh-table thead {
  background: var(--oh-bg);
}
.oh-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--oh-text);
  font-size: 14px;
  border-bottom: 2px solid var(--oh-border);
}
.oh-table td {
  padding: 12px;
  border-bottom: 1px solid var(--oh-border);
  font-size: 14px;
}
.oh-table tbody tr:hover {
  background: var(--oh-primary-light);
}
.oh-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}
.oh-reveal-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: rgba(53, 224, 255, 0.08);
  border-left: 3px solid var(--oh3d-cyan, #53eaff);
  border-radius: 4px;
  color: var(--oh3d-text-muted, #b6d3ee);
  font-size: 13px;
}
.oh-price-masked {
  color: var(--oh3d-text-muted, #b6d3ee);
  font-weight: 400;
  letter-spacing: 1px;
}
.oh-my-bid-label {
  font-size: 12px;
  color: var(--oh3d-text-muted, #b6d3ee);
  margin-bottom: 4px;
}
.oh-my-bid-price {
  font-size: 14px;
  font-weight: 600;
  color: #7fe3ff;
}
.oh-confirmed {
  text-align: center;
  color: var(--oh3d-green, #52ffc4);
  font-size: 12px;
  margin-top: 8px;
}
.oh-cell-muted {
  font-size: 12px;
  color: var(--oh3d-text-muted, #b6d3ee);
}
.oh-price {
  color: #7fe3ff;
  font-weight: 600;
}
.oh-download-meta {
  font-size: 11px;
  color: var(--oh3d-text-muted, #b6d3ee);
  margin-top: 4px;
}
.oh-view-only {
  color: var(--oh3d-text-muted, #b6d3ee);
  font-size: 13px;
}
.oh-archive-sub {
  font-size: 12px;
  color: var(--oh3d-text-muted, #b6d3ee);
  margin-left: 16px;
}
.oh-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.oh-session-cell {
  background: rgba(12, 50, 96, 0.55);
  border: 1px solid rgba(93, 190, 255, 0.2);
  border-radius: 6px;
  padding: 10px 12px;
}
.oh-stat-label {
  display: block;
  font-size: 12px;
  color: var(--oh3d-text-muted, #b6d3ee);
  margin-bottom: 4px;
}
.oh-session-cell strong {
  font-size: 15px;
  color: var(--oh3d-text, #eef8ff);
}
.oh-stat-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.oh-objection-done {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 113, 140, 0.14);
  border-left: 4px solid var(--oh3d-red, #ff718c);
  border-radius: 6px;
  color: var(--oh3d-text, #eef8ff);
  font-size: 13px;
}
.oh-body.oh-engine-statutory .oh-main {
  grid-template-columns: minmax(0, 1fr);
}
.oh-timeline {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-left: 2px solid rgba(93, 190, 255, 0.28);
}
.oh-timeline-item {
  position: relative;
  padding: 6px 0 6px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.oh-timeline-dot {
  position: absolute;
  left: -7px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(120, 170, 220, 0.4);
  box-shadow: 0 0 0 2px rgba(6, 18, 42, 0.9);
}
.oh-timeline-item.is-done .oh-timeline-dot {
  background: var(--oh3d-green, #52ffc4);
}
.oh-timeline-item.is-active .oh-timeline-dot {
  background: var(--oh3d-cyan, #53eaff);
}
.oh-timeline-step {
  font-weight: 600;
  color: var(--oh3d-text, #eef8ff);
}
.oh-timeline-item.is-done .oh-timeline-step {
  color: var(--oh3d-green, #52ffc4);
}
.oh-timeline-meta {
  font-size: 12px;
  color: var(--oh3d-text-muted, #b6d3ee);
}
.oh-boq-bidder {
  border: 1px solid rgba(93, 190, 255, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: rgba(7, 27, 58, 0.5);
}
.oh-boq-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
.oh-boq-head strong {
  color: var(--oh3d-text, #fff);
  font-size: 15px;
}
.oh-boq-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--oh3d-text-muted, #b6d3ee);
}
.oh-boq-metrics b {
  color: #7fe3ff;
  font-variant-numeric: tabular-nums;
}
.oh-boq-table-wrap {
  overflow-x: auto;
}
.oh-boq-table {
  min-width: 720px;
}
.oh-boq-table .oh-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.oh-declared-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 8px 0 10px;
  margin-bottom: 8px;
  border-bottom: 1px dashed rgba(93, 190, 255, 0.2);
}
.oh-declared-item {
  font-size: 13px;
  color: var(--oh3d-text, #dcefff);
}
.oh-declared-item b {
  color: var(--oh3d-text-muted, #b6d3ee);
  font-weight: 500;
  margin-right: 6px;
}
.oh-declared-verify {
  font-size: 12px;
  color: var(--oh3d-green, #52ffc4);
}
.oh-quote-countdown {
  color: var(--oh3d-cyan, #53eaff);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.oh-quote-countdown.is-expired {
  color: var(--oh3d-red, #ff718c);
}
.oh-quote-ranking {
  margin-top: 10px;
  border-top: 1px solid rgba(93, 190, 255, 0.2);
  padding-top: 10px;
}
.oh-ranking-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--oh3d-text, #eef8ff);
  margin-bottom: 8px;
}
.oh-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.oh-ranking-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 13px;
}
.oh-ranking-list li.is-me {
  background: rgba(83, 234, 255, 0.12);
  border-left: 3px solid var(--oh3d-cyan, #53eaff);
}
.oh-ranking-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(120, 170, 220, 0.25);
  color: var(--oh3d-text, #eef8ff);
  font-weight: 600;
  font-size: 12px;
}
.oh-ranking-list li:first-child .oh-ranking-no {
  background: var(--oh3d-green, #52ffc4);
  color: #06263a;
}
.oh-ranking-name {
  flex: 1;
  color: var(--oh3d-text, #dcefff);
}
.oh-ranking-amount {
  color: #7fe3ff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.oh-status-success {
  background: #d4edda;
  color: #155724;
}
.oh-status-warning {
  background: #fff3cd;
  color: #856404;
}
.oh-status-danger {
  background: #f8d7da;
  color: #721c24;
}
.oh-status-info {
  background: #d1ecf1;
  color: #0c5460;
}
.oh-announcement-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.oh-announcement-item {
  background: var(--oh-bg);
  padding: 16px;
  border-radius: 6px;
  border-left: 4px solid var(--oh-success);
}
.oh-announcement-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--oh-primary);
}
.oh-announcement-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--oh-text-light);
}
.oh-announcement-meta b {
  color: var(--oh-text);
  margin-right: 4px;
}
.oh-archive-info {
  font-size: 14px;
  color: var(--oh-text-light);
}
.oh-archive-info p {
  margin: 8px 0;
}
.oh-archive-info b {
  color: var(--oh-text);
  margin-right: 4px;
}
.oh-chat-note {
  font-size: 13px;
  color: var(--oh-text-muted);
  margin-bottom: 12px;
  padding: 8px;
  background: var(--oh-bg);
  border-radius: 4px;
}
.oh-chat-list {
  flex: 1;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
  padding: 8px;
  background: var(--oh-bg);
  border-radius: 4px;
}
.oh-chat-item {
  background: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 8px;
}
.oh-chat-item.is-self {
  background: var(--oh-primary-light);
  border-left: 3px solid var(--oh-primary);
}
.oh-chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
}
.oh-chat-meta strong {
  color: var(--oh-primary);
  font-weight: 600;
}
.oh-chat-meta span,
.oh-chat-meta em {
  color: var(--oh-text-muted);
  font-style: normal;
}
.oh-chat-text {
  font-size: 14px;
  color: var(--oh-text);
  line-height: 1.5;
  word-break: break-word;
}
.oh-chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.oh-chat-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--oh-border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  min-height: 60px;
}
.oh-chat-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.oh-chat-status {
  flex: 1;
  font-size: 12px;
  color: var(--oh-text-muted);
}
.oh-footer {
  background: #fff;
  padding: 16px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--oh-text-muted);
  border-top: 1px solid var(--oh-border);
  display: flex;
  justify-content: space-between;
}
/* 响应式与可访问性增强 */
.oh-panel-body,
.oh-progress-bar {
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 #eef2f7;
}

.oh-btn,
.oh-back-btn,
.oh-chat-form textarea {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.oh-btn,
.oh-back-btn {
  min-height: 44px;
  box-sizing: border-box;
}

.oh-btn-sm {
  min-height: 44px;
}

.oh-back-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.oh-btn:focus-visible,
.oh-back-btn:focus-visible,
.oh-chat-form textarea:focus-visible,
.oh-quote-agent-form
  input:focus-visible:not(.filter-input):not(:disabled):not([type='checkbox']):not([type='radio']),
.oh-quote-agent-form textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32) !important;
  outline-offset: 2px;
}

.oh-topbar .oh-back-btn:focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

.oh-empty-text,
.oh-chat-note,
.oh-chat-status,
.oh-chat-meta span,
.oh-chat-meta em,
.oh-footer {
  color: #667085;
}

.oh-panel-body,
.oh-table,
.oh-table td,
.oh-table th {
  min-width: 0;
}

.oh-panel-body {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.oh-table {
  min-width: 640px;
}

.oh-quote-agent-form input,
.oh-quote-agent-form textarea {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 1180px) {
  .oh-project-banner {
    margin: 16px 20px;
    padding: 20px;
  }

  .oh-alert {
    margin-right: 20px;
    margin-left: 20px;
  }

  .oh-main {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 18px;
    padding: 0 20px 20px;
  }

  .oh-center {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .oh-sidebar-supplier,
  .oh-sidebar-right {
    grid-column: 2;
  }

  .oh-sidebar-supplier {
    position: static;
    grid-row: 1;
  }

  .oh-sidebar-right {
    grid-row: 2;
  }

  .oh-progress-bar {
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .oh-progress-item {
    flex: 0 0 68px;
  }

  .oh-progress-line {
    flex: 0 0 24px;
    min-width: 24px;
  }
}

@media (max-width: 700px) {
  .oh-topbar {
    height: auto;
    min-height: 60px;
    padding: 12px 16px;
    align-items: flex-start;
    gap: 12px;
  }

  .oh-topbar-left,
  .oh-topbar-right {
    gap: 8px;
    flex-wrap: wrap;
  }

  .oh-topbar-right {
    justify-content: flex-end;
  }

  .oh-logo {
    width: 100%;
    font-size: var(--dloa-font-size-md);
  }

  .oh-divider {
    display: none;
  }

  .oh-page-title {
    font-size: var(--dloa-font-size-md);
  }

  .oh-user-tag {
    padding: 6px 10px;
  }

  .oh-back-btn {
    padding: 8px 12px;
  }

  .oh-project-banner {
    margin: 12px;
    padding: 16px;
    flex-direction: column;
    gap: 16px;
  }

  .oh-project-info h1 {
    font-size: 20px;
    line-height: 1.45;
  }

  .oh-project-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .oh-project-actions {
    width: 100%;
    align-items: stretch;
  }

  .oh-decrypt-window {
    padding: 10px 14px;
  }

  .oh-project-actions .oh-btn {
    width: 100%;
    text-align: center;
  }

  .oh-alert {
    margin: 0 12px 12px;
    padding: 12px 16px;
  }

  .oh-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 0 12px 16px;
  }

  .oh-sidebar-supplier,
  .oh-center,
  .oh-sidebar-right {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
  }

  .oh-sidebar-supplier {
    order: 1;
  }

  .oh-center {
    order: 2;
    gap: 14px;
  }

  .oh-sidebar-right {
    order: 3;
  }

  .oh-sidebar-section,
  .oh-panel-body {
    padding: 16px;
  }

  .oh-progress-bar {
    margin-inline: 0;
    padding: 16px 14px;
  }

  .oh-panel-header {
    padding: 14px 16px;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .oh-panel-title {
    font-size: 16px;
  }

  .oh-announcement-meta,
  .oh-footer {
    flex-direction: column;
    gap: 6px;
  }

  .oh-chat-actions {
    align-items: flex-end;
  }

  .oh-footer {
    padding: 14px 16px;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .oh-topbar {
    flex-direction: column;
  }

  .oh-topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .oh-panel-badge {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oh-body *,
  .oh-body *::before,
  .oh-body *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .oh-progress-active .oh-progress-dot {
    animation: none;
  }

  .oh-btn,
  .oh-back-btn,
  .oh-chat-form textarea {
    transition: none;
  }
}
