/* asset_admin 다국어 비교 모달 (mq admin 다국어 모달과 동일 톤) */

.i18n-tab-hint {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0 0 0.75rem;
  line-height: 1.5;
}
.i18n-tab-status {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.75rem;
}
.i18n-tab-status.error { color: #dc2626; }

.i18n-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 11000;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}
.i18n-modal-overlay.open { display: flex; }

.i18n-modal-box {
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  margin: auto;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.i18n-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #1e293b;
  background: #1e293b;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.i18n-modal-toolbar h3 {
  flex: 1;
  margin: 0;
  font-size: 1rem;
  color: #f1f5f9;
  min-width: 8rem;
}
.i18n-modal-toolbar .i18n-toolbar-btn {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: #fff;
}
.i18n-modal-toolbar .i18n-toolbar-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.i18n-modal-toolbar .btn-i18n-save { background: #2563eb; }
.i18n-modal-toolbar .btn-i18n-words { background: #7c3aed; }
.i18n-modal-toolbar .btn-i18n-pdf { background: #059669; }
.i18n-modal-toolbar .btn-i18n-excel { background: #0d9488; }
.i18n-modal-toolbar .btn-i18n-close {
  background: #334155;
  color: #e2e8f0;
}
.i18n-modal-body {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 1.5rem 2rem;
}
#i18nRenderArea.md-render {
  max-width: 920px;
  line-height: 1.7;
  font-size: 0.9rem;
  color: #cbd5e1;
}
#i18nRenderArea.md-render h1,
#i18nRenderArea.md-render h2,
#i18nRenderArea.md-render h3,
#i18nRenderArea.md-render h4 {
  color: #f1f5f9;
  margin: 1.4rem 0 0.6rem;
  line-height: 1.35;
}
#i18nRenderArea.md-render h1 {
  font-size: 1.35rem;
  border-bottom: 1px solid #334155;
  padding-bottom: 0.45rem;
}
#i18nRenderArea.md-render h2 { font-size: 1.15rem; }
#i18nRenderArea.md-render h3 { font-size: 1rem; color: #93c5fd; }
#i18nRenderArea.md-render p { margin: 0.55rem 0; }
#i18nRenderArea.md-render table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.8rem 0;
  font-size: 0.82rem;
  table-layout: fixed;
}
#i18nRenderArea.md-render th,
#i18nRenderArea.md-render td {
  border: 1px solid #334155;
  padding: 0.45rem 0.7rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
}
#i18nRenderArea.md-render th { background: #1e293b; color: #94a3b8; }
#i18nRenderArea.md-render code {
  background: #1e293b;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}
#i18nRenderArea.md-render strong { color: #f8fafc; }

#i18nRenderArea table.i18n-compare-table th:nth-child(1),
#i18nRenderArea table.i18n-compare-table td:nth-child(1) {
  width: 3.2rem;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
}
#i18nRenderArea table.i18n-compare-table th:nth-child(2),
#i18nRenderArea table.i18n-compare-table td:nth-child(2) {
  width: 4%;
  white-space: nowrap;
}
#i18nRenderArea table.i18n-compare-table th:nth-child(3),
#i18nRenderArea table.i18n-compare-table td:nth-child(3) {
  width: 16%;
  word-break: break-all;
}
#i18nRenderArea table.i18n-compare-table th:nth-child(4),
#i18nRenderArea table.i18n-compare-table td:nth-child(4),
#i18nRenderArea table.i18n-compare-table th:nth-child(5),
#i18nRenderArea table.i18n-compare-table td:nth-child(5) {
  width: 38%;
}
#i18nRenderArea .i18n-pdf-check-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #3b82f6;
}
#i18nRenderArea table.i18n-compare-table tbody tr.i18n-pdf-off {
  opacity: 0.45;
}

@media print {
  @page { margin: 14mm; size: A4; }
  html, body {
    background: #fff !important;
    color: #111 !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }
  body > *:not(#i18nOverlay) { display: none !important; }
  #i18nOverlay:not(.open) { display: none !important; }
  .no-print { display: none !important; }

  #i18nOverlay.open {
    display: block !important;
    position: static !important;
    inset: auto !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    z-index: auto !important;
  }
  .i18n-modal-box {
    display: block !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    overflow: visible !important;
  }
  .i18n-modal-body {
    display: block !important;
    overflow: visible !important;
    max-height: none !important;
    padding: 0 !important;
  }
  #i18nRenderArea {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 10.5pt !important;
    line-height: 1.55 !important;
  }
  #i18nRenderArea h1,
  #i18nRenderArea h2,
  #i18nRenderArea h3,
  #i18nRenderArea h4,
  #i18nRenderArea strong { color: #000 !important; }
  #i18nRenderArea h1 {
    border-bottom: 1px solid #ccc !important;
    font-size: 16pt !important;
  }
  #i18nRenderArea h2 { font-size: 13pt !important; }
  #i18nRenderArea h3 { font-size: 11.5pt !important; color: #222 !important; }
  #i18nRenderArea table {
    table-layout: fixed !important;
    width: 100% !important;
  }
  #i18nRenderArea .i18n-pdf-check-col,
  #i18nRenderArea .i18n-pdf-exclude {
    display: none !important;
  }
  #i18nRenderArea table.i18n-compare-table th:nth-child(2),
  #i18nRenderArea table.i18n-compare-table td:nth-child(2) { width: 5% !important; }
  #i18nRenderArea table.i18n-compare-table th:nth-child(3),
  #i18nRenderArea table.i18n-compare-table td:nth-child(3) {
    width: 16% !important;
    word-break: break-all !important;
  }
  #i18nRenderArea table.i18n-compare-table th:nth-child(4),
  #i18nRenderArea table.i18n-compare-table td:nth-child(4),
  #i18nRenderArea table.i18n-compare-table th:nth-child(5),
  #i18nRenderArea table.i18n-compare-table td:nth-child(5) { width: 39.5% !important; }
  #i18nRenderArea th,
  #i18nRenderArea td {
    border: 1px solid #999 !important;
    color: #111 !important;
  }
  #i18nRenderArea th { background: #f0f0f0 !important; color: #111 !important; }
  #i18nRenderArea code {
    background: #f3f4f6 !important;
    color: #111 !important;
  }
  #i18nRenderArea .i18n-word-count { color: #333 !important; }
}
