/* ============================================================
   The import options editors (SasquatchImportOptionsEditor and
   CsvOptionsEditor), which are native inputs.

   Shared by the desktop shell, which imports this file from
   shell.css, and the web Catalog client, which links it, so the
   editors look the same wherever they are hosted.
   Consumes only design tokens; no hard-coded colors.
   ============================================================ */

.dlg-opt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dlg-opt-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0 4px;
}

.dlg-opt-heading {
    margin: 0;
    font-size: 11px;
    font-weight: var(--fw-semibold);
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dlg-opt-advanced > summary {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    cursor: pointer;
}

.dlg-opt-advanced > summary::-webkit-details-marker {
    display: none;
}

.dlg-opt-advanced > summary::before {
    content: "\203A";
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    transition: transform var(--dur-fast);
}

.dlg-opt-advanced[open] > summary::before {
    transform: rotate(90deg);
}

/* The fields inside <details> sit in the browser's own content box, so the section gap does not reach them. */
.dlg-opt-advanced-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
}

.dlg-opt-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dlg-opt-label {
    font-size: 12px;
    font-weight: var(--fw-semibold);
    color: var(--text-secondary);
}

/* A label with its Changed marker and Use default link to the right. */
.dlg-opt-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dlg-opt-changed {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    color: var(--sem-warning);
}

.dlg-opt-check .dlg-opt-changed {
    margin-left: auto;
}

.dlg-opt-help {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
}

.dlg-opt-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.dlg-opt-check input {
    flex: none;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand-primary);
}

.dlg-opt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dlg-opt select,
.dlg-opt input:not([type="checkbox"]):not([type="radio"]),
.dlg-opt textarea,
.dlg-blocked-card input[type="password"] {
    width: 100%;
    height: 32px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--surface-input);
    color: var(--text-primary);
    font: inherit;
    font-size: 13px;
}

.dlg-opt textarea {
    height: 72px;
    padding: 6px 10px;
    resize: vertical;
    font-family: var(--font-mono);
    font-size: 12px;
}

.dlg-opt select:focus,
.dlg-opt input:focus,
.dlg-opt textarea:focus,
.dlg-blocked-card input[type="password"]:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: -1px;
}
