.erp-masters{max-width:1240px;margin:0 auto}.erp-masters .page-header{margin-bottom:24px}.erp-masters-search{max-width:540px;margin-bottom:12px}.erp-masters-search input{width:100%}.erp-masters #masters-directory-count{font-size:12px;color:var(--ui-muted);margin:0 0 24px}.erp-masters-group{margin-bottom:28px}.erp-masters-group h2{font-size:16px;margin:0 0 12px}.erp-masters-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.erp-master-link{display:flex;flex-direction:column;gap:9px;padding:18px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-surface);color:var(--ui-muted);text-decoration:none;font-size:13px;line-height:1.5;transition:border-color 120ms,background 120ms}.erp-master-title{display:flex;justify-content:space-between;gap:12px;color:var(--ui-text);font-size:14px;font-weight:600}.erp-master-title>span{color:var(--brand-text)}.erp-master-link:hover{border-color:var(--ui-accent);background:var(--ui-surface-alt)}.erp-master-link:focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}.erp-masters-empty{padding:24px;border:1px dashed var(--ui-border);color:var(--ui-muted)}
#modal-root .erp-master-section{min-width:0;border:0;border-top:1px solid var(--ui-border);padding:18px 0 6px;margin:14px 0 0}#modal-root .erp-master-section legend{font-size:14px;font-weight:600;color:var(--ui-text);padding:0 10px 0 0}#modal-root .erp-master-section .field small{font-size:12px;color:var(--ui-muted);line-height:1.5}#modal-root .erp-form-intro{font-size:13px;color:var(--ui-muted);margin:0 0 14px}#modal-root .erp-form-notice{padding:12px;border-left:3px solid var(--ui-accent);background:var(--ui-surface-alt);font-size:13px;line-height:1.5}#page-content .erp-master-tabs button{font-family:inherit;cursor:pointer}#page-content .erp-master-tabs button:focus-visible{outline:3px solid var(--ui-focus);outline-offset:2px}
@media(max-width:1024px){.erp-masters-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.erp-masters-grid{grid-template-columns:1fr;gap:10px}.erp-master-link{padding:14px;min-height:44px}.erp-masters .page-header{margin-bottom:16px}.erp-masters-group{margin-bottom:22px}.erp-masters-search input{min-height:44px;font-size:16px}#page-content .erp-master-tabs button{min-height:44px}#modal-root .erp-master-section .form-grid{grid-template-columns:1fr}#modal-root .erp-master-section{padding-top:14px}}
@media(prefers-reduced-motion:reduce){.erp-master-link{transition:none}}
.erp-masters-controls{display:grid;grid-template-columns:minmax(240px,1.8fr) minmax(180px,1fr) auto;align-items:end;gap:12px;background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:12px;padding:16px;margin-bottom:14px}.erp-masters-controls .field{min-width:0;margin:0}.erp-masters-controls .erp-masters-search{max-width:none}.erp-masters-controls :is(input,select){width:100%;min-width:0}.erp-masters-controls .btn{min-height:36px}.erp-masters-total{align-self:center;color:var(--ui-muted);font-size:12px;white-space:nowrap}.erp-masters-group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.erp-masters-group-head h2{margin:0 0 4px}.erp-masters-group-head p{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.5}.erp-masters-group-count{display:grid;place-items:center;min-width:28px;height:28px;border:1px solid var(--ui-border);border-radius:8px;font-size:12px;color:var(--ui-muted);background:var(--ui-surface)}.erp-masters .erp-master-link{min-width:0;overflow-wrap:anywhere}.erp-masters #masters-directory-count{overflow-wrap:anywhere}
@media(max-width:760px){.erp-masters .page-header{align-items:flex-start;gap:10px}.erp-masters-total{align-self:flex-start}.erp-masters-controls{grid-template-columns:minmax(0,1fr);padding:12px;gap:10px}.erp-masters-controls :is(input,select){min-height:44px;font-size:16px}.erp-masters-controls .btn{justify-self:start;min-height:44px}.erp-masters .page-header h1{font-size:22px}.erp-masters .page-header p{font-size:13px}.erp-masters-group-head{gap:8px}.erp-masters-group-head h2{font-size:15px}}
