/* Settings > Export. All styling here (tailwind.css is precompiled). Bump ?v= by hand only if the server rewrite is removed. */
[class*="export-"].hidden{display:none!important}
#tab-settings-export{--ex-blue:#2563eb;--ex-text:#0f172a;--ex-muted:#475569;--ex-line:#cbd5e1}
/* Per category: --accent colours the header bar, the checkboxes and the status dot. Text never uses the accent colour. */
.export-cat,.export-status{--accent:#64748b}
.export-cat[data-dataset="universities"],.export-status[data-dataset="universities"]{--accent:#2563eb}
.export-status[data-dataset="programs"],.export-field[data-item="programs"]{--accent:#0d9488}
.export-status[data-dataset="scholarships"],.export-field[data-item="scholarships"]{--accent:#d97706}
.export-cat[data-dataset="accommodation"],.export-status[data-dataset="accommodation"]{--accent:#e11d48}
.export-cat[data-dataset="study_tours"],.export-status[data-dataset="study_tours"]{--accent:#7c3aed}
.export-cat:is([data-dataset="tuition"],[data-dataset="intakes"],[data-dataset="rankings"],[data-dataset="entry_requirements"],[data-dataset="campus_locations"],[data-dataset="selling_points"],[data-dataset="commissions"],[data-dataset="campus_profile"]),
.export-status:is([data-dataset="tuition"],[data-dataset="intakes"],[data-dataset="rankings"],[data-dataset="entry_requirements"],[data-dataset="campus_locations"],[data-dataset="selling_points"],[data-dataset="commissions"],[data-dataset="campus_profile"]){--accent:#4f46e5}
.export-cat[data-dataset="contacts"],.export-status[data-dataset="contacts"]{--accent:#0891b2}

.export-wrap{max-width:1040px}
.export-head{margin-bottom:14px}
.export-title{font-size:18px;font-weight:600;color:var(--ex-text);margin:0}
.export-sub{font-size:13px;color:var(--ex-muted);margin:2px 0 0}
.export-section{margin-top:18px}
.export-step{font-size:14px;font-weight:600;color:var(--ex-text);margin:0 0 6px}
.export-loading{font-size:13px;color:var(--ex-muted);padding:24px 0}
.export-error{display:flex;flex-direction:column;align-items:flex-start;gap:12px;background:#fef2f2;border:1px solid #fecaca;border-radius:14px;padding:16px 18px}
.export-error-text{margin:0;font-size:14px;color:#7f1d1d}

/* one compact section per category: header with a 4px accent bar, then a flowing grid of checkbox rows */
.export-cat{margin:0 0 12px}
.export-cat-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px;margin:0 0 2px;padding:2px 0 2px 10px}
.export-cat-dot{flex:none;align-self:center;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.export-cat-title{font-size:14px;font-weight:700;color:var(--ex-text);margin:0;line-height:1.4}
.export-cat-count{font-size:12.5px;color:var(--ex-muted);font-variant-numeric:tabular-nums}
.export-cat-files{padding:0 8px;border-radius:10px;background:#f1f5f9;border:1px solid #cbd5e1;color:var(--ex-text);font-size:12px;font-weight:600;line-height:1.6}
.export-cat-hint{display:inline-block;margin:2px 0 4px 14px;padding:1px 8px;border-radius:8px;background:#fef3c7;border:1px solid #fde68a;color:#78350f;font-size:12px;font-weight:600;line-height:1.5}
.export-cat-note{margin:2px 0 0 14px;padding:1px 8px;border-radius:8px;background:#fef3c7;border:1px solid #fde68a;color:#78350f;font-size:12px;font-weight:600;line-height:1.5;width:fit-content;max-width:calc(100% - 14px)}
.export-empty{margin:0;padding:4px 14px;font-size:13px;color:var(--ex-muted)}
.export-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:0 12px;padding-left:10px}
.export-field{display:flex;align-items:flex-start;gap:8px;min-height:32px;padding:6px 6px;border-radius:6px;cursor:pointer;min-width:0;transition:background-color .12s ease}
.export-field:hover{background:#f1f5f9}
.export-field:has(input:focus-visible){box-shadow:0 0 0 2px #fff,0 0 0 4px #1d4ed8}
.export-field:has(input:disabled){cursor:default}
.export-field:has(input:disabled):hover{background:transparent}
.export-field input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent);cursor:pointer}
.export-field input:disabled{cursor:default}
.export-field-text{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px;min-width:0;font-size:14px;line-height:20px;color:var(--ex-text)}
.export-field-name{color:var(--ex-text);overflow-wrap:anywhere}
.export-fill{color:var(--ex-muted);font-size:12.5px;font-variant-numeric:tabular-nums}
.export-tag,.export-tag-warn{padding:0 8px;border-radius:10px;font-size:11.5px;font-weight:600;line-height:1.6}
.export-tag{background:#f1f5f9;border:1px solid #cbd5e1;color:#334155}
.export-tag-warn{background:#fef3c7;border:1px solid #fde68a;color:#78350f}

/* format: three native radios on one row */
.export-formats{display:flex;flex-wrap:wrap;gap:4px 28px}
.export-format{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:4px 6px;border-radius:6px;cursor:pointer;transition:background-color .12s ease}
.export-format:hover{background:#f1f5f9}
.export-format:has(input:focus-visible){box-shadow:0 0 0 2px #fff,0 0 0 4px #1d4ed8}
.export-format:has(input:disabled){cursor:default}
.export-format input{flex:none;width:18px;height:18px;margin:1px 0 0;accent-color:var(--ex-blue);cursor:pointer}
.export-format input:disabled{cursor:default}
.export-format-text{display:flex;flex-direction:column;min-width:0}
.export-format-name{font-size:14px;font-weight:600;color:var(--ex-text);line-height:20px}
.export-format-desc{font-size:12.5px;color:var(--ex-muted);line-height:1.4}

.export-actionbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:10px 16px}
.export-summary{margin:0;font-size:14px;font-weight:600;color:#334155;font-variant-numeric:tabular-nums}
.export-btn{border:0;border-radius:8px;background:var(--ex-blue);color:#fff;padding:10px 22px;min-height:40px;font-size:14px;font-weight:600;cursor:pointer;transition:background-color .15s ease}
.export-btn:hover{background:#1d4ed8}
.export-btn:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}
.export-btn:disabled{background:#e2e8f0;color:#475569;cursor:not-allowed}
.export-warn{margin:8px 0 0;padding:8px 12px;background:#fef2f2;border:1px solid #fecaca;border-radius:8px;color:#7f1d1d;font-size:13px;font-weight:600}
.export-hint{margin:8px 2px 0;font-size:12.5px;color:#475569}
.export-note{margin:12px 0 0;padding:10px 14px;font-size:13px;line-height:1.5;color:#334155;background:#e2e8f0;border-radius:8px}

.export-list{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:8px}
.export-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:8px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:10px}
.export-dot{flex:none;width:10px;height:10px;border-radius:50%;background:var(--accent)}
.export-status-name{font-size:14px;font-weight:600;color:var(--ex-text)}
.export-chip{display:inline-flex;align-items:center;gap:6px;margin-left:auto;max-width:100%;padding:3px 10px;border-radius:12px;font-size:12.5px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.export-chip svg{flex:none}
.export-chip.is-wait{background:#f1f5f9;color:#475569}
.export-chip.is-run{background:#dbeafe;color:#1e3a8a}
.export-chip.is-done{background:#dcfce7;color:#14532d}
.export-chip.is-fail{background:#fee2e2;color:#7f1d1d}
.export-track{flex:1 0 100%;height:4px;border-radius:2px;background:#dbeafe;overflow:hidden}
.export-progress-bar{display:block;width:35%;height:100%;border-radius:2px;background:var(--ex-blue);animation:export-slide 1.2s ease-in-out infinite}
@keyframes export-slide{from{transform:translateX(-100%)}to{transform:translateX(300%)}}

@media (max-width:640px){
  .export-fields{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));padding-left:6px}
  .export-formats{flex-direction:column}
  .export-actionbar{flex-direction:column;align-items:stretch}
  .export-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .export-field,.export-format,.export-btn{transition:none!important}
  .export-progress-bar{animation:none;width:100%;opacity:.55}
}
