.account-management.am-modal { position: fixed; inset: 0; z-index: 1600; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 22px; background: #1c293d66; }
.am-panel { width: min(1220px, 100%); max-height: calc(100dvh - 44px); display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid #b9c5d0; border-radius: 6px; box-shadow: 0 18px 70px #18273a33; }
.am-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #dce2e7; }
.am-header h2 { font-size: 18px; color: #23425b; margin: 0; }
.am-command { min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 11px; border: 1px solid #b9c6d0; border-radius: 4px; background: #fff; color: #31485a; font-size: 12px; line-height: 1.4; }
.am-command svg { width: 15px; height: 15px; flex: 0 0 15px; }
.am-command:hover { background: #eef3f6; }
.am-command:disabled { cursor: default; opacity: .55; }
.am-option-delete { width: 32px; height: 32px; min-width: 32px; padding: 0; border-color: transparent; color: #aa3e3e; }
.am-option-delete:hover { background: #fff1f1; border-color: #e4bcbc; }
.am-option-delete span { display: none; }
.am-tabs { display: flex; gap: 20px; padding: 0 20px; background: #f6f8f9; border-bottom: 1px solid #dce2e7; }
.am-tabs .am-command { min-height: 43px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; }
.am-tabs .am-command[aria-current=true] { color: #176c64; border-bottom-color: #238e7e; font-weight: 700; }
.am-options-tabs { display: flex; gap: 12px; border-bottom: 1px solid #dce2e7; margin-bottom: 18px; }
.am-options-tabs .am-command { border: 0; border-radius: 0; border-bottom: 3px solid transparent; }
.am-options-tabs .am-command[aria-selected=true] { border-bottom-color: #238679; color: #176c64; font-weight: 700; }
.am-options-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.am-options-add .am-field { flex: 1 1 160px; max-width: 320px; }
.am-content { overflow: auto; min-height: 260px; padding: 18px 20px; }
.am-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.am-toolbar h3 { margin: 0; font-size: 15px; }
.am-toolbar input { width: min(320px, 100%); }
.am-toolbar > .am-command:last-child { margin-left: auto; }
.am-directory-section { margin-top: 20px; }
.am-directory-section:first-of-type { margin-top: 0; }
.am-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.am-section-heading h3 { margin: 0; color: #334d60; font-size: 14px; }
.am-unregistered-section { padding-top: 18px; border-top: 1px solid #dce2e7; }
.am-panel input:not([type=checkbox]), .am-panel select { min-height: 34px; padding: 5px 8px; border: 1px solid #b9c5d0; border-radius: 3px; color: #2b3b47; background: #fff; font-size: 12px; min-width: 0; max-width: 100%; }
.am-panel input[readonly] { background: #f0f3f5; color: #677480; }
.am-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #dce2e7; }
.am-table-wrap table { width: 100%; border-collapse: collapse; table-layout: auto; font-size: 12px; }
.am-panel .am-table-wrap th, .am-panel .am-table-wrap td { position: static; top: auto; left: auto; z-index: auto; height: auto; }
.am-table-wrap th { color: #51636f; background: #f1f5f6; font-weight: 500; text-align: left; white-space: nowrap; }
.am-table-wrap td, .am-table-wrap th { padding: 11px 12px; border-bottom: 1px solid #e6ebee; white-space: nowrap; }
.am-table-wrap tbody tr:hover { background: #f6faf9; }
.am-table-wrap .am-name { padding: 0; border: 0; background: none; justify-content: flex-start; color: #176b91; font-weight: 600; }
.am-table-wrap .am-row-action { min-height: 27px; padding: 3px 9px; color: #176b91; font-size: 11px; }
.am-protected { color: #87939b; font-size: 11px; }
.am-account-actions { display: flex; align-items: center; gap: 6px; }
.am-delete-account { color: #aa3e3e; border-color: #e4bcbc; margin-right: auto; }
.am-badge { color: #25735d; font-size: 11px; }
.am-inactive { color: #a35555; }
.am-count { font-size: 12px; color: #73818c; margin: 8px 0; }
.am-empty { text-align: center; height: 110px; color: #73818c; }
.am-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 4px 0 18px; }
.am-field { display: flex; flex-direction: column; gap: 6px; color: #53636e; font-size: 12px; }
.am-field > input, .am-field > select { width: 100%; }
.am-password-control { position: relative; width: 100%; min-width: 0; }
.am-panel .am-password-control input { width: 100%; padding-right: 40px; }
.am-password-toggle { position: absolute; top: 1px; right: 1px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; }
.am-password-toggle span { display: none; }
.am-password-toggle:focus-visible { outline: 2px solid #238679; outline-offset: -2px; }
.am-check { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 12px; color: #3e505e; }
.am-check input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; accent-color: #238679; }
.am-check span { overflow-wrap: anywhere; }
#am-editor > .am-field { width: min(220px, 100%); margin: 12px 0 18px; }
.am-permission-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.am-permission-group { margin: 0; padding: 8px 12px 12px; min-width: 0; border: 1px solid #d5dfe5; border-radius: 3px; }
.am-permission-group legend { font-size: 13px; color: #334d60; font-weight: 700; padding: 0 5px; }
.am-permission-group > .am-command { margin: 0 0 6px; min-height: 24px; padding: 2px 8px; font-size: 11px; }
.am-footer { display: flex; justify-content: flex-end; gap: 10px; padding-top: 20px; }
.am-primary { border-color: #1e766b; color: #fff; background: #247e72; }
.am-primary:hover { background: #1c695f; }
.am-status { min-height: 34px; padding: 8px 20px; border-top: 1px solid #e1e7eb; color: #26755b; font-size: 12px; }
.am-status[data-error=true] { color: #ad3d3d; }
.am-pending { margin-top: 22px; padding-top: 12px; border-top: 1px solid #dce2e7; }
.am-pending h3 { font-size: 13px; color: #5f6d76; }
.am-pending-list { display: flex; gap: 8px; flex-wrap: wrap; }
.salesperson-picker { position: relative; }
.salesperson-picker input { width: 100%; }
.salesperson-picker input:focus { outline: 2px solid #a1cabc; }
@media (max-width: 800px) { .am-permission-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .am-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .account-management.am-modal { padding: 8px; } .am-panel { max-height: calc(100dvh - 16px); } .am-header, .am-content { padding: 12px; } .am-fields, .am-permission-groups { grid-template-columns: minmax(0, 1fr); } .am-toolbar input { width: 100%; } .am-section-heading { align-items: flex-start; flex-direction: column; } .am-section-heading .am-command { width: 100%; } }
