/* Scoped to the new platform Admin group controls; existing company/employee layout is untouched. */
.amg-section .section-head>div:first-child{min-width:0}
.amg-section .section-head p{margin:8px 0 0;font-size:13px;line-height:1.6}
.amg-section .head-actions{flex-shrink:0}
.amg-panel-message{padding:12px 18px;color:#27664f;background:#f2fbf6;border-top:1px solid #d8e5fa}
.amg-panel-message[hidden]{display:none}
.amg-error{color:#ad342c;background:#fff5f4}
.amg-table{min-width:1000px}
.amg-table th,.amg-table td{vertical-align:top}
.amg-members{min-width:220px;max-width:360px}
.amg-store-tag{display:block;margin:0 0 5px;line-height:1.5}
.amg-unavailable{color:#a04d46}
.amg-actions{min-width:310px;display:flex;flex-wrap:wrap;gap:7px}
.amg-actions button{font-size:13px;white-space:nowrap}
.amg-footnote{margin:0;padding:14px 18px;color:#6a7e9b;font-size:13px;line-height:1.6;border-top:1px solid #d8e5fa}
.amg-backdrop{position:fixed;inset:0;z-index:52;display:grid;place-items:center;padding:24px;background:rgba(23,32,51,.28)}
.amg-dialog{width:min(900px,100%);max-height:calc(100dvh - 48px);background:#fff;border:1px solid #d8e5fa;box-shadow:0 22px 60px rgba(18,100,216,.18);display:flex;flex-direction:column;overflow:hidden;color:#172033}
.amg-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 24px;border-bottom:1px solid #d8e5fa;flex-shrink:0}
.amg-dialog-head h2{margin:0;font-size:23px;line-height:1.4}
.amg-dialog-head p{margin:7px 0 0;font-size:13px;line-height:1.6;color:#6a7e9b}
.amg-dialog-head>button{font-size:25px;line-height:1;padding:5px 10px;border:0;background:none;color:#6a7e9b}
.amg-form{display:flex;flex-direction:column;min-height:0}
.amg-dialog-body{overflow:auto;padding:22px 24px;overscroll-behavior:contain}
.amg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px}
.amg-fields input{width:100%;min-width:0;box-sizing:border-box}
.amg-fields small{font-size:12px;line-height:1.5}
.amg-form-section{margin:25px 0 0}
.amg-form-section h3{margin:0 0 8px;font-size:18px}
.amg-form-section p{margin:6px 0 12px;font-size:13px;line-height:1.6;color:#6a7e9b}
.amg-company-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:280px;overflow:auto;border:1px solid #d8e5fa;padding:12px;background:#fbfdff}
.amg-company-choice{display:flex;gap:10px;align-items:flex-start;padding:10px;background:white;border:1px solid #e0e8f7;cursor:pointer;font-size:14px;line-height:1.55;min-width:0}
.amg-company-choice input{flex-shrink:0;margin-top:4px;accent-color:#1264d8}
.amg-company-choice span{overflow-wrap:anywhere;min-width:0}
.amg-company-choice small{display:block;color:#6a7e9b;font-size:12px}
.amg-permission-list{display:flex;flex-wrap:wrap;gap:12px 24px}
.amg-permission-list label,.amg-options label{display:flex;gap:8px;align-items:center;font-size:14px;cursor:pointer}
.amg-permission-list input,.amg-options input{accent-color:#1264d8}
.amg-options{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:22px;border-top:1px solid #d8e5fa;padding-top:18px;font-size:13px}
.amg-modal-message,.amg-reassign-note{margin:14px 0 0;padding:12px 14px;background:#fff5f4;border:1px solid #f0c7c2;color:#a63c32;font-size:13px;line-height:1.6}
.amg-reassign-note{margin:0 0 18px;background:#f4f8ff;border-color:#d8e5fa;color:#375a85}
.amg-warning{color:#a63c32!important}
.amg-dialog-footer{display:flex;justify-content:flex-end;gap:12px;padding:17px 24px;border-top:1px solid #d8e5fa;flex-shrink:0;background:#fff}
@media(max-width:640px){.amg-section .section-head{flex-wrap:wrap}.amg-backdrop{padding:12px}.amg-dialog{max-height:calc(100dvh - 24px)}.amg-dialog-head{padding:18px}.amg-dialog-head h2{font-size:20px}.amg-dialog-body{padding:18px}.amg-fields,.amg-company-list{grid-template-columns:1fr}.amg-options{align-items:flex-start;flex-wrap:wrap}.amg-dialog-footer{padding:14px 18px}.amg-company-list{max-height:240px}}
