/* Motivo production Team Access dashboard. Matches MOT-029 team card design. */
#employeeDashboard #motivoRolePermissions{grid-column:1/-1;min-width:0;width:100%;margin-top:16px;padding:clamp(15px,1.6vw,20px);background:var(--ta-card,#f8faf9);color:var(--ta-text,#173c3b);border:1px solid var(--ta-line,#dce7df);border-radius:13px;box-sizing:border-box;box-shadow:none}
#employeeDashboard #motivoRolePermissions *{box-sizing:border-box}
#employeeDashboard #motivoRolePermissions .rp-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:16px}
#employeeDashboard #motivoRolePermissions .rp-toolbar-title{display:grid;gap:5px}
#employeeDashboard #motivoRolePermissions .rp-kicker{font-size:10px;font-weight:800;letter-spacing:.13em;color:#e86642}
#employeeDashboard #motivoRolePermissions .rp-toolbar h4{font-size:19px;line-height:1.25;font-weight:800;color:var(--ta-text,#173c3b);margin:0}
#employeeDashboard #motivoRolePermissions #rp-refresh{margin:0;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;width:auto;padding:8px 13px;background:transparent;color:var(--ta-text,#173c3b);border:1px solid var(--ta-line,#dce7df);border-radius:8px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}
#employeeDashboard #motivoRolePermissions #rp-refresh:hover{background:rgba(105,145,126,.12)}
#employeeDashboard #motivoRolePermissions #rp-refresh:disabled{opacity:.5;cursor:wait}
#employeeDashboard #motivoRolePermissions #rp-refresh:focus-visible{outline:2px solid #e86642;outline-offset:2px}
#employeeDashboard #motivoRolePermissions .rp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:19px}
#employeeDashboard #motivoRolePermissions .rp-stat{background:var(--ta-field,#fff);border:1px solid var(--ta-line,#dce7df);padding:14px 16px;border-radius:10px;display:flex;flex-direction:column;gap:8px;min-height:86px}
#employeeDashboard #motivoRolePermissions .rp-stat span{font-size:11px;color:var(--ta-muted,#60766c);font-weight:700}
#employeeDashboard #motivoRolePermissions .rp-stat strong{color:var(--ta-text,#173c3b);font-size:26px;line-height:1;font-weight:800;font-variant-numeric:tabular-nums}
#employeeDashboard #motivoRolePermissions .rp-matrix-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}
#employeeDashboard #motivoRolePermissions .rp-matrix-header h5{font-size:14px;font-weight:800;color:var(--ta-text,#173c3b);margin:0}
#employeeDashboard #motivoRolePermissions .rp-legend{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:var(--ta-muted,#60766c)}
#employeeDashboard #motivoRolePermissions .rp-legend .rp-no{margin-left:8px}
#employeeDashboard #motivoRolePermissions .rp-table-scroll{width:100%;max-width:100%;overflow:auto;border:1px solid var(--ta-line,#dce7df);border-radius:9px;background:var(--ta-field,#fff);-webkit-overflow-scrolling:touch}
#employeeDashboard #motivoRolePermissions table{border-collapse:collapse;width:100%;min-width:850px;font-size:11px;table-layout:auto;text-align:center}
#employeeDashboard #motivoRolePermissions thead th{position:relative;white-space:normal;background:var(--ta-card,#f8faf9);color:var(--ta-muted,#60766c);font-size:10px;line-height:1.3;font-weight:800;padding:12px 8px;border-bottom:1px solid var(--ta-line,#dce7df)}
#employeeDashboard #motivoRolePermissions th,#employeeDashboard #motivoRolePermissions td{padding:10px 8px;border-bottom:1px solid var(--ta-line,#dce7df);color:var(--ta-text,#173c3b);vertical-align:middle}
#employeeDashboard #motivoRolePermissions thead th:first-child,#employeeDashboard #motivoRolePermissions tbody th{position:sticky;left:0;z-index:1;min-width:170px;text-align:left;background:var(--ta-field,#fff);border-right:1px solid var(--ta-line,#dce7df)}
#employeeDashboard #motivoRolePermissions thead th:first-child{z-index:2;background:var(--ta-card,#f8faf9)}
#employeeDashboard #motivoRolePermissions tbody tr:last-child th,#employeeDashboard #motivoRolePermissions tbody tr:last-child td{border-bottom:0}
#employeeDashboard #motivoRolePermissions tbody tr:hover td,#employeeDashboard #motivoRolePermissions tbody tr:hover th{background:var(--ta-card,#f8faf9)}
#employeeDashboard #motivoRolePermissions .rp-role-name{display:block;font-size:11px;font-weight:800;color:var(--ta-text,#173c3b);line-height:1.4}
#employeeDashboard #motivoRolePermissions .rp-role-count{display:block;font-size:10px;color:var(--ta-muted,#60766c);font-weight:550;margin-top:3px}
#employeeDashboard #motivoRolePermissions .rp-yes{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;background:rgba(54,159,117,.12);color:#2d9d77;border-radius:7px;font-size:14px;font-weight:850}
#employeeDashboard #motivoRolePermissions .rp-no{color:var(--ta-muted,#60766c);font-weight:600}
#employeeDashboard #motivoRolePermissions .rp-status{margin:10px 0 0;color:#ce6545;font-size:12px}
#employeeDashboard #motivoRolePermissions .rp-status[hidden]{display:none!important}
body.dark-mode #employeeDashboard #motivoRolePermissions{background:var(--ta-card,#202b30);border-color:var(--ta-line,#34464b);color:var(--ta-text,#edf5ef)}
body.dark-mode #employeeDashboard #motivoRolePermissions thead th,body.dark-mode #employeeDashboard #motivoRolePermissions tbody th,body.dark-mode #employeeDashboard #motivoRolePermissions .rp-stat{background:var(--ta-field,#182329)}
body.dark-mode #employeeDashboard #motivoRolePermissions .rp-yes{background:rgba(80,185,144,.13);color:#84d9b4}
@media(max-width:650px){#employeeDashboard #motivoRolePermissions{padding:13px}#employeeDashboard #motivoRolePermissions .rp-stats{grid-template-columns:repeat(2,minmax(0,1fr))}#employeeDashboard #motivoRolePermissions .rp-stat:last-child{grid-column:1/-1}#employeeDashboard #motivoRolePermissions .rp-table-scroll{max-width:100%}}
