@font-face { font-family: iconfont; src: url("/static/fonts/iconfont.46bbeda.woff2") format("woff2"); font-display: block; }
.opposite-shell .iconfont { font-family: iconfont !important; font-style: normal; font-weight: 400; line-height: 1; -webkit-font-smoothing: antialiased; }
.opposite-shell .icon-list::before { content: "\E629"; }
.opposite-shell .icon-sync::before { content: "\E647"; }
.opposite-shell .icon-import::before { content: "\E635"; }
.opposite-shell .icon-add::before { content: "\E637"; }
.opposite-shell .icon-cloud-download::before { content: "\E654"; }
.opposite-shell .icon-select-all::before { content: "\E653"; }
.opposite-shell .icon-operation::before { content: "\E669"; }

.app-shell.opposite-shell { position: relative; height: calc(100vh - 3px); grid-template-rows: 68px 0 minmax(0, 1fr); background: var(--ui-primary-pale, #fff7f8); }
.app-shell.opposite-shell .topbar { height: 60px; align-self: start; }
.app-shell.opposite-shell .brand img { width: 148px; }
.app-shell.opposite-shell .primary-nav button { min-width: 68px; padding: 0 14px; font-size: 15px; }
.app-shell.opposite-shell .nav-home { min-width: 60px !important; font-size: 21px !important; }
.app-shell.opposite-shell .top-actions { gap: 10px; padding: 0 16px; }
.app-shell.opposite-shell .top-action { width: 32px; height: 32px; padding: 0; font-size: 17px; }
.app-shell.opposite-shell .avatar { width: 40px; height: 40px; font-size: 18px; }
.app-shell.opposite-shell .tab-strip { position: absolute; z-index: 50; top: 68px; right: 25px; left: 25px; width: auto; height: 44px; margin: 0; padding: 2px; border: 0; border-radius: 3px 3px 0 0; background: #fff; box-shadow: none; overflow: visible; }
.app-shell.opposite-shell .tab-scroll { height: 40px; background: #e5e5e5; }
.app-shell.opposite-shell .route-tab { width: 120px; min-width: 120px; max-width: 120px; height: 40px; padding: 0 8px; gap: 6px; border: 0; border-radius: 0; background: transparent; color: #555; font-size: 12px; font-weight: 400; }
.app-shell.opposite-shell .route-tab:hover { color: #555; background: #f7f7f7; }
.app-shell.opposite-shell .route-tab.active { border: 0; border-radius: 0; background: #fff; color: #555; font-weight: 400; }
.app-shell.opposite-shell .tab-grid,
.app-shell.opposite-shell .tab-menu-wrap { width: 40px; height: 40px; flex: 0 0 40px; }
.app-shell.opposite-shell .tab-grid { border: 0; background: #e5e5e5; color: var(--ui-ink, #343034); font-size: 16px; }
.app-shell.opposite-shell .workspace-wrap { grid-row: 3; min-height: 0; padding: 0 25px 16px; }
.app-shell.opposite-shell .workspace { height: 100%; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

.opposite-page,
.opposite-main { position: relative; height: 100%; min-height: 0; }
.opposite-main { min-width: 0; overflow: hidden; border-radius: 8px; background: #fff; }
.opposite-inner { position: relative; height: 100%; min-height: 0; padding-top: 44px; display: flex; flex-direction: column; }
.opposite-toolbar { position: relative; z-index: 40; height: 43px; min-height: 43px; padding: 0 20px .5px; display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; background: #fff; }
.opposite-toolbar-left,
.opposite-toolbar-right { display: flex; align-items: center; min-width: 0; }
.opposite-toolbar-left { gap: 10px; }
.opposite-toolbar-right { position: relative; gap: 8px; margin-left: auto; }
.opposite-search { width: 208px; height: 26px; display: flex; align-items: center; }
.opposite-search input { width: 185px; min-width: 0; height: 26px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px 0 0 3px; outline: 0; color: #606266; font-size: 12px; }
.opposite-search button { width: 38px; height: 26px; margin-left: -15px; border: 0; border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; }
.opposite-icon-button { width: 38px; height: 26px; padding: 0; border: 0; background: #fff; color: #606266; }
.opposite-icon-button:hover { color: var(--ui-accent-ink, #a21c27); }
.opposite-reset-button { width: 16px; }
.opposite-action-button { width: 90px; height: 26px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }
.opposite-action-button i { font-size: 14px; }
.opposite-tool-wrap { position: relative; display: inline-flex; }
.opposite-export-button,
.opposite-columns-button { width: 26px; }
.opposite-export-button i,
.opposite-columns-button i { font-size: 26px; }
.opposite-export-menu,
.opposite-columns-popover { position: absolute; z-index: 130; top: 31px; right: 0; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.opposite-export-menu { width: 126px; padding: 5px 0; }
.opposite-export-menu button { width: 100%; height: 30px; padding: 0 14px; border: 0; background: #fff; color: #606266; text-align: left; font-size: 12px; }
.opposite-export-menu button:hover { background: #f5f7fa; color: var(--ui-accent-ink, #a21c27); }
.opposite-columns-popover { width: 196px; padding-top: 8px; }
.opposite-columns-options { max-height: 430px; overflow: auto; }
.opposite-columns-options label { min-height: 30px; padding: 0 14px; display: flex; align-items: center; gap: 8px; color: #606266; font-size: 12px; }
.opposite-columns-options label.fixed { color: #909399; }
.opposite-columns-options input { margin: 0; accent-color: var(--ui-primary, #b8202b); }
.opposite-columns-popover footer { padding: 8px 12px; border-top: 1px solid #ebeef5; text-align: right; }
.opposite-columns-popover footer button { height: 24px; padding: 0 12px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }

.opposite-advanced { position: absolute; z-index: 45; top: 99px; right: 20px; left: 20px; height: 192px; padding-left: 5px; display: flex; align-content: flex-start; flex-wrap: wrap; overflow: visible; background: #fff; }
.opposite-filter-field { width: 32%; min-width: 0; height: 32px; flex: 0 0 32%; margin: 0 10px 16px 0; display: flex; align-items: center; }
.opposite-filter-field:nth-child(3n) { margin-right: 0; }
.opposite-filter-field > span { width: 80px; flex: 0 0 80px; padding-right: 16px; color: #606266; font-size: 12px; text-align: justify; text-align-last: justify; white-space: nowrap; }
.opposite-filter-field > input,
.opposite-filter-field > select { width: calc(100% - 96px); min-width: 0; height: 32px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; outline: 0; }
.opposite-filter-field > input:focus,
.opposite-filter-field > select:focus { border-color: var(--ui-primary, #b8202b); }
.opposite-date-range { width: calc(100% - 96px); min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 14px minmax(0,1fr); align-items: center; gap: 4px; }
.opposite-date-range input { width: 100%; min-width: 0; height: 32px; padding: 0 6px; border: 1px solid #dcdfe6; border-radius: 3px; color: #606266; font-size: 12px; }
.opposite-date-range b { color: #909399; font-size: 12px; font-weight: 400; text-align: center; }

.opposite-table-frame { position: relative; flex: 1 1 auto; min-height: 0; margin: 15px 20px 0; overflow: auto; border: 1px solid #ebeef5; }
.opposite-table { border-collapse: collapse; table-layout: fixed; color: #111; }
.opposite-table th { position: relative; height: 41px; padding: 0 10px; border-right: 1px solid #fff; border-bottom: 1px solid #ebeef5; background: var(--ui-primary-soft, #fbeaec); color: var(--ui-ink, #343034); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.opposite-table td { height: 40px; padding: 0 10px; border-right: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5; overflow: hidden; color: #111; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.opposite-table td span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opposite-table tr:hover td { background: #f8fbfe; }
.opposite-table .opposite-index { width: 40px; min-width: 40px; max-width: 40px; padding: 0; text-align: center; }
.opposite-table .opposite-name { width: 450px; min-width: 450px; max-width: 450px; }
.opposite-table .opposite-sticky-left { position: sticky; z-index: 8; background: var(--ui-primary-soft, #fbeaec); }
.opposite-table td.opposite-sticky-left { background: #fff; }
.opposite-table .opposite-operation { position: sticky; right: 0; z-index: 10; width: 40px; min-width: 40px; max-width: 40px; padding: 0; overflow: visible; background: #fff; text-align: center; }
.opposite-table th.opposite-operation { background: var(--ui-primary-soft, #fbeaec); }
.opposite-operation > button { width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: var(--ui-muted, #716a70); font-size: 14px; }
.opposite-row-menu { position: fixed; z-index: 1000; width: 72px; padding: 5px 0; border: 1px solid #ebeef5; border-radius: 4px; background: #fff; box-shadow: 0 3px 14px rgba(56, 36, 42, .15); }
.opposite-row-menu button { display: block; width: 100%; height: 28px; padding: 0 12px; border: 0; background: #fff; color: #606266; font-size: 12px; text-align: left; }
.opposite-table[data-oa-resizable="true"] td.opposite-operation { text-overflow: clip !important; }
.opposite-table td.opposite-operation:has(.opposite-row-menu) { z-index: 20; }
.opposite-row-menu button:hover { background: #f5f7fa; color: var(--ui-accent-ink, #a21c27); }
.opposite-empty { position: absolute; inset: 41px 0 0; display: grid; place-content: center; gap: 9px; color: #909399; text-align: center; background: #fff; font-size: 12px; }
.opposite-empty-mark { position: relative; width: 38px; height: 28px; margin: auto; border: 2px solid var(--ui-primary-line, #efd0d5); border-radius: 3px; }
.opposite-empty-mark::after { content: ""; position: absolute; right: 7px; bottom: 6px; left: 7px; height: 2px; background: var(--ui-primary-soft, #fbeaec); box-shadow: 0 -6px var(--ui-primary-soft, #fbeaec); }
.opposite-loading { width: 22px; height: 22px; margin: auto; border: 2px solid var(--ui-primary-line, #efd0d5); border-top-color: var(--ui-primary, #b8202b); border-radius: 50%; animation: opposite-spin .7s linear infinite; }
@keyframes opposite-spin { to { transform: rotate(360deg); } }
.opposite-bottom { height: 51px; min-height: 51px; margin: 0 20px; display: flex; align-items: center; justify-content: center; }
.opposite-pagination { display: flex; align-items: center; justify-content: center; gap: 9px; color: #606266; font-size: 12px; }
.opposite-pagination button { width: 28px; height: 28px; border: 0; background: #f4f6fa; color: #606266; }
.opposite-pagination button.active { background: var(--ui-primary, #b8202b); color: #fff; }
.opposite-pagination button:disabled { color: var(--ui-muted, #716a70); }
.opposite-pagination input { width: 40px; height: 26px; border: 1px solid #dcdfe6; border-radius: 3px; text-align: center; }

.opposite-modal-backdrop { position: fixed; z-index: 690; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(45, 41, 45, .38); }
.opposite-form-dialog { width: min(1366px, calc(100vw - 40px)); height: calc(100dvh - 40px); display: grid; grid-template-rows: 48px minmax(0,1fr) 58px; border-radius: 4px; background: #fff; box-shadow: 0 12px 40px rgba(56, 36, 42, .24); }
.opposite-form-dialog > header,
.opposite-import-dialog > header { padding: 0 14px 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ebeef5; }
.opposite-form-dialog h2,
.opposite-import-dialog h2 { margin: 0; color: #303133; font-size: 14px; font-weight: 500; }
.opposite-form-dialog header button,
.opposite-import-dialog header button { width: 30px; height: 30px; border: 0; background: transparent; color: #909399; font-size: 22px; }
.opposite-form-body { min-height: 0; padding: 0 16px 28px; overflow-y: auto; }
.opposite-form-body > h3,
.opposite-contact-section > h3 { height: 40px; margin: 0; display: flex; align-items: center; color: #303133; font-size: 14px; font-weight: 500; }
.opposite-form-grid { margin-top: 10px; display: grid; grid-template-columns: 41.65% 41.65%; justify-content: space-between; column-gap: 0; row-gap: 20px; }
.opposite-form-field { position: relative; min-width: 0; min-height: 32px; display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: start; }
.opposite-form-field.full { grid-column: 1 / -1; }
.opposite-form-field.full { grid-template-columns: 180px minmax(0,1fr); }
.opposite-form-field > span { min-height: 32px; padding: 8px 14px 0 0; color: #606266; font-size: 12px; text-align: right; white-space: nowrap; }
.opposite-form-field > span b { padding-right: 3px; color: #f56c6c; font-weight: 400; }
.opposite-form-field input,
.opposite-form-field select,
.opposite-form-field textarea { width: 100%; min-width: 0; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; outline: 0; }
.opposite-form-field input,
.opposite-form-field select { height: 32px; padding: 0 10px; }
.opposite-form-field textarea { min-height: 72px; padding: 8px 10px; resize: vertical; }
.opposite-form-field input:focus,
.opposite-form-field select:focus,
.opposite-form-field textarea:focus { border-color: var(--ui-primary, #b8202b); }
.opposite-form-field input:disabled,
.opposite-form-field select:disabled,
.opposite-form-field textarea:disabled { background: #f5f7fa; color: #909399; }
.opposite-form-field.invalid input,
.opposite-form-field.invalid select { border-color: #f56c6c; }
.opposite-form-field small { grid-column: 2; padding-top: 3px; color: #f56c6c; font-size: 11px; }
.opposite-name-control { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.opposite-name-control button { height: 32px; padding: 0 12px; border: 1px solid var(--ui-primary, #b8202b); border-radius: 3px; background: var(--ui-primary, #b8202b); color: #fff; font-size: 12px; }
.opposite-more-toggle { margin: 20px auto 0; display: block; border: 0; background: transparent; color: #606266; font-size: 12px; }
.opposite-more-toggle span { padding-left: 7px; }
.opposite-contact-section { margin-top: 24px; border-top: 1px solid #ebeef5; }
.opposite-contact-section nav { height: 42px; display: flex; align-items: flex-end; gap: 18px; border-bottom: 1px solid #ebeef5; }
.opposite-contact-section nav button { height: 42px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #606266; font-size: 12px; }
.opposite-contact-section nav button.active { border-bottom-color: var(--ui-primary, #b8202b); color: var(--ui-accent-ink, #a21c27); }
.opposite-contact-grid { margin-top: 18px; display: grid; grid-template-columns: 24.8% 7.5% 7.5% 41.2%; justify-content: space-between; gap: 14px 0; }
.opposite-contact-grid label { min-width: 0; display: grid; grid-template-columns: 90px minmax(0,1fr); align-items: center; }
.opposite-contact-grid label:nth-child(5),
.opposite-contact-grid label:nth-child(6) { grid-column: span 2; }
.opposite-contact-grid label > span { padding-right: 12px; color: #606266; font-size: 12px; text-align: right; }
.opposite-contact-grid input,
.opposite-contact-grid select { width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid #dcdfe6; border-radius: 3px; color: #606266; font-size: 12px; }
.opposite-contact-grid .compact { grid-template-columns: 0 minmax(0,1fr); }
.opposite-attachments { min-width: 0; }
.opposite-attachments > input { padding: 4px; }
.opposite-attachments > div { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.opposite-attachments span { padding: 4px 7px; border: 1px solid #dcdfe6; border-radius: 3px; color: #606266; font-size: 11px; }
.opposite-attachments span button { margin-left: 7px; border: 0; background: transparent; color: #f56c6c; }
.opposite-form-dialog > footer,
.opposite-import-dialog > footer { padding: 0 24px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid #ebeef5; }
.opposite-form-dialog > footer button,
.opposite-import-dialog > footer button { min-width: 70px; height: 30px; border: 1px solid #dcdfe6; border-radius: 3px; background: #fff; color: #606266; font-size: 12px; }
.opposite-form-dialog > footer button.primary,
.opposite-import-dialog > footer button.primary { border-color: var(--ui-primary, #b8202b); background: var(--ui-primary, #b8202b); color: #fff; }

.opposite-import-dialog { width: min(700px, calc(100vw - 40px)); display: grid; grid-template-rows: 48px auto 58px; border-radius: 4px; background: #fff; box-shadow: 0 12px 40px rgba(56, 36, 42, .24); }
.opposite-import-body { padding: 28px 46px 24px; }
.opposite-import-step { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; margin-bottom: 26px; color: #606266; font-size: 12px; }
.opposite-import-step strong { font-weight: 500; }
.opposite-import-step p { margin: 0 0 8px; }
.opposite-import-step button { padding: 0; border: 0; background: transparent; color: var(--ui-accent-ink, #a21c27); font-size: 12px; }
.opposite-upload-zone { height: 120px; display: grid; place-content: center; gap: 8px; border: 1px dashed var(--ui-primary-line, #efd0d5); border-radius: 4px; color: #909399; text-align: center; }
.opposite-upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.opposite-upload-zone b { color: var(--ui-accent-ink, #a21c27); font-weight: 400; }
.opposite-upload-zone em { color: #606266; font-size: 11px; font-style: normal; }
.opposite-import-error { margin-left: 84px; color: #f56c6c; font-size: 12px; }

@media (max-width: 820px) {
  .app-shell.opposite-shell { height: auto; grid-template-rows: 60px 46px minmax(calc(100dvh - 106px), auto); }
  .app-shell.opposite-shell .tab-strip { position: static; width: 100%; height: 46px; padding: 0; border-radius: 0; }
  .app-shell.opposite-shell .tab-scroll { height: 46px; }
  .app-shell.opposite-shell .route-tab { width: 130px; min-width: 130px; height: 44px; }
  .app-shell.opposite-shell .workspace-wrap { padding: 0; }
  .app-shell.opposite-shell .workspace { min-height: calc(100dvh - 106px); }
  .opposite-main { min-height: calc(100dvh - 106px); border-radius: 0; }
  .opposite-inner { padding-top: 0; }
  .opposite-toolbar { height: auto; min-height: 88px; padding: 9px 10px; align-items: flex-start; flex-wrap: wrap; }
  .opposite-toolbar-left,
  .opposite-toolbar-right { width: 100%; }
  .opposite-search { flex: 1; width: auto; }
  .opposite-toolbar-right { margin-left: 0; justify-content: flex-end; }
  .opposite-advanced { top: 98px; right: 10px; left: 10px; height: calc(100% - 110px); min-height: 420px; padding: 0; overflow-y: auto; }
  .opposite-filter-field { width: 100%; flex-basis: 100%; margin-right: 0; }
  .opposite-table-frame { min-height: 440px; margin: 10px 10px 0; }
  .opposite-bottom { margin: 0 10px; overflow-x: auto; justify-content: flex-start; }
  .opposite-pagination { min-width: 380px; }
  .opposite-modal-backdrop { padding: 10px; }
  .opposite-form-dialog { width: calc(100vw - 20px); height: calc(100dvh - 20px); }
  .opposite-form-grid { grid-template-columns: 1fr; row-gap: 12px; }
  .opposite-form-field.full { grid-column: auto; grid-template-columns: 104px minmax(0,1fr); }
  .opposite-form-field { grid-template-columns: 104px minmax(0,1fr); }
  .opposite-name-control { grid-template-columns: 1fr; }
  .opposite-name-control button { width: 100%; height: 40px; }
  .opposite-contact-grid { grid-template-columns: 1fr; }
  .opposite-contact-grid label,
  .opposite-contact-grid label:nth-child(5),
  .opposite-contact-grid label:nth-child(6) { grid-column: auto; grid-template-columns: 104px minmax(0,1fr); }
  .opposite-contact-grid .compact { grid-template-columns: 104px minmax(0,1fr); }
  .opposite-import-body { padding: 22px 18px; }
  .opposite-import-step { grid-template-columns: 60px minmax(0,1fr); }
  .opposite-form-dialog > footer button,
  .opposite-import-dialog > footer button { min-width: 82px; height: 44px; }
}
