/* HAVAL LAWYER | Unified, native file picker presentation
   Keep system picker behavior on iOS/Android/desktop. No changes to storage or upload endpoints. */
#app input[type="file"]:not([hidden]),
#portalView input[type="file"]:not([hidden]),
body > .modal input[type="file"]:not([hidden]){
 display:block;
 width:100%;
 max-width:100%;
 min-width:0;
 min-height:53px;
 padding:8px 10px;
 border:1px solid var(--hv-border,var(--line,#dbe3df));
 border-radius:12px;
 background:var(--hv-input,#fff);
 color:var(--hv-text,var(--ink,#142f2b));
 font:inherit;
 font-size:13px;
 line-height:1.6;
 box-sizing:border-box;
 overflow:hidden;
}
#app input[type="file"]:not([hidden])::file-selector-button,
#portalView input[type="file"]:not([hidden])::file-selector-button,
body > .modal input[type="file"]:not([hidden])::file-selector-button{
 min-height:36px;
 border:1px solid #cadad3;
 border-radius:9px;
 background:#edf5f0;
 color:#164735;
 padding:7px 13px;
 margin-inline-end:12px;
 font:inherit;
 font-size:12px;
 font-weight:700;
 cursor:pointer;
}
#app input[type="file"]:not([hidden]):focus-visible,
#portalView input[type="file"]:not([hidden]):focus-visible{
 outline:2px solid #297d60;
 outline-offset:2px;
}
#app input[type="file"]:not([hidden]):disabled,
#portalView input[type="file"]:not([hidden]):disabled{
 opacity:.65;
 cursor:not-allowed;
}
#app #companyForm .hv-confirmation-document-field{grid-column:1/-1!important;min-width:0}
#app #companyForm .hv-confirmation-document-field .hv-local-controls{
 padding:14px 15px;
 gap:11px;
 background:var(--hv-surface-alt,#f8faf9);
 border:1px solid var(--hv-border,#dae6dc);
 border-radius:13px;
 min-width:0;
}
#app #companyForm .hv-local-file-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
#app #companyForm .hv-local-file-head strong{font-size:13px;font-weight:750;color:var(--hv-heading,#173d30)}
#app #companyForm .hv-local-file-types{font-size:10px;color:var(--hv-muted,#647a71);background:var(--hv-surface,#fff);border:1px solid var(--hv-border,#dae6dc);border-radius:99px;padding:4px 10px;direction:ltr}
#app #companyForm .hv-local-file-description{margin:0;font-size:12px;line-height:1.85;color:var(--hv-muted,#64776d)}
#app #companyForm .hv-local-file-picker{width:100%;min-height:56px}
#app #companyForm .hv-local-upload-row{
 display:grid;
 grid-template-columns:minmax(0,1fr) 52px;
 align-items:center;
 gap:10px;
 min-width:0;
 width:100%;
}
#app #companyForm .hv-local-upload-row .hv-local-file-picker{min-width:0;min-height:54px;margin:0}
#app #companyForm .hv-local-upload-row .hv-local-icon-action{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 width:52px;
 height:52px;
 min-width:52px;
 padding:0;
 border:1px solid var(--hv-border,#cadbd1);
 border-radius:12px;
 background:var(--hv-surface,#fff);
 color:var(--hv-heading,#174b39);
 box-shadow:0 2px 9px rgba(15,32,37,.045);
 cursor:pointer;
 transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
#app #companyForm .hv-local-upload-row .hv-local-icon-action:hover{
 border-color:#b58c50;
 background:var(--hv-surface-alt,#f5faf7);
 transform:translateY(-1px);
}
#app #companyForm .hv-local-upload-row .hv-local-icon-action:active{transform:translateY(0)}
#app #companyForm .hv-local-upload-row .hv-local-icon-action:focus-visible{outline:2px solid #297d60;outline-offset:2px}
#app #companyForm .hv-local-upload-row .hv-local-icon-action svg{width:21px;height:21px;stroke-width:1.9}
#app #companyForm .hv-local-file-description{font-size:11px!important;line-height:1.8!important}
#app #companyForm .hv-local-file-count,#app #companyForm .hv-local-status{font-size:10.5px!important;line-height:1.8!important}
#app #companyForm .hv-local-file-count,
#app #companyForm .hv-local-status{font-size:11px;line-height:1.8;overflow-wrap:anywhere}
#app #companyForm .hv-local-status.error{color:var(--hv-danger,#ae352b)}
#app.legal-night input[type="file"]:not([hidden]){
 background:var(--hv-input,#243a35);
 border-color:var(--hv-border,#436156);
 color:var(--hv-text,#e6f4ec);
}
#app.legal-night input[type="file"]:not([hidden])::file-selector-button{
 background:#25493c;
 border-color:#5d8774;
 color:#e2f7ea;
}
@media(max-width:650px){
 #app #companyForm .hv-confirmation-document-field .hv-local-controls{padding:12px;gap:10px}
 #app #companyForm .hv-local-file-head{align-items:flex-start;flex-direction:column}
 #app #companyForm .hv-local-upload-row{grid-template-columns:minmax(0,1fr) 48px;gap:8px}
 #app #companyForm .hv-local-upload-row .hv-local-icon-action{width:48px;height:48px;min-width:48px;border-radius:11px}
 #app input[type="file"]:not([hidden]),#portalView input[type="file"]:not([hidden]){min-height:54px;font-size:12px}
}
