/* Holdings uses the intake app's shared UI; these rules only adapt its own controls. */
body[data-records-ui="holdings"] .shell{padding-bottom:32px!important}
body[data-records-ui="holdings"] .brand>div:last-child{min-width:0}
body[data-records-ui="holdings"] .intro{background:var(--bg-card);padding:0;overflow:hidden}
body[data-records-ui="holdings"] .intro .intro-body{padding:16px 17px}
body[data-records-ui="holdings"] .intro p{margin:0 0 14px;color:var(--text-sub);font-size:14px;line-height:1.6}
body[data-records-ui="holdings"] .upload{align-items:stretch}
body[data-records-ui="holdings"] .management-upload-card{cursor:pointer;flex:1;min-width:0;padding:18px!important;min-height:142px;display:flex!important;flex-direction:column;justify-content:center;gap:12px!important;border-radius:12px!important}
body[data-records-ui="holdings"] .management-upload-eyebrow{font-size:13px;font-weight:900;color:var(--theme-tint-text)}
body[data-records-ui="holdings"] .records-upload-face{display:flex;align-items:center;gap:12px;min-width:0}
body[data-records-ui="holdings"] .records-upload-icon{display:grid;place-items:center;flex:0 0 34px;height:36px;border-radius:9px;background:var(--theme-tint-bg);font-size:18px}
body[data-records-ui="holdings"] .records-upload-description{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
body[data-records-ui="holdings"] .records-upload-description strong{font-size:17px;color:var(--text-title);line-height:1.35}
body[data-records-ui="holdings"] .records-upload-description small{font-size:13px;color:var(--text-sub);line-height:1.45;word-break:keep-all}
body[data-records-ui="holdings"] .records-upload-dot{width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:var(--border-input)}
body[data-records-ui="holdings"] .records-file-meta{margin-left:46px;font-size:13px!important;overflow-wrap:anywhere}
body[data-records-ui="holdings"] .management-upload-card:hover,body[data-records-ui="holdings"] .management-upload-card.dragover{background:var(--theme-tint-bg)!important;border-color:var(--theme-primary)!important}
body[data-records-ui="holdings"] .upload-loaded .records-upload-dot{background:var(--status-done)}
body[data-records-ui="holdings"] .format-check{padding:12px 14px;border:var(--line-width) solid var(--border-card);border-radius:10px;background:var(--bg-card)}
body[data-records-ui="holdings"] .format-check label{font-size:14px;font-weight:700}
body[data-records-ui="holdings"] .format-check select{min-width:230px}
body[data-records-ui="holdings"] .format-next{margin-left:auto;min-width:96px}
body[data-records-ui="holdings"] .holdings-status{margin:0 0 12px;padding:0!important;border:0!important;background:transparent!important}
body[data-records-ui="holdings"] .state{margin:0;color:var(--text-sub)}
body[data-records-ui="holdings"] .holdings-filebar{border:var(--line-width) solid var(--border-card);border-radius:13px;padding:14px 16px!important;align-items:center}
body[data-records-ui="holdings"] .holdings-file-info{flex:1;min-width:0}
body[data-records-ui="holdings"] .file{font-size:17px;overflow-wrap:anywhere;color:var(--text-title)}
body[data-records-ui="holdings"] .regioninfo{color:var(--text-sub)}
body[data-records-ui="holdings"] .holdings-file-actions{display:flex;gap:8px;flex-wrap:wrap}
body[data-records-ui="holdings"] .workbench>.card{min-width:0}
/* Result counts may change on every keystroke; only these panes scroll. */
body[data-records-ui="holdings"] .tablewrap{height:clamp(260px,52vh,610px);max-height:610px;overflow:auto;overflow-anchor:none}
body[data-records-ui="holdings"] .boxlist{height:clamp(260px,52vh,470px);max-height:470px;overflow:auto;overflow-anchor:none}
body[data-records-ui="holdings"] .ledger-doc-results.has-index{display:grid;align-content:start;height:clamp(140px,25vh,280px);overflow:auto;overflow-anchor:none}
body[data-records-ui="holdings"] .ledger-doc-status{min-height:64px}
body[data-records-ui="holdings"] .box-pinned{background:var(--theme-tint-bg);border:1px solid var(--theme-tint-border);border-radius:9px;padding:6px;margin:6px 0 12px}
body[data-records-ui="holdings"] .boxlist h3{margin:6px;font-size:13px;color:var(--text-label)}
body[data-records-ui="holdings"] .box-pinned .small{padding:0 6px 6px}
body[data-records-ui="holdings"] .stat .k{color:var(--text-sub)!important}
body[data-records-ui="holdings"] .stat .v{display:inline-block}
body[data-records-ui="holdings"] .stat .u{color:var(--text-sub)!important}
body[data-records-ui="holdings"] .filters input[type="search"]{min-width:230px;min-height:40px;border-radius:9px;padding:9px 11px;font-size:14px;color:var(--text-body)}
body[data-records-ui="holdings"] .filters select{min-width:0;flex:1 1 130px}
body[data-records-ui="holdings"] .review .btn{min-height:32px!important;padding:5px 9px!important;font-size:13px!important;line-height:20px}
body[data-records-ui="holdings"] .boxlist{padding:6px 14px}
body[data-records-ui="holdings"] .boxrow:hover{background:var(--theme-tint-bg)}
body[data-records-ui="holdings"] .boxtext b{color:var(--text-title)}
body[data-records-ui="holdings"] .boxtext small,body[data-records-ui="holdings"] .small{color:var(--text-sub)}
body[data-records-ui="holdings"] .cardhead{flex-wrap:wrap}
body[data-records-ui="holdings"] .cardhead span{color:var(--text-sub)}
body[data-records-ui="holdings"] .boxactions{gap:8px;padding:14px 16px}
body[data-records-ui="holdings"] .catalog-settings{margin:0;padding-top:12px;border-top:1px solid var(--line-row)}
body[data-records-ui="holdings"] .catalog-settings summary{margin:0 16px 12px;min-height:24px;font-size:14px;color:var(--text-label)}
body[data-records-ui="holdings"] .catalog-settings .boxactions{border:0;padding-top:0}
body[data-records-ui="holdings"] .catalog-settings label{font-size:14px;color:var(--text-label)}
body[data-records-ui="holdings"] .holdings-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
body[data-records-ui="holdings"] .holdings-topbar .mode-tabs{margin-bottom:0!important}
body[data-records-ui="holdings"] .holdings-catalog-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;position:relative;min-width:0}
body[data-records-ui="holdings"] .holdings-catalog-tools[hidden]{display:none!important}
body[data-records-ui="holdings"] .holdings-catalog-tools .catalog-settings{margin:0;padding:0;border:0;flex:none}
body[data-records-ui="holdings"] .holdings-catalog-tools summary{margin:0;padding:9px 12px;min-height:40px;border:1px solid var(--border-card);border-radius:9px;background:var(--bg-card);white-space:nowrap}
body[data-records-ui="holdings"] .holdings-catalog-tools .catalog-settings>.boxactions{position:absolute;top:calc(100% + 8px);right:0;z-index:15;width:min(520px,calc(100vw - 28px));padding:16px;border:1px solid var(--border-card);border-radius:12px;background:var(--bg-card);box-shadow:var(--dd-shadow)}
body[data-records-ui="holdings"] .note{border-color:var(--border-card);background:var(--bg-card);color:var(--text-sub)}
body[data-records-ui="holdings"] :is(button,a,[role="button"],summary,input,select):focus-visible{outline:3px solid color-mix(in srgb,var(--theme-primary) 22%,transparent)!important;outline-offset:2px}
body[data-records-ui="holdings"] .btn:disabled{opacity:1!important;color:var(--text-sub)!important;background:var(--bg-page)!important;border-color:var(--border-card)!important;box-shadow:none!important}
@media(max-width:1000px){body[data-records-ui="holdings"] .topin{flex-wrap:wrap}body[data-records-ui="holdings"] .top-actions{margin-left:auto}}
@media(max-width:1120px){body[data-records-ui="holdings"] .holdings-topbar{flex-wrap:wrap}body[data-records-ui="holdings"] .holdings-catalog-tools{margin-left:auto}}
@media(max-width:650px){
 body[data-records-ui="holdings"] .holdings-topbar,body[data-records-ui="holdings"] .holdings-catalog-tools{width:100%}
 body[data-records-ui="holdings"] .holdings-catalog-tools #catalog{flex:1;white-space:normal}
 body[data-records-ui="holdings"] .workbench .cardhead>span{flex-basis:100%}
 body[data-records-ui="holdings"] .mode-tabs{flex-direction:column}
 body[data-records-ui="holdings"] .topin{gap:10px!important}
 body[data-records-ui="holdings"] .brand{align-items:flex-start!important}
 body[data-records-ui="holdings"] .brand-kicker{overflow-wrap:anywhere}
 body[data-records-ui="holdings"] .brand h1{overflow-wrap:anywhere}
 body[data-records-ui="holdings"] .logo.icon-logo{width:48px!important;height:48px!important;flex-basis:48px!important}
 body[data-records-ui="holdings"] .filters input[type="search"]{width:100%;min-width:0;flex-basis:100%}
 body[data-records-ui="holdings"] .format-check select{width:100%;min-width:0}
 body[data-records-ui="holdings"] .format-next{width:100%}
 body[data-records-ui="holdings"] .holdings-file-actions{width:100%}
 body[data-records-ui="holdings"] .holdings-file-actions .btn{flex:1}
 body[data-records-ui="holdings"] .boxactions .btn{white-space:normal;max-width:100%}
}

/* Compact results keep direct folder/box navigation without duplicate expansion. */
body[data-records-ui="holdings"] .ledger-doc-results{gap:0}
body[data-records-ui="holdings"] .ledger-doc-compact{padding:0;border:0;border-bottom:1px solid var(--line-row);border-radius:0;min-width:0}
body[data-records-ui="holdings"] .ledger-doc-line{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.85fr) minmax(0,1.2fr) minmax(86px,.6fr);align-items:center;gap:12px;min-height:44px;padding:9px 4px;font-size:13px;line-height:24px}
body[data-records-ui="holdings"] .ledger-doc-line:hover{background:var(--theme-tint-bg)}
body[data-records-ui="holdings"] .ledger-doc-name{font-weight:700;color:var(--text-title)}
body[data-records-ui="holdings"] .ledger-doc-label{font-size:12px;font-weight:400;color:var(--text-sub);margin-right:5px}
body[data-records-ui="holdings"] .ledger-doc-compact .ledger-doc-warning{margin-top:0}

body[data-records-ui="holdings"] .ledger-doc-jump{font:inherit;color:var(--theme-primary);border:0;background:transparent;box-shadow:none;border-radius:3px;padding:0;text-align:left;min-width:0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--theme-tint-border);text-underline-offset:3px}
body[data-records-ui="holdings"] .ledger-doc-jump:hover{text-decoration-color:currentColor}
body[data-records-ui="holdings"] .location-target,body[data-records-ui="holdings"] tr.location-target td{background:var(--theme-tint-bg)!important}
body[data-records-ui="holdings"] .location-target{outline:2px solid var(--theme-primary);outline-offset:-2px;scroll-margin:140px 4px}
body[data-records-ui="holdings"] .location-tag{display:inline-block;padding:0 5px;margin-right:6px;border-radius:4px;background:var(--theme-primary);color:var(--theme-on-primary);font-size:12px;white-space:nowrap}
body[data-records-ui="holdings"] .box-located{padding:6px;margin:6px 0 12px}

body[data-records-ui="holdings"] .ledger-doc-line>:is(span,button){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:650px){body[data-records-ui="holdings"] .ledger-doc-line{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:4px 8px}body[data-records-ui="holdings"] .ledger-doc-box{grid-area:1/2}body[data-records-ui="holdings"] .ledger-doc-number{grid-area:2/1}body[data-records-ui="holdings"] .ledger-doc-folder{grid-area:2/2}}
