/* ─── Upload form ─────────────────────────────────────────────────────────── */

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.75rem;
}

.upload-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--shades-600);
}

.upload-hint {
    font-weight: 400;
    color: var(--shades-400);
    font-size: 0.8125rem;
}

/* ─── Folder cascade ──────────────────────────────────────────────────────── */

.folder-cascade {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.folder-cascade-item {
    display: flex;
    align-items: center;
}

.folder-cascade-sep {
    display: flex;
    align-items: center;
    color: var(--shades-300);
    font-size: 0.75rem;
    flex-shrink: 0;
    padding: 0 0.125rem;
}

.upload-input {
    padding: 0.5625rem 0.875rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--shades-600);
    background: var(--white);
    transition: border-color 0.2s;
}

.upload-input:focus {
    outline: none;
    border-color: var(--primary-blue-500);
}

.upload-input--folder-new {
    min-width: 10rem;
    max-width: 16rem;
}

/* ─── Filter select (KB files section) ───────────────────────────────────── */

.upload-select {
    flex: 1;
    min-width: 10rem;
    max-width: 22rem;
    padding: 0.5625rem 0.875rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--shades-600);
    background: var(--white);
    cursor: pointer;
    transition: border-color 0.2s;
}

.upload-select:focus {
    outline: none;
    border-color: var(--primary-blue-500);
}

.upload-select--sm {
    max-width: 18rem;
}

.upload-file-row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex-wrap: wrap;
}

.upload-file-btn {
    cursor: pointer;
    white-space: nowrap;
}

.upload-filename {
    font-size: 0.875rem;
    color: var(--shades-400);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 20rem;
}

.upload-form-actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Upload status ───────────────────────────────────────────────────────── */

.upload-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid transparent;
}

.upload-status--info {
    background: var(--primary-blue-50, #e8f1fb);
    border-color: var(--primary-blue-200, #b3d0f5);
    color: var(--primary-blue-500);
}

.upload-status--success {
    background: #f0faf4;
    border-color: #a3d9b5;
    color: var(--success-500);
}

.upload-status--error {
    background: #fff4f4;
    border-color: #f5b3b3;
    color: var(--danger-500);
}

/* ─── Files header row ────────────────────────────────────────────────────── */

.upload-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.upload-folder-filter-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
}

/* ─── Files table additions ───────────────────────────────────────────────── */

.kb-file-icon {
    margin-right: 0.375rem;
    color: var(--primary-blue-400);
}

.kb-size-cell {
    white-space: nowrap;
    width: 7rem;
}

.kb-date-cell {
    white-space: nowrap;
    width: 10rem;
}

.kb-actions-cell {
    width: 3.5rem;
    text-align: right;
}

.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

.btn-danger-outline {
    color: var(--danger-500);
    border-color: var(--danger-500);
}

.btn-danger-outline:hover {
    background: var(--danger-500);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-500);
    border-color: var(--danger-500);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* ─── Confirm delete modal ────────────────────────────────────────────────── */

.kb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.kb-modal {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 26rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kb-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--shades-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-modal-title i {
    color: var(--danger-500);
}

.kb-modal-body {
    font-size: 0.875rem;
    color: var(--shades-400);
    word-break: break-all;
    background: var(--shades-50);
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
}

.kb-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 48em) {
    .upload-file-row,
    .upload-form-actions,
    .upload-files-header,
    .upload-folder-filter-row {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Cascade wraps naturally; selects stretch to fill each row */
    .folder-cascade {
        gap: 0.375rem 0.25rem;
    }

    .folder-cascade .upload-select,
    .folder-cascade .upload-input {
        max-width: 100%;
    }

    .upload-select,
    .upload-input {
        max-width: 100%;
        width: 100%;
    }

    .upload-input--folder-new {
        min-width: 8rem;
        max-width: 14rem;
    }

    .kb-metadata-grid {
        grid-template-columns: 1fr;
    }

    .kb-date-cell {
        display: none;
    }
}

/* ─── Metadata panel ──────────────────────────────────────────────────────── */

.kb-metadata-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
}

.kb-metadata-toggle__icon {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.kb-metadata-toggle__icon--open {
    transform: rotate(180deg);
}

.kb-metadata-hint {
    margin: 0;
}

.kb-metadata-panel {
    margin-top: 0.5rem;
}

.kb-metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 0.75rem 1rem;
    padding: 1rem;
    background: var(--shades-50, #f8f9fa);
    border-radius: 0.5rem;
    border: 0.0625rem solid var(--shades-200);
}

.kb-metadata-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.kb-metadata-field--checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
    cursor: pointer;
}

.kb-metadata-field__hint {
    font-size: 0.75rem;
    color: var(--shades-400);
}

/* ─── Breadcrumb + folder rows ────────────────────────────────────────────── */

.kb-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.375rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.kb-breadcrumb__item {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    color: var(--primary-blue-500);
    cursor: pointer;
    font: inherit;
}

.kb-breadcrumb__item:hover {
    background: var(--primary-blue-50, #e8f1fb);
}

.kb-breadcrumb__sep {
    color: var(--shades-300);
    font-size: 0.625rem;
}

.kb-folder-row {
    cursor: pointer;
}

.kb-folder-row:hover {
    background: var(--shades-50, #f8f9fa);
}

.kb-file-icon--folder {
    color: var(--warning-500, #e6a817);
}
/* ─── Folder picker (MVA admin-uploads folder-picker) ───────────────────── */

.folder-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.folder-picker__sep {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.folder-picker-select {
    position: relative;
    flex: 0 1 auto;
}

.folder-picker__select,
.folder-picker-select__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    min-width: 10rem;
    max-width: 18.75rem;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border: 0.0625rem solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-family: inherit;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.15s ease;
}

.folder-picker__select:hover,
.folder-picker-select__trigger:hover {
    border-color: #9ca3af;
}

.folder-picker__select:focus,
.folder-picker-select__trigger:focus {
    outline: none;
    border-color: #111;
}

.folder-picker-select__trigger--placeholder .folder-picker-select__label {
    color: var(--shades-400);
}

.folder-picker-select__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-picker-select__chevron {
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.15s ease;
}

.folder-picker-select.is-open .folder-picker-select__chevron {
    transform: rotate(180deg);
}

.folder-picker-select__menu {
    position: fixed;
    z-index: 10002;
    min-width: 10rem;
    max-width: 18.75rem;
    max-height: 16rem;
    margin: 0;
    padding: 0.375rem 0;
    list-style: none;
    overflow-y: auto;
    background: #fff;
    border: 0.0625rem solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(61, 62, 64, 0.15);
}

.folder-picker-select__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.folder-picker-select__option:hover {
    background: #f3f4f6;
}

.folder-picker-select__option--selected {
    background: #f9fafb;
    font-weight: 600;
}

.folder-picker__current {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--shades-500);
    width: 100%;
}

.folder-picker__current code {
    background: var(--shades-50);
    padding: 0.0625rem 0.3125rem;
    border-radius: 0.1875rem;
    word-break: break-all;
}

/* Legacy aliases (older markup/scripts) */
.folder-cascade {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.folder-cascade-sep {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.upload-input {
    min-width: 10rem;
    max-width: 18.75rem;
    padding: 0.5rem 0.625rem;
    border: 0.0625rem solid var(--shades-250, #d1d5db);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--shades-600);
    background: var(--shades-50);
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-input:focus {
    outline: none;
    border-color: var(--ink, var(--shades-600));
    background: var(--white);
}

.upload-input::placeholder {
    color: var(--shades-300);
}

.upload-input--folder-new {
    min-width: 10rem;
    max-width: 18.75rem;
}

/* ─── Drag & drop dropzone ────────────────────────────────────────────────── */

.upload-dropzone {
    display: block;
    border: 0.125rem dashed var(--shades-250, #d1d5db);
    border-radius: 0.5rem;
    padding: 1.75rem 1.25rem;
    background: var(--white);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: var(--ink, var(--shades-600));
    background: var(--shades-50);
}

.upload-dropzone.has-file {
    border-color: var(--shades-300);
    border-style: solid;
    background: var(--white);
}

.upload-dropzone__input {
    display: none;
}

.upload-dropzone__icon {
    font-size: 2rem;
    color: var(--shades-400);
    display: block;
    margin: 0 auto 0.375rem;
}

.upload-dropzone__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.upload-dropzone__main {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--shades-600);
}

.upload-dropzone__link {
    color: var(--shades-600);
    text-decoration: underline;
    font-weight: 600;
}

.upload-dropzone__hint {
    font-size: 0.75rem;
    color: var(--shades-400);
}

.upload-dropzone--lg {
    min-height: 9rem;
    padding: 2rem 1.25rem;
}

.upload-dropzone--lg .upload-dropzone__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ─── Selected files list (step 2) ────────────────────────────────────────── */

.upload-file-list {
    margin-top: 1rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--white);
}

.upload-file-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--shades-50);
    border-bottom: 0.0625rem solid var(--shades-150);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--shades-600);
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 0.0625rem solid var(--shades-150);
}

.upload-file-item:last-child {
    border-bottom: none;
}

.upload-file-item__icon {
    color: var(--primary-400);
    flex-shrink: 0;
}

.upload-file-item__name {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--shades-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-item__size {
    font-size: 0.8125rem;
    color: var(--shades-400);
    white-space: nowrap;
    flex-shrink: 0;
}

.upload-file-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--shades-400);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.upload-file-item__remove:hover {
    background: #fff4f4;
    color: var(--danger-500);
}

/* ─── Wizard stepper (MVA portal stepper) ─────────────────────────────────── */

.wizard-steps {
    display: flex;
    align-items: center;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 0.0625rem solid var(--shades-150);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.wizard-step__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    box-sizing: border-box;
    border-radius: 50%;
    border: 0.125rem solid transparent;
    background: var(--shades-200);
    color: var(--shades-400);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wizard-step.active .wizard-step__circle {
    background: transparent;
    border-color: var(--ink, var(--shades-600));
    color: var(--ink, var(--shades-600));
}

.wizard-step.done .wizard-step__circle {
    background: var(--ink, var(--shades-600));
    border-color: var(--ink, var(--shades-600));
    color: var(--white);
}

.wizard-step__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--shades-400);
    white-space: nowrap;
}

.wizard-step.active .wizard-step__label,
.wizard-step.done .wizard-step__label {
    color: var(--ink, var(--shades-600));
    font-weight: 600;
}

.wizard-step__line {
    flex: 1;
    height: 0.125rem;
    background: var(--shades-200);
    margin: 0 0.375rem 1.25rem;
    transition: background 0.2s ease;
}

.wizard-step.done + .wizard-step__line,
.wizard-step.active + .wizard-step__line {
    background: var(--ink, var(--shades-600));
}

/* ─── Wizard panels & actions ─────────────────────────────────────────────── */

.wizard-panel__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--shades-600);
    margin: 0 0 0.5rem;
}

.wizard-panel__desc {
    font-size: 0.8125rem;
    color: var(--shades-400);
    line-height: 1.45;
    margin: 0 0 1rem;
}

.wizard-path {
    background: var(--shades-50);
    border: none;
    border-radius: 0.1875rem;
    padding: 0.0625rem 0.3125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    color: var(--shades-600);
    word-break: break-all;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 0.0625rem solid var(--shades-150);
}

.wizard-actions--split {
    justify-content: space-between;
}

.upload-form-actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Upload status ───────────────────────────────────────────────────────── */

.upload-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid transparent;
}

.upload-status--info {
    background: var(--primary-50, #e8f1fb);
    border-color: var(--primary-200, #b3d0f5);
    color: var(--primary-500);
}

.upload-status--success {
    background: #f0faf4;
    border-color: #a3d9b5;
    color: var(--success-500);
}

.upload-status--error {
    background: #fff4f4;
    border-color: #f5b3b3;
    color: var(--danger-500);
}

/* ─── Files table (KB list panel) ─────────────────────────────────────────── */

#filesTable .files-table {
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    box-shadow: none;
}

#filesTable .files-table th {
    background: var(--shades-50);
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    border-bottom: 0.0625rem solid var(--shades-150);
}

#filesTable .files-table td {
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    vertical-align: middle;
}

.kb-file-icon {
    margin-right: 0.375rem;
    color: var(--shades-400);
}

.kb-size-cell {
    white-space: nowrap;
    width: 7rem;
}

.kb-date-cell {
    white-space: nowrap;
    width: 10rem;
}

.kb-actions-cell {
    width: 3.5rem;
    text-align: right;
}

.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

.btn-danger-outline {
    color: var(--danger-500);
    border-color: var(--danger-500);
}

.btn-danger-outline:hover {
    background: var(--danger-500);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-500);
    border-color: var(--danger-500);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* ─── Confirm delete modal ────────────────────────────────────────────────── */

.kb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.kb-modal {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 26rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kb-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--shades-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-modal-title .hicon {
    color: var(--danger-500);
}

.kb-modal-body {
    font-size: 0.875rem;
    color: var(--shades-400);
    word-break: break-all;
    background: var(--shades-50);
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
}

.kb-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 48em) {
    .dashboard-panel[data-panel="upload"] .progress-section.kb-upload-card,
    .dashboard-panel[data-panel="upload"] .files-section.kb-upload-panel {
        padding: 1.25rem 1rem;
    }

    .kb-upload-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .folder-picker,
    .folder-cascade {
        gap: 0.375rem;
    }

    .folder-picker__select,
    .folder-picker-select__trigger,
    .folder-picker-select {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .folder-picker-select__menu {
        max-width: 100%;
    }

    .upload-input,
    .upload-input--folder-new {
        max-width: 100%;
        width: 100%;
    }

    .upload-input--folder-new {
        min-width: 0;
    }

    .kb-date-cell {
        display: none;
    }
}

/* ─── Dictionary / external links panels (MVA portal–like) ─────────────── */

.kb-upload-panel__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kb-panel-status {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.kb-panel-status--success {
    background: color-mix(in srgb, var(--primary-500) 12%, transparent);
    color: var(--primary-700, #006b28);
}

.kb-panel-status--error {
    background: color-mix(in srgb, var(--danger-500, #f80000) 10%, transparent);
    color: var(--danger-600, #c40000);
}

.kb-panel-hint {
    color: var(--shades-500);
    font-size: 0.875rem;
}

.kb-panel-expand {
    margin-top: 0.75rem;
}

.badge--optional {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--shades-500);
    background: var(--shades-100, #f3f4f4);
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.toggle-row__checkbox {
    width: 1rem;
    height: 1rem;
}

.toggle-row__label {
    font-size: 0.9375rem;
    color: var(--shades-700);
}

.ext-form-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ext-form-list__add {
    align-self: flex-start;
}

.ext-form-card {
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--shades-50, #fafafa);
}

.ext-form-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ext-form-card__title {
    font-weight: 600;
    color: var(--shades-700);
}

.ext-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ext-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ext-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ext-form__field--full {
    grid-column: 1 / -1;
}

.ext-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--shades-600);
}

.ext-form__field--required .ext-form__label::after {
    content: ' *';
    color: var(--danger-500, #f80000);
}

.ext-form__input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.ext-form__hint {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--shades-500);
}

.dict-table-wrap,
.el-table-wrap {
    overflow-x: auto;
}

.dict-table,
.el-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dict-table th,
.dict-table td,
.el-table th,
.el-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 0.0625rem solid var(--shades-200);
    text-align: left;
    vertical-align: top;
}

.dict-table th,
.el-table th {
    background: var(--shades-50, #fafafa);
    font-weight: 600;
    color: var(--shades-600);
}

.dict-table__input {
    width: 100%;
    min-width: 10rem;
    padding: 0.375rem 0.5rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.375rem;
}

.el-link {
    color: var(--primary-600);
    word-break: break-all;
}

@media (max-width: 48em) {
    .ext-form__row {
        grid-template-columns: 1fr;
    }
}
