/* Shared R37 components. Existing theme, role rules and routes are preserved. */
.premium-form{padding-bottom:0!important;min-width:0;max-width:100%}
.premium-form [hidden]{display:none!important}
.premium-form .form-fieldset{min-width:0;padding:0;border:0}
.premium-form .editor-section{margin:0 0 20px!important;padding:26px!important;border:1px solid #cedfdd!important;border-radius:16px!important;background:linear-gradient(125deg,#ffffffed,#f1f8f6ed)!important;box-shadow:0 5px 24px #163e3808!important}
.premium-form .section-head{display:flex!important;align-items:center;justify-content:space-between;margin:0 0 24px!important;padding:0 0 15px!important;border-bottom:1px solid #dce9e4;background:none!important}
.premium-form .section-head h2{font-size:21px!important;line-height:1.3;color:#185b54;margin:0}
.premium-form .section-number{color:#7b9590;font-size:12px}
.premium-form .form-grid,.premium-form .ats-form-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px 22px!important;align-items:start}
.premium-form .form-field{min-width:0;margin:0!important;display:flex;flex-direction:column;gap:7px!important}
.premium-form .form-field label{font-size:14px!important;font-weight:650;margin:0!important;line-height:1.35}
.premium-form .field-wide{grid-column:1/-1}
.premium-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select){width:100%;height:auto!important;min-height:46px!important;padding:10px 12px!important;font-size:16px!important;border-radius:9px;border:1px solid #bed5cf;background:#fff}
.premium-form textarea{width:100%;min-height:120px!important;height:auto!important;padding:12px!important;resize:vertical;font-size:16px!important;border-radius:9px;background:#fff}
.premium-form input[type=file]{min-height:46px;padding:9px;max-width:100%}
.premium-form :is(input,textarea,select):disabled{background:#edf3f1;color:#4c6861;opacity:1}
.premium-form .form-field>small{font-size:12px!important;color:#56766c;line-height:1.45}
.premium-form .recovery-status{margin:10px 0 18px!important;font-size:12px!important}
.form-step-nav{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px;padding:0;background:none;border:0}
.form-step-nav button{min-height:40px;max-width:100%;font-size:13px;padding:9px 13px}
.form-step-nav button.active{border-color:#007970!important;box-shadow:0 0 0 2px #99d4c450!important}
.premium-form-footer{position:sticky!important;bottom:0;left:auto!important;right:auto!important;width:100%!important;display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:17px 20px;background:#f6faf9f5;border:1px solid #d2e3dc;border-radius:12px;z-index:5;margin-top:18px}
.premium-form-footer .form-completion{font-size:12px;color:#4d7064;flex:1;min-width:150px}
.premium-form-footer .form-page-actions,.premium-form-footer .form-actions{display:flex;flex-wrap:wrap;gap:9px;margin:0!important;padding:0!important;align-items:center}
.premium-form-footer button,.premium-form-footer a{min-height:42px!important;font-size:14px!important;padding:10px 14px!important}
.premium-form .error-summary{padding:16px 20px;margin:15px 0;background:#fff4ed;border:1px solid #d89f8a;border-radius:10px}
.premium-form [aria-invalid=true],.premium-form .has-error :is(input,select,textarea){border-color:#aa4638}
.premium-form [data-checklist]{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px}
.premium-form [data-checklist] label{display:flex;align-items:center;gap:10px;padding:11px 13px;background:#f3f8f5;border:1px solid #d7e6de;border-radius:9px;min-height:44px}
.premium-form [data-checklist] input{width:18px;height:18px;min-width:18px}
.embedded-workflow,.embedded-workflow body{height:auto!important;overflow-y:auto!important}
.embedded-workflow .content{overflow:visible!important}
.embedded-workflow .premium-form-footer{position:sticky!important}
.record-layout:has(.premium-form){grid-template-columns:minmax(0,1fr)!important;gap:24px}
.record-layout:has(.premium-form) .record-context{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.sidebar-brand-row .brand-copy strong,.sidebar-brand-row .brand-copy small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.2}
.sidebar-brand-row .brand-copy strong{font-size:13px!important;letter-spacing:.06em}
.nav-group .nav-group-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:36px;padding:6px 2px!important;border:0!important;box-shadow:none!important;background:none!important;color:inherit!important;font:inherit;text-transform:inherit;letter-spacing:inherit;text-align:left}
.nav-group-toggle::after{content:'⌄';font-size:15px;padding-left:6px}
.nav-group-toggle[aria-expanded=false]::after{content:'›'}
.nav-group.is-collapsed>a{display:none!important}
.sidebar-collapsed .nav-group.is-collapsed>a{display:flex!important}
.sidebar-nav a[aria-current=page]{border-left:3px solid #067a71!important;background:#d9eeea!important;color:#123e37!important}
.nav-focus-label{position:fixed;z-index:1000;padding:8px 12px;border:1px solid #b8d3cd;border-radius:7px;background:#173e39;color:#fff;font-size:13px;pointer-events:none;max-width:220px}
.business-heading .head-actions{display:flex!important;flex-wrap:wrap;gap:8px}
.business-heading .head-actions>a{display:inline-flex!important}
body .business-heading .business-tabs{display:flex;flex-wrap:wrap!important;gap:7px!important;padding:14px!important}
body .business-heading .business-tabs>a{padding:9px 13px!important;border-radius:9px!important;min-height:38px}
body .business-panel .business-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.task-reschedule-field{display:grid;gap:6px;margin:10px 0;font-size:13px}
.task-reschedule-field small{font-size:12px}
.notes-shell{min-width:0}
.notes-editor textarea,.note-title{line-height:1.5}
.sticky-hanger-item:focus-visible{outline:3px solid #006d69;outline-offset:3px}
@media(pointer:coarse){.sidebar-nav a{min-height:44px!important}}
@media(max-width:760px){.premium-form .form-grid,.premium-form .ats-form-grid,body .business-panel .business-fields{grid-template-columns:minmax(0,1fr)!important}.premium-form .editor-section{padding:20px!important}.premium-form-footer{padding:13px}.premium-form-footer .form-completion{flex-basis:100%}.form-step-nav button{flex:1 1 140px}.record-layout:has(.premium-form) .record-context{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:no-preference){.sidebar-nav .nav-icon svg,.workspace-action-icon svg,.shortcut .icon svg{animation:r37-icon-idle 4s ease-in-out infinite!important}.sidebar-nav a:nth-child(odd) .nav-icon svg{animation-delay:-1.6s!important}@keyframes r37-icon-idle{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}}
@media(prefers-reduced-motion:reduce){.sidebar-nav .nav-icon svg,.workspace-action-icon svg,.shortcut .icon svg{animation:none!important}}
