/* DBF viewer: drop zone, table grid and export panel. Uses the site tokens from /site.css. */
.dv-section{padding-top:44px}
.dv-section [hidden]{display:none!important}
.dv-drop{border:2px dashed #93b4ed;border-radius:14px;background:var(--sky);padding:32px;text-align:center}
.dv-drop.over{border-color:var(--blue);background:#dbeafe}
.dv-drop-title{font-size:20px;margin:0 0 6px}
.dv-drop .actions{justify-content:center;margin-top:18px}
.dv-drop label.button{cursor:pointer}
.dv-drop input[type=file]:focus-visible+.button,.dv-drop label.button:focus-within{outline:3px solid var(--blue-l);outline-offset:2px}
.dv-sample-note{max-width:640px;margin:16px auto 0}
.dv-status{margin:16px 0 0;font-size:16px;min-height:1.5em}
.dv-status.ok{color:#166534}
.dv-status.error{color:#991b1b;font-weight:600}
#dv-app{margin-top:28px}
.dv-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.dv-tab{font:600 15px var(--sans);padding:8px 14px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);cursor:pointer}
.dv-tab[aria-selected=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.dv-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}
.dv-main{min-width:0}
.dv-summary{display:grid;grid-template-columns:max-content 1fr;gap:6px 18px;margin:0 0 18px;font-size:16px}
.dv-summary dt{color:var(--muted)}
.dv-summary dd{margin:0;overflow-wrap:anywhere}
.dv-fields{border:1px solid var(--line);border-radius:var(--r);padding:12px 16px;margin-bottom:18px;background:#fff}
.dv-fields summary{cursor:pointer;font-weight:600}
.dv-fields .dv-scroll{margin-top:12px}
.dv-note{border:1px solid #fca5a5;background:#fef2f2;border-radius:var(--r);padding:14px 18px;margin-bottom:18px;font-size:16px}
.dv-note p{margin:0 0 8px}
.dv-note ul{margin:0 0 8px;padding-left:20px}
.dv-grid-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:10px}
.dv-check{display:flex;gap:8px;align-items:center;font-size:15px;cursor:pointer}
.dv-check input{width:18px;height:18px}
.dv-pager{display:flex;gap:10px;align-items:center;font-size:15px}
.button.dv-small{min-height:38px;padding:7px 14px;font-size:15px}
.button:disabled{opacity:.45;cursor:not-allowed}
.dv-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:8px;background:#fff}
.dv-scroll:focus-visible{outline:3px solid var(--blue-l);outline-offset:2px}
.dv-grid{max-height:640px}
.dv-table{border-collapse:collapse;font:14px/1.4 var(--mono);width:max-content;min-width:100%}
.dv-table th,.dv-table td{padding:6px 10px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap;max-width:420px;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
.dv-table thead th{position:sticky;top:0;background:var(--pale);font:600 13px var(--sans);color:var(--ink);z-index:1}
.dv-table tbody th{font-weight:600;color:var(--muted);background:#fff;position:sticky;left:0}
.dv-table td.dv-num{text-align:right;font-variant-numeric:tabular-nums}
.dv-table td.dv-null{color:#94a3b8}
.dv-table td.dv-bad{color:#991b1b;font-weight:600;background:#fef2f2}
.dv-table tr.dv-deleted td,.dv-table tr.dv-deleted th{color:#94a3b8;text-decoration:line-through}
.dv-export{position:sticky;top:96px;background:var(--night);color:#e2e8f0;border-radius:14px;padding:24px}
.dv-export h2{color:#fff;font-size:22px;margin-bottom:14px}
.dv-export .field{margin-bottom:14px}
.dv-export .field label{color:#fff}
.dv-export select{width:100%;font:16px var(--sans);padding:10px 12px;border:1px solid #64748b;border-radius:6px;min-height:46px;color:var(--ink);background:#fff}
.dv-export .hint{color:#aab6c8}
.dv-export .dv-check{color:#e2e8f0;margin:4px 0 16px}
.dv-export .small{color:#aab6c8;margin:14px 0 0}
.dv-export-status{font-size:15px;color:#fff;margin:12px 0 0;min-height:1.4em}
@media (max-width:960px){.dv-layout{grid-template-columns:1fr}.dv-export{position:static}}
@media (max-width:560px){.dv-drop{padding:22px 16px}.dv-summary{grid-template-columns:1fr;gap:0}.dv-summary dd{margin-bottom:8px}}
