.role-editor-dialog{width:min(1080px,calc(100vw - 28px))}
.role-editor-dialog .modal-body{padding:18px 22px}
.role-editor-dialog .modal-head,.role-editor-dialog .modal-foot{padding:14px 22px}
.role-editor-dialog .modal-head h2{font-size:19px}
.role-editor-top{display:grid;grid-template-columns:minmax(200px,1fr) minmax(280px,1.3fr);gap:20px;margin-bottom:16px}
.role-editor-top>label{margin:0}
.role-master-option{display:flex;align-items:flex-start;gap:8px;margin:0 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#f9fbfc;cursor:pointer}
.role-master-option input[type=checkbox]{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--accent)}
.role-master-option strong{display:block;font-size:12px;line-height:1.5;font-weight:600}
.role-master-option small{display:block;font-size:11px;line-height:1.5;color:var(--muted);font-weight:400}
.role-editor-dialog label,.role-editor-dialog input{font-size:12px}
.role-editor-dialog input[type=text],.role-editor-dialog input[type=search]{min-height:34px;padding:7px 10px}
.role-country-field .checks{gap:8px 16px;margin:8px 0 0}
.role-country-field .checks label{font-size:12px;font-weight:450}
.role-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:7px}
.role-editor-toolbar label{width:390px;max-width:70%;margin:0}
.role-editor-toolbar>span{font-size:12px;white-space:nowrap;color:var(--muted)}
.role-dependency-note,.role-access-note{font-size:11px;line-height:1.5;color:var(--muted);margin:6px 0 12px}
.role-permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:12px}
.role-permission-group{border:1px solid var(--line);border-radius:6px;overflow:hidden;min-width:0}
.role-permission-group>summary{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:10px 12px;cursor:pointer;font-weight:650;font-size:13px;background:#f5f8fa}
.role-permission-group>summary:before{content:'›';font-size:17px;line-height:1;color:var(--muted);transform:rotate(0)}
.role-permission-group[open]>summary:before{transform:rotate(90deg)}
.role-permission-group>summary>span:first-of-type{flex:1}
.role-permission-group>summary>span:last-child{font-size:11px;color:var(--muted);font-weight:450}
.role-group-actions{display:flex;gap:14px;padding:8px 12px 3px}
.role-group-actions button{font-size:11px;color:#12699f;padding:2px 0}
.role-permission-list{padding:4px 12px 10px}
.role-permission-option{display:flex;align-items:flex-start;gap:8px;margin:0;padding:7px 0;border-bottom:1px solid #eff2f4;cursor:pointer}
.role-permission-option:last-child{border-bottom:0}
.role-permission-option input,.role-country-field input{width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:1px 0 0;accent-color:var(--accent)}
.role-permission-option strong{display:block;font-size:12px;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.role-permission-option small{display:block;font-size:10px;line-height:1.5;color:var(--muted);font-weight:400;margin-top:2px}
.role-no-results{padding:20px 0;color:var(--muted);font-size:12px}
.role-editor-dialog [hidden]{display:none!important}
.role-access-note{margin-top:14px}
@media(max-width:700px){.role-editor-top,.role-permission-groups{grid-template-columns:1fr}.role-editor-top{gap:12px}.role-editor-dialog .modal-body{padding:14px}.role-editor-toolbar{align-items:flex-start;flex-direction:column;gap:5px}.role-editor-toolbar label{max-width:100%;width:100%}.role-editor-dialog .modal-head,.role-editor-dialog .modal-foot{padding:14px}.role-group-actions button{min-height:32px}.role-permission-option{min-height:40px}}

.role-warehouse-table{width:100%;border-collapse:collapse}.role-warehouse-table th,.role-warehouse-table td{padding:8px;text-align:left}.role-warehouse-table input{width:18px;height:18px}

.role-order-access{border:1px solid var(--line);border-radius:6px;margin:12px 0;overflow:hidden}.role-order-access h3{font-size:13px;margin:0;padding:10px 12px;background:#f5f8fa}.role-order-table{width:100%;border-collapse:collapse}.role-order-table th,.role-order-table td{padding:6px 12px;border-bottom:1px solid var(--line);font-size:12px;line-height:1.35}.role-order-table th{text-align:left;font-weight:500}.role-order-table td,.role-order-table thead th:not(:first-child){width:100px;text-align:center}.role-order-table input[type=checkbox]{width:16px;height:16px;min-height:16px;margin:0;accent-color:var(--accent)}.role-order-access>.role-dependency-note{padding:0 12px;margin:8px 0}.role-scope-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px;align-items:start}.role-scope-groups p{font-size:11px;color:var(--muted);padding:0 12px}.role-permission-list{padding-top:0}.role-permission-option{padding:6px 0}.role-permission-groups{gap:10px}.role-editor-top{margin-bottom:10px}.role-master-option{padding:7px 10px;margin-bottom:10px}@media(max-width:700px){.role-scope-groups{grid-template-columns:1fr}.role-order-table td,.role-order-table thead th:not(:first-child){width:68px}.role-order-table th,.role-order-table td{padding:7px 8px}}

.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head{align-items:flex-end;flex-wrap:wrap;gap:10px 20px;padding-bottom:0}
.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head>h2{align-self:center;margin-bottom:12px}
:root[data-theme] .tabs.role-settings-country-tabs{flex:1;justify-content:flex-end;min-width:180px;background:transparent}
:root[data-theme] .role-settings-country-tabs>button{min-height:42px;padding:9px 15px}
.role-settings-country-note{margin:0;padding:12px 18px;color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:600px){:root[data-theme] .tabs.role-settings-country-tabs{flex-basis:100%;justify-content:flex-start}.settings-grid>.panel:has(.role-settings-country-tabs)>.panel-head>h2{margin-bottom:0}}
