/* Layout overrides apply only while the verification pane hosts a form. */
#standard-properties-pane[hidden]{display:none}
body.standard-pane-editing #sidebar > :not(#standard-properties-pane):not(#standard-entry-controls){display:none!important}
body.standard-pane-editing #sidebar{overflow:hidden}
#standard-properties-pane{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
#standard-properties-pane .standard-pane-root,
#standard-properties-pane .standard-pane-box{position:static!important;inset:auto!important;transform:none!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:white;display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important;pointer-events:auto}
#standard-properties-pane .standard-pane-header{flex:none;cursor:default!important;padding:14px 12px!important;background:#f4f5f9!important;color:#1a2332!important;font-size:13px;line-height:1.5}
#standard-properties-pane .drag-hint,#standard-properties-pane [id$="-drag-label"]{display:none}
#standard-properties-pane .standard-pane-fields{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:14px 12px!important}
#standard-properties-pane .standard-pane-footer{flex:none;padding:10px 12px;background:#fff;border-top:1px solid #e1e5ec}
#standard-properties-pane .modal-actions{display:flex;gap:8px;margin:0!important}
#standard-properties-pane .standard-pane-footer button{min-height:36px;flex:1;padding:8px 10px}
#standard-properties-pane [id$="-continue"]{width:100%;font-size:12px}
#standard-properties-pane .attr-row{display:flex;flex-direction:column;align-items:stretch!important;gap:5px;margin-bottom:12px}
#standard-properties-pane .attr-row > .attr-label{width:auto;flex:none;font-size:12px;text-align:left}
#standard-properties-pane .attr-row > div{min-width:0;width:100%;box-sizing:border-box}
#standard-properties-pane input,#standard-properties-pane select,#standard-properties-pane textarea{min-width:0;max-width:100%;box-sizing:border-box}
#standard-properties-pane .material-add-row{min-width:0;width:100%}
#standard-properties-pane .attr-select{min-width:0;width:100%}
#standard-properties-pane select{padding:5px 8px!important;border:1px solid #ccc!important;border-radius:6px!important;font-size:12px!important;background:#f8f8f8!important;color:#333;min-height:30px}
#standard-properties-pane select:focus{border-color:#378ADD!important;outline:none}
#standard-properties-pane input,#standard-properties-pane select,#standard-properties-pane textarea{font-family:inherit}
#standard-properties-pane .standard-pane-height-grid{grid-template-columns:minmax(0,1fr) 64px 34px!important;gap:6px!important}
#standard-properties-pane .standard-pane-height-grid > :first-child{grid-column:1/-1;padding-bottom:0!important}
#standard-properties-pane .standard-pane-height-grid > :nth-child(5){grid-column:1}
#standard-properties-pane .standard-pane-height-grid > :nth-child(6){grid-column:2/4}
#standard-properties-pane .standard-pane-result{flex-wrap:wrap}
#standard-properties-pane .standard-pane-result > :first-child{flex-basis:100%!important}
#standard-properties-pane .attr-check-row{white-space:normal;line-height:1.5}
#standard-entry-controls{flex:none;padding:12px;border-bottom:1px solid #e1e5ec;font-size:12px;background:#f4f5f9}
#standard-entry-controls[hidden]{display:none}
#standard-entry-controls label{display:flex;align-items:center;gap:5px;cursor:pointer}
#standard-entry-controls input{accent-color:#378add}
#standard-input-audit{display:block;width:100%;margin-top:8px;border:0;border-radius:6px;padding:7px 8px;background:#fff0f0;color:#b42318;text-align:left;cursor:pointer;font:inherit;font-weight:600}
#standard-input-audit[hidden]{display:none}
#standard-register-notice{position:fixed;z-index:400;transform:translateX(-50%);max-width:calc(100vw - 48px);padding:9px 16px;border:1px solid #aec9ee;border-radius:8px;background:#eff6ff;color:#174478;font:600 13px/1.6 sans-serif;pointer-events:none;box-shadow:0 3px 12px #18233b26}
#standard-register-notice.central{transform:translate(-50%,-50%);padding:18px 24px;font-size:16px;box-shadow:0 8px 28px #18233b33}
#standard-register-notice[hidden]{display:none}
body.standard-pane-editing #standard-properties-pane{flex:1;height:auto}
#standard-properties-pane .standard-pane-footer:has(.standard-auto-status){display:flex;flex-wrap:wrap;gap:6px}
.standard-auto-status{width:100%;font-size:12px;color:#18775c;line-height:1.6}
.standard-auto-status.error{color:#b42318}
.standard-continuous #af-calculation-retry{display:none}
body:has(#standard-register-notice:not([hidden])) #standard-properties-pane .btn-primary{box-shadow:0 0 0 3px #378add33}

/* Use the existing disabled-control appearance for Viewer inspection forms. */
.qanta-viewer-form button[data-qanta-viewer-locked="1"]{background:#eee!important;color:#999!important;border-color:#ddd!important;box-shadow:none!important;cursor:not-allowed!important}
.qanta-viewer-form input:disabled,.qanta-viewer-form textarea:disabled,.qanta-viewer-form select:disabled{color:#666!important;background:#f8f8f8!important;opacity:1;cursor:default}
.qanta-viewer-form .tanno-color-swatch,.qanta-viewer-form .arrow-color-swatch{pointer-events:none;cursor:default!important}
.viewer-form-notice{font-size:12px;font-weight:400;color:#666;margin-left:8px}

#standard-entry-controls label[hidden]{display:none}
