/* File Translation Notes Dialog - Figma Design 100% Match */
/* Using common.css variables and utilities */

.stf-file-notes-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.stf-file-notes-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.stf-file-notes-content {
    position: relative;
    background: var(--White, #FFFFFF);
    border: 1px solid var(--BlueGray01, #B3B9C6);
    border-radius: var(--Radius-M, 8px);
    box-shadow: 0px 4px 4px -4px rgba(12, 12, 13, 0.05), 0px 16px 16px -8px rgba(12, 12, 13, 0.1);
    z-index: 2;
    padding: var(--Spacing-L, 24px);
}

/* Header */
.stf-file-notes-header {
    position: relative;
}

.stf-file-notes-title-wrapper {
    display: inline-flex;
    align-items: center;
    gap: var(--Spacing-XS, 4px);
}

.stf-file-notes-info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.stf-file-notes-title {
    font-size: var(--size-md, 16px);
    font-weight: 600;
    line-height: 1.362;
    color: var(--Black, #000000);
    margin: 0;
}

.stf-file-notes-close-btn {
    position: absolute;
    right: -12px;
    top: -12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
}

.stf-file-notes-close-btn:focus-visible {
    border: none !important;
    outline: none !important;
}

/* Body */

.stf-file-notes-text-content {
    font-size: var(--size-sm, 14px);
    font-weight: 400;
    line-height: 2em;
    color: var(--Black, #000000);
    margin: 0;
    white-space: pre-line;
}

.stf-file-notes-pdf-section {
    margin-left: 20.5px;
}

/* Link button */
.stf-file-notes-detail-link {
    display: inline-flex;
    align-items: center;
    gap: var(--Spacing-S, 8px);
    padding: var(--Spacing-XS, 4px) var(--Spacing-S, 8px);
    color: var(--Cobalt02, #1763A2) !important;
    font-size: var(--size-sm, 14px);
    font-weight: 600;
    /* line-height: 1.362; */
    text-decoration: none;
    border-radius: var(--Radius-S, 4px);
    transition: background-color 0.2s ease;
}

/* .stf-file-notes-detail-link:hover {
    background-color: var(--Cobalt08, #EEF7FF);
} */

.stf-file-notes-detail-link img {
    width: 22px;
    height: 22px;
}

/* Footer */
.stf-file-notes-footer {
    margin-top: var(--Spacing-L, 24px);
}

.stf-file-notes-close-button {
    width: 140px;
    padding: var(--Spacing-XS, 4px) var(--Spacing-S, 8px);
    background: var(--White, #FFFFFF);
    border: 1px solid var(--Cobalt02, #1763A2);
    border-radius: var(--Radius-S, 4px);
    color: var(--Cobalt02, #1763A2);
    font-size: var(--size-sm, 14px);
    font-weight: 600;
    line-height: 1.362;
    cursor: pointer;
    transition: all 0.2s ease;
}

.stf-file-notes-close-button:hover {
    background: var(--Cobalt08, #EEF7FF);
}

.stf-file-notes-close-button:active {
    background: var(--Cobalt07, #C9E6FF);
}

/* Scrollbar */
/* .stf-file-notes-content::-webkit-scrollbar {
    width: 8px;
}

.stf-file-notes-content::-webkit-scrollbar-track {
    background: var(--BlueGray06, #F2F3F5);
    border-radius: var(--Radius-S, 4px);
}

.stf-file-notes-content::-webkit-scrollbar-thumb {
    background: var(--BlueGray02, #C0C5D0);
    border-radius: var(--Radius-S, 4px);
}

.stf-file-notes-content::-webkit-scrollbar-thumb:hover {
    background: var(--BlueGray01, #B3B9C6);
} */

/* Dialog wrapper - Override jQuery UI defaults */
.stf-file-notes-dialog.ui-dialog {
  padding: 0;
  border: none;
  border-radius: var(--Radius-M, 8px);
  box-shadow: 0px 4px 4px -4px rgba(12, 12, 13, 0.05), 0px 16px 16px -8px rgba(12, 12, 13, 0.1);
}

/* Hide jQuery UI titlebar - we use custom header */
.stf-file-notes-dialog .ui-dialog-titlebar {
  display: none;
}

/* Dialog content area */
.stf-file-notes-dialog .ui-dialog-content {
  padding: 0;
  overflow: visible; /* Let table container handle scroll */
}

/* Ensure modal container fits properly */
.stf-file-notes-dialog .list-draft-modal {
  box-shadow: none; /* Remove inner shadow, wrapper has shadow */
}

/* Override jQuery UI button pane if exists */
.stf-file-notes-dialog .ui-dialog-buttonpane {
  display: none;
}

.stf-file-notes-overlay-class {
    opacity: 0 !important;
}