/* =========================================================
   MarketView - Import/Export
   ========================================================= */
.al-ic.purple2 { background: #a855f7; }
.io-kpis .al-kpi { cursor: default; }
.io-kpis small .change { font-size: 11px; }

.io-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: start; }
.io-title { font-size: 17px !important; font-weight: 800 !important; }
.io-sub { margin: 2px 0 0; font-size: 12.5px; }
.io-subtitle { font-size: 13.5px; margin: 14px 0 8px; }

/* Pași */
.io-steps { list-style: none; display: flex; gap: 6px; margin: 4px 0 12px; padding: 0; counter-reset: s; }
.io-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #4b5669; white-space: nowrap; }
.io-steps li:not(:last-child)::after { content: ''; flex: 1; height: 1px; background: var(--border); margin-left: 4px; }
.io-steps span { width: 24px; height: 24px; border-radius: 50%; background: #eef2f7; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11.5px; flex-shrink: 0; }
.io-steps li.active { color: var(--text); font-weight: 600; }
.io-steps li.active span { background: var(--primary); color: #fff; }
.io-steps li.done span { background: var(--green); color: #fff; }
.io-steps li.done span { font-size: 0; }
.io-steps li.done span::before { content: '✓'; font-size: 12px; }

/* Zona de încărcare */
.io-drop { display: block; border: 2px dashed #b9c6d8; border-radius: 10px; background: #f8fafd; padding: 18px; text-align: center; cursor: pointer; transition: .15s; }
.io-drop:hover, .io-drop.drag { border-color: var(--primary); background: #eef4ff; }
.io-drop-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.io-drop-empty > i { font-size: 38px; color: var(--primary); margin-bottom: 4px; }
.io-drop-empty b { font-size: 14.5px; }
.io-drop-empty small { color: #4b5669; font-size: 12px; }
.io-drop-empty .btn { margin-top: 8px; }
.io-drop-file { display: flex; align-items: center; gap: 12px; text-align: left; }
.io-drop-file > i { font-size: 34px; color: #1d7c44; }
.io-drop-file > div { flex: 1; min-width: 0; }
.io-drop-file b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-drop-file small { color: var(--muted); font-size: 12px; }
.io-drop-busy { padding: 18px; color: var(--muted); }
.io-drop [hidden] { display: none !important; }

/* Tipuri de date */
.io-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.io-type {
    display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; padding: 10px; border-radius: 8px;
    border: 1px solid var(--border); background: #fff; color: var(--text); transition: .15s;
}
.io-type i { font-size: 20px; color: var(--primary); width: 24px; text-align: center; flex-shrink: 0; }
.io-type b { display: block; font-size: 12.5px; }
.io-type small { display: block; font-size: 10.5px; color: var(--muted); line-height: 1.25; }
.io-type:hover:not(:disabled) { border-color: #9fb6da; }
.io-type.active { border-color: var(--primary); background: #eef4ff; box-shadow: 0 0 0 1px var(--primary) inset; }
.io-type:disabled { opacity: .5; cursor: not-allowed; }

/* Mapare */
.io-mapping .card-head { align-items: flex-start; }
.io-map-empty { text-align: center; color: var(--muted); padding: 18px 10px; font-size: 12.5px; }
.io-map-empty > i { font-size: 30px; color: #c3cdda; }
.io-fields { text-align: left; margin: 10px auto 0; max-width: 460px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.io-fields span { background: #f2f5f9; border-radius: 6px; padding: 3px 8px; font-size: 11.5px; color: #3a4658; }
.io-fields span.req { background: #fff1e6; color: #b54708; font-weight: 600; }
.io-map-table td { padding: 5px 6px; vertical-align: middle; }
.io-map-table .col { border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; background: #f8fafc; font-size: 12px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.io-map-table .col small { display: block; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.io-map-table .arrow { color: #7b879a; text-align: center; width: 24px; }
.io-map-table .select { height: 32px; font-size: 12px; }
.io-map-table .st { white-space: nowrap; font-size: 12px; }
.io-map-table .st.ok { color: var(--green); } .io-map-table .st.opt { color: var(--muted); } .io-map-table .st.skip { color: #9aa6b8; }
.io-map-table .st.req { color: #b54708; }
.io-map-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.io-missing { color: #b42318; font-size: 12px; }
.io-missing b { font-weight: 700; }
.io-map-scroll { max-height: 440px; overflow-y: auto; }

/* Istoric */
.io-hist-table td { white-space: nowrap; }
.io-hist-table .file { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }

/* Coloana dreaptă */
.io-right { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.io-prev-table { font-size: 11.5px; }
.io-prev-table td { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.io-validation { margin-top: 10px; font-size: 12.5px; }
.io-validation .sum { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.io-validation ul { margin: 0; padding: 0; list-style: none; max-height: 130px; overflow-y: auto; border: 1px solid #fde2e1; background: #fff8f8; border-radius: 8px; }
.io-validation li { padding: 4px 10px; font-size: 12px; border-bottom: 1px solid #fde2e1; }
.io-validation li:last-child { border-bottom: 0; }
.io-validation li b { color: #b42318; margin-right: 6px; }
.io-confirm { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.io-result { border-radius: 8px; padding: 10px 12px; font-size: 13px; margin-top: 10px; }
.io-result.ok { background: var(--green-soft); color: #11662f; }
.io-result.warn { background: #fff4e0; color: #8a4b00; }

.io-export-grid { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; }
.io-export-tabs { flex-wrap: wrap; margin-top: 12px; }
.io-export-tabs button { padding: 5px 10px; }
.io-export-filters { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 6px; margin-top: 10px; }
.io-format { border-left: 1px solid var(--border); padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.io-format h4 { font-size: 13px; margin: 0 0 4px; }
.io-format .btn { margin-top: 8px; }
.io-format small { font-size: 10.5px; line-height: 1.3; }

.io-templates { min-width: 280px; }
.io-tpl-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; font-size: 12.5px; border-radius: 6px; }
.io-tpl-row:hover { background: #f5f7fb; }
.io-tpl-row span { flex: 1; }
.io-tpl-row i { width: 18px; color: var(--primary); }
.io-tpl-row a { font-size: 12px; font-weight: 600; }

@media (max-width: 1500px) { .io-types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1150px) {
    .io-grid { grid-template-columns: minmax(0, 1fr); }
    .io-export-grid { grid-template-columns: minmax(0, 1fr); }
    .io-format { border-left: 0; padding-left: 0; }
}
@media (max-width: 700px) { .io-steps li { font-size: 0; } .io-steps li span { font-size: 11.5px; } .io-export-filters { grid-template-columns: 1fr; } }

.io-map-scroll { max-height: 318px; overflow-y: auto; border-bottom: 1px solid var(--border); }
.io-map-scroll thead th { position: sticky; top: 0; z-index: 1; }
.io-kpis .al-kpi small { white-space: normal; line-height: 1.3; }

