/* Administrator data preparation. Entry controls and saved captures are not
   restyled here. */
.ds-page{padding-top:30px}
.ds-page>.page-heading{margin-bottom:20px}
.ds-tabs{display:flex;align-items:stretch;gap:24px;border-bottom:1px solid var(--line);margin-bottom:24px}
.ds-tabs>button{position:relative;display:block;padding:8px 0 13px;color:#565961;background:transparent;font-size:15px;font-weight:500;line-height:1.6;text-align:left;border-bottom:2px solid transparent}
.ds-tabs>button.active{color:var(--red);border-bottom-color:var(--red)}
.ds-tabs>button:hover{color:var(--red)}
.ds-page :focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:3px}
.ds-page .ds-card{padding:20px;margin-bottom:20px;min-width:0;background:#fff;border:1px solid var(--line);border-radius:6px}
.ds-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.ds-section-heading h2{font-size:17px;font-weight:600;line-height:1.6;margin:0;color:var(--ink)}
.ds-page .btn{font-size:14px;min-height:40px;padding:8px 14px;line-height:1.5;white-space:nowrap}
.ds-page .btn-text{font-size:13px;line-height:1.6;min-height:30px;text-decoration:underline;text-underline-offset:3px;white-space:nowrap;padding:3px 0}
.ds-page .btn:disabled,.ds-page .btn-text:disabled{opacity:.5;cursor:default}
.ds-page .field{font-size:13px;line-height:1.6;gap:6px;min-width:0;margin:0}
.ds-page .field>input,.ds-page .field>select{min-width:0;width:100%;box-sizing:border-box;min-height:42px;font-size:14px;line-height:1.5;background:#fff;border-color:#a4a6ab}
.ds-page .field>input[readonly],.ds-page .field>select:disabled{background:#f7f7f6;color:#565961}
.ds-upload-grid{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1fr);gap:18px;max-width:820px}
.ds-file-picker{grid-column:1/-1;display:flex;align-items:flex-start;flex-direction:column;gap:10px;padding:18px;border:1px dashed #a4a6ab;border-radius:5px;background:#fcfcfb}
.ds-file-picker>input{font:inherit;font-size:14px;color:#45464d;max-width:100%}
.ds-file-picker>input::file-selector-button{padding:7px 11px;background:white;border:1px solid #aaa9a6;border-radius:4px;font:inherit;font-size:13px;margin-right:12px;color:#33363d;cursor:pointer}
.ds-help{font-size:13px;line-height:1.65;color:#565961;margin:0}
.ds-source-help{font-size:13px;line-height:1.65;color:#565961;margin-top:18px}
.ds-source-help summary{display:list-item;cursor:pointer;width:fit-content;text-decoration:underline;text-underline-offset:3px}
.ds-source-help p{max-width:850px;margin:9px 0 0}
.ds-source-help ul{padding-left:20px;margin:8px 0 0}
.ds-source-help li+li{margin-top:4px}
.ds-format-columns{display:block;width:fit-content;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;white-space:normal;border:1px solid var(--line);border-radius:4px;padding:8px 10px;margin-top:8px;background:#f7f7f6;font-size:12px;line-height:1.7;color:#41454b}
.ds-source-help p code,.ds-source-help li code{font-size:12px;overflow-wrap:anywhere;white-space:normal}
.ds-warning-details{color:#795820}
.ds-warning-details strong{font-weight:600;font-variant-numeric:tabular-nums}
.ds-progress{margin-top:20px;max-width:820px;display:grid;gap:7px;font-size:13px;color:#565961}
.ds-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ds-progress strong{font-weight:500;color:var(--ink)}
.ds-progress progress{display:block;width:100%;height:9px;accent-color:var(--red)}
.ds-progress>.btn-text{justify-self:start;margin-top:3px}
.ds-table-wrap{width:100%;overflow-x:auto}
.ds-table{border-collapse:collapse;width:100%;text-align:left;font-size:13px;line-height:1.6}
.ds-table th{background:#f7f7f6;color:#45464d;font-weight:600;font-size:13px;text-align:left;white-space:nowrap}
.ds-table th,.ds-table td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:middle}
.ds-table td{color:#3e4148;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}
.ds-table tbody tr:last-child td{border-bottom:0}
.ds-table tbody tr:hover{background:#fcfcfb}
.ds-loaded .ds-section-heading{margin-bottom:12px}
.ds-dataset-table{min-width:850px}
.ds-status{font-size:13px;line-height:1.5;color:#565961;white-space:nowrap}
.ds-status-active{color:#296345}
.ds-status-error{color:#a32036}
.ds-empty{padding:28px 12px;text-align:center;font-size:14px;color:#565961;line-height:1.6}
.ds-message{border:1px solid var(--line);border-radius:5px;font-size:14px;line-height:1.6;padding:12px 15px;margin-bottom:18px}
.ds-message-error{border-color:#d4a1aa;background:#fff7f8;color:#8c2035}
.ds-message-success{border-color:#b3c9ba;background:#f8fcf9;color:#296345}
.ds-check-list{display:grid;gap:12px}
.ds-file-result{padding:15px;border:1px solid var(--line);border-radius:5px}
.ds-file-error{border-color:#d4a1aa;background:#fffafb}
.ds-file-result-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ds-file-result-heading h3{font-size:14px;font-weight:600;margin:0;line-height:1.6;overflow-wrap:anywhere}
.ds-file-scope{font-size:13px;line-height:1.6;color:#565961;margin:4px 0 0}
.ds-file-counts{display:flex;align-items:flex-start;gap:20px 40px;flex-wrap:wrap;margin:16px 0 0}
.ds-file-counts>div{min-width:90px}
.ds-file-counts dt{font-size:13px;line-height:1.5;color:#565961}
.ds-file-counts dd{font-size:19px;font-weight:600;line-height:1.5;margin:3px 0 0;color:var(--ink);font-variant-numeric:tabular-nums}
.ds-errors{font-size:13px;line-height:1.7;color:#9a2136;margin:12px 0 0;padding-left:20px}
.ds-errors li+li{margin-top:4px}
.ds-warning{font-size:13px;line-height:1.65;color:#795820;margin:12px 0 0}
.ds-panel-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.ds-panel-footer>p{font-size:13px;line-height:1.65;color:#565961;margin:0;max-width:800px}
.ds-panel-footer>.btn{flex:none}

.ds-import-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.ds-prefill-context{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:14px 18px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.ds-prefill-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px}
.ds-prefill-toolbar h2{font-size:17px;font-weight:600;line-height:1.6;margin:0;flex:none}
.ds-prefill-list-controls{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0;flex-wrap:wrap}
.ds-prefill-search{display:flex;align-items:center;gap:8px;min-height:40px;border:1px solid #a4a6ab;border-radius:4px;padding:0 10px;background:#fff;min-width:180px;max-width:280px;box-sizing:border-box}
.ds-prefill-search>.icon{width:16px;height:16px;color:#64676f;flex:none}
.ds-prefill-search input{min-width:0;width:100%;border:0;background:transparent;box-shadow:none;padding:8px 0;font-size:14px;line-height:1.5;outline:none}
.ds-prefill-search:focus-within{outline:2px solid var(--red);outline-offset:2px}
.ds-prefill-search input:focus-visible{outline:0}
.ds-include-inactive{display:flex;align-items:center;gap:7px;font-size:13px;line-height:1.6;color:#45464d;white-space:nowrap;cursor:pointer}
.ds-include-inactive input{width:16px;height:16px;margin:0;accent-color:var(--red)}
.ds-prefill-table{min-width:660px;table-layout:fixed}
.ds-prefill-table th:nth-child(1),.ds-prefill-table th:nth-child(2){width:31%}
.ds-prefill-table th:nth-child(3){width:16%}
.ds-prefill-table th:nth-child(4){width:22%}
.ds-prefill-table td:nth-child(1),.ds-prefill-table td:nth-child(2){max-width:none}
.ds-prefill-table .ds-row-actions{overflow:visible;max-width:none}
.ds-row-actions .btn-text+.btn-text{margin-left:14px}
.ds-prefill-editor{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:16px 20px}
.ds-edit-panel,.ds-deactivate-confirm{padding:18px;margin:0 0 18px;border:1px solid #d5d5d3;border-left:3px solid var(--red);border-radius:4px;background:#fcfcfb}
.ds-edit-panel h3,.ds-deactivate-confirm h3,.ds-import-preview h3{font-size:15px;font-weight:600;line-height:1.6;margin:0 0 12px;color:var(--ink)}
.ds-editor-context{display:flex;gap:10px 24px;flex-wrap:wrap;margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--line)}
.ds-editor-context>div{display:flex;align-items:baseline;gap:6px;font-size:13px;line-height:1.6;min-width:0}
.ds-editor-context dt{color:#565961}
.ds-editor-context dd{margin:0;color:var(--ink);overflow-wrap:anywhere}
.ds-editor-actions{display:flex;align-items:center;gap:10px;margin-top:16px}
.ds-deactivate-confirm p{font-size:14px;line-height:1.7;margin:0;color:#45464d;max-width:860px}
.ds-context-empty{padding:24px 12px 28px;text-align:center;font-size:14px;line-height:1.7;color:#45464d}
.ds-context-empty>p{margin:0}
.ds-context-empty>p+p{margin:8px auto 0;max-width:650px}
.ds-context-empty>.btn,.ds-context-empty>.btn-text{margin-top:12px}
.ds-context-notice{border:1px solid #d5c9b0;background:#fffdf7;border-radius:4px;font-size:13px;color:#655129;padding:10px 12px;margin-bottom:16px;line-height:1.7}
.ds-prefill-import{border-top:1px solid var(--line);padding-top:14px;margin-top:16px;font-size:13px;line-height:1.7;color:#565961}
.ds-prefill-import>summary{display:list-item;width:fit-content;cursor:pointer;text-decoration:underline;text-underline-offset:3px;min-height:28px}
.ds-import-tools{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:12px}
.ds-prefill-guide{margin-top:12px}
.ds-import-preview{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.ds-import-preview .ds-section-heading{margin-bottom:8px}
.ds-import-preview .ds-section-heading h3{margin:0}
@media(max-width:900px){
  .ds-page{padding-top:24px}
  .ds-section-heading{align-items:flex-start;flex-wrap:wrap;gap:12px}
  .ds-prefill-context{grid-template-columns:repeat(2,minmax(180px,1fr))}
  .ds-prefill-toolbar{align-items:flex-start;flex-direction:column;gap:12px}
  .ds-prefill-list-controls{justify-content:flex-start}
  .ds-tabs{gap:20px}
  .ds-tabs>button{font-size:14px}
}
@media(max-width:600px){
  .ds-page .ds-card{padding:16px}
  .ds-tabs{gap:18px;margin-bottom:18px}
  .ds-tabs>button{font-size:13px}
  .ds-upload-grid,.ds-prefill-editor,.ds-prefill-context{grid-template-columns:1fr}
  .ds-prefill-list-controls{width:100%;gap:12px}
  .ds-prefill-search{max-width:none;flex:1 1 100%}
  .ds-edit-panel,.ds-deactivate-confirm{padding:14px}
  .ds-editor-context>div{width:100%}
  .ds-section-heading h2{font-size:16px}
  .ds-file-result-heading{align-items:flex-start;flex-direction:column;gap:5px}
  .ds-file-counts{gap:14px 24px}
  .ds-file-counts>div{min-width:calc(50% - 24px)}
  .ds-panel-footer{align-items:stretch;flex-direction:column;gap:14px}
  .ds-panel-footer>.btn{align-self:flex-end}
  .ds-page .btn{font-size:13px}
}
@media(any-pointer:coarse){.ds-page .btn-text{min-height:44px}}
@media print{.ds-page{display:none}}
